COP1000 STUDY GUIDE FOR FINAL QUESTIONS NEWEST
2026 EXAM QUESTIONS LATEST VERSION SOLVED
QUESTIONS & ANSWERS VERIFIED 100 %
Within any object-oriented program, you continuously make requests to an
object's methods, often including arguments as part of those requests. T or F?
True
A parallel array is an array that stores another array in each element. T or F?
False
Declaring a named constant makes code easier to modify and understand. T or
F?
True
Methods in object-oriented programs use sequence, selection, and looping
structures and make use of arrays. T or F?
True
Many newer programming languages such as C++, Java, and C# use subscript
1 to access the first element of the array. T or F?
False
When you have a five element array and use subscript 6, your subscript is said
to be out of bounds. T or F?
, Page 2 of 17
True
You use subscripts 1 through 10 to access the elements in a ten element array.
T or F?
False
You can improve the efficiency of a program by leaving a loop as soon as a
match is found in the array. T or F?
True
The accessor method is another name for the set method. T or F?
False
Many newer programming languages such as C++, Java, and C# use the
square bracket notation for arrays. T or F?
True
Object-oriented programmers usually specify that their data fields will have
private access. T or F?
True
Class diagrams consists of a rectangle divided into three sections. T or F?
True
All methods require a this reference. T or F?
False
Declaring a class does not create actual objects. T or F?
True
Parallel arrays must contain the same data type. T or F?
False
Arrays cannot be used if you need to search for a range of values. T or F?
False
, Page 3 of 17
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?
False
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?
True
Array elements all have the same ____ in common.
a. pointer
b. memory location
c. value
d. data type
d. data type
The purpose of a(n) ____ is to return a value from the class to a client.
a. get method
b. set method
c. pull method
d. access method
a. get method
One advantage to using a named constant is that the statement becomes ____.
a. self-perpetuating
b. self-documenting
c. self-referencing
d. self-mitigating
b. self-documenting