Q3 Exam Reviewer A
Q3 Exam Reviewer A
2nd Semester
3rd Quarter
1. When a local variable has the same name as a field, what does the local
variable’s name do to the field’s name?
A. shadows C. deletes
B. complements D. merges with
2.If you do not write a constructor for a class, what is automatically provided for the
class?
A. accessor method C. default constructor
B. default instance D. predefined constructor
4.Two or more methods in a class may have the same name, as long as what
should be different?
A. their return values C. their parameter list
B. their access specifier D. their memory address
5.What is the process of matching a method call with the correct method known
for?
A. matching C. linking
B. binding D. connecting
7.Which of the following is the correct syntax for writing a method with parameters?
A. public static void example (x: int, y: int) {} C. public static void example (x, y) {}
B. public static void example (int x, int y) {} D. public static void example (int x,y) {}
11. When this access specifier is applied to a class member, the member cannot be
accessed by code outside the class. What is this access specifier?
A. public C. void
B. private D. protected
16. What key word causes a value to be sent back from a method to the statement
that called it?
A. send C. value
B. return D. public
17. Which method gets a value from a class’s field, but does not change it?
A. accessor C. void
B. constructor D. mutator
18. What method stores a value in a field or in some other way changes the value of
a field?
A. accessor C. void
B. constructor D. mutator
19. When the value of an item is dependent on other data, and that item is not
updated when the other data is changed, what has the value become?
A. bitter C. asynchronous
B. stale D. moldy
20.Which method of a class does not have any return type—not even void?
A. accessor C. mutator
B. void D. constructor
21.What does ASCII stand for?
A. American Symbol Code For Information Interchange
B. American Sales Code For Corrupt Information Interchange
C. American Standard Code For Information Interchange
D. American Standard Code For Informational Interchange