INTRODUCTION TO JAVA PROGRAMMING AND
DATA STRUCTURES 2026 COMPREHENSIVE
ASSESSMENT SCRIPT SOLVED QUESTIONS
ANSWERS UPDATED REVIEW SET
◉ Which of the following is an example of an immutable class?
A. Math.
B. Scanner.
C. String.
D. System.
Answer: C. String.
◉ Which is an example of a class that needs to keep track of a total,
i.e., a quantity that can go up and down?
A. The Shape class.
,B. The Scanner class.
C. The string class.
D. The BankAccount class..
Answer: D. The BankAccount class.
◉ When an object is intended to set and manage properties, where
should those properties be stored?
A. Instance variables.
B. An array as a local variable in a method.
C. An off-site database.
D. The main method of the program..
Answer: A. Instance variables.
◉ Which of the following names would be considered to be
qualified?
, A. studentOne.getGraduationYear()
B. getGraduationYear().print()
C. this.getGraduationYear()
D. getGraduationYear().
Answer: A. studentOne.getGraduationYear()
◉ To use a public variable or method outside of its class, you must
____ the name.
A. bind
B. encapsulate
C. instantiate
D. qualify.
Answer: D. qualify
DATA STRUCTURES 2026 COMPREHENSIVE
ASSESSMENT SCRIPT SOLVED QUESTIONS
ANSWERS UPDATED REVIEW SET
◉ Which of the following is an example of an immutable class?
A. Math.
B. Scanner.
C. String.
D. System.
Answer: C. String.
◉ Which is an example of a class that needs to keep track of a total,
i.e., a quantity that can go up and down?
A. The Shape class.
,B. The Scanner class.
C. The string class.
D. The BankAccount class..
Answer: D. The BankAccount class.
◉ When an object is intended to set and manage properties, where
should those properties be stored?
A. Instance variables.
B. An array as a local variable in a method.
C. An off-site database.
D. The main method of the program..
Answer: A. Instance variables.
◉ Which of the following names would be considered to be
qualified?
, A. studentOne.getGraduationYear()
B. getGraduationYear().print()
C. this.getGraduationYear()
D. getGraduationYear().
Answer: A. studentOne.getGraduationYear()
◉ To use a public variable or method outside of its class, you must
____ the name.
A. bind
B. encapsulate
C. instantiate
D. qualify.
Answer: D. qualify