Question: The language is Java. Thanks in advance. All 25 questions in this part have equal weight (ie, three marks). For each question in ths part,
All 25 questions in this part have equal weight (ie, three marks). For each question in ths part, clearly circle the letter corresponding to your answen. 1. Consider the following code appearing in some test class: A a new AO; int c a.b; In order for this to work, which statement must be true? a) a must be declared public inside class A b) b must be declared public inside class A c) c must be declared public inside class A d) Method bO must return an int. e) None of the above. 2. One of the roles of encapsulation is to help programmers and designers keep separate from -' In the context of our course, which two words best fit the blanks (in order)? public, private superclass, subclass interface, implementation interface, inheritance None of the above a) b) c) d) e) 3. Which of the following loop headers will result in a loop body executing exactly ten times? a) for (int i-1; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
