1 The interface of a class is the set of all its a objects b attributes c method
ID: 3667171 • Letter: 1
Question
1 The interface of a class is the set of all its a objects b attributes c methods 2 The state of an object consists of a its class of origin b the values of all of its attributes c its physical structure 3 Instantiation is a process that a compares two objects for equality b builds a string representation of an object c creates a new object of a given class 4 The str function a creates a new object b copies an existing object c returns a string representation of an object 5 The clone method a creates a new object b copies an existing object c returns a string representation of an object 6 The origin (0, 0) in a screen coordinate system is at a the center of a window b the upper-left corner of a window 7 A row-major traversal of a two-dimensional grid visits all of the positions in a a row before moving to the next row b column before moving to the next column 8 In a system of 256 unique colors, the number of bits needed to represent each color is a 4 b 8 c 16 9 In the RGB system, where each color contains three components with 256 possible values each, the number of bits needed to represent each color is a 8 b 24 c 256 10 The process whereby analog information is converted to digital information is called a recording b sampling c filtering d compressing
Explanation / Answer
1 The interface of a class is the set of all its (C)
a objects b attributes c methods
2 The state of an object consists of (B)
a its class of origin b the values of all of its attributes c its physical structure
3 Instantiation is a process that (C)
a compares two objects for equality b builds a string representation of an object c creates a new object of a given class
4 The str function (C)
a creates a new object b copies an existing object c returns a string representation of an object
5 The clone method (B)
a creates a new object b copies an existing object c returns a string representation of an object
6 The origin (0, 0) in a screen coordinate system is at (B)
a the center of a window b the upper-left corner of a window
7 A row-major traversal of a two-dimensional grid visits all of the positions in a (A)
a row before moving to the next row b column before moving to the next column
8 In a system of 256 unique colors, the number of bits needed to represent each color is (B)
a 4 b 8 c 16
9 In the RGB system, where each color contains three components with 256 possible values each, the number of bits needed to represent each color is (B)
a 8 b 24 c 256
10 The process whereby analog information is converted to digital information is called (B)
a recording b sampling c filtering d compressing
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.