MCQ Questions
Q.1.
____________________ is the process of combining all of an object's attributes and methods into a single package.
  • 0%
    class client
  • 0%
    subscript or index
  • 0%
    instantiation
  • 0%
    encapsulation
Q.2.
A parallel array is an array that stores another array in each element. T or F?
  • 0%
    True
  • 0%
    False
Q.3.
The for loop is a good tool when working with arrays because you frequently need to process every element of an array from beginning to end. T or F?
  • 0%
    True
  • 0%
    False
Q.4.
The concept that other classes should not alter an object's attributes--only the methods of an object's own class should have that privilege
  • 0%
    instance variables
  • 0%
    reusability
  • 0%
    encapsulation
  • 0%
    information hiding
Q.5.
When you have a five element array and use subscript 6, your subscript is said to be out of bounds. T or F?
  • 0%
    True
  • 0%
    False
Q.6.
An instance of a class
  • 0%
    binary
  • 0%
    list
  • 0%
    fields
  • 0%
    object
Q.7.
When working with arrays, you can use ____________________ in several ways: To hold the size of an array, as the array values, and as a subscript .
  • 0%
    instantiation
  • 0%
    variable
  • 0%
    constants
  • 0%
    out of bounds
Q.8.
The data components of a class that belong to every instantiated object
  • 0%
    class diagram
  • 0%
    instance variables
  • 0%
    true or false
  • 0%
    instantiation
Q.9.
The accessor method is another name for the set method. T or F?
  • 0%
    True
  • 0%
    False
Q.10.
All array elements have the same ____________________ name, but each individual element also has a unique subscript indicating how far away it is from the first element.
  • 0%
    False
  • 0%
    group
  • 0%
    name
  • 0%
    True
Q.11.
Many newer programming languages such as C++, Java, and C# use subscript 1 to access the first element of the array. T or F?
  • 0%
    True
  • 0%
    False
Q.12.
Parallel arrays must contain the same data type. T or F?
  • 0%
    True
  • 0%
    False
Q.13.
Another important concept in object-oriented programming is ________, which is the process of acquiring the traits of one's predecessors.
  • 0%
    primitive
  • 0%
    subscript
  • 0%
    inheritance
  • 0%
    variable
Q.14.
In addition to their attributes, classes have methods associated with them, and every object instantiated from a given class possesses different methods. T or F?
  • 0%
    True
  • 0%
    False
Q.15.
Arrays cannot be used if you need to search for a range of values. T or F?
  • 0%
    True
  • 0%
    False
Q.16.
Declaring a named constant makes code easier to modify and understand. T or F?
  • 0%
    True
  • 0%
    False
Q.17.
A subscript, also called a(n) ____________________, is a number that indicates the position of a particular item within an array.
  • 0%
    binary
  • 0%
    False
  • 0%
    range
  • 0%
    index
Q.18.
A(n) ____________________ is one instance of a class.
  • 0%
    indirect
  • 0%
    True
  • 0%
    object
  • 0%
    list
Q.19.
The set of all the values or contents of a class object's instance variables
  • 0%
    named constant
  • 0%
    state
  • 0%
    class
  • 0%
    True
Q.20.
Class diagrams consists of a rectangle divided into three sections. T or F?
  • 0%
    True
  • 0%
    False
Q.21.
You use subscripts 1 through 10 to access the elements in a ten element array. T or F?
  • 0%
    True
  • 0%
    False
Q.22.
Many newer programming languages such as C++, Java, and C# use the square bracket notation for arrays. T or F?
  • 0%
    True
  • 0%
    False
Q.23.
Declaring a class does not create actual objects. T or F?
  • 0%
    True
  • 0%
    False