Given the code fragment:

Assume that the system date is June 20, 2014. What is the result?

A. Option A
B. Option B
C. Option C
D. Option D
Given the code fragment:

What is the result?
A. May 04, 2014T00:00:00.000
B. 2014-05-04T00:00: 00. 000
C. 5/4/14T00:00:00.000
D. An exception is thrown at runtime.
Which statement best describes encapsulation?
A. Encapsulation ensures that classes can be designed so that only certain fields and methods of an object are accessible from other objects.
B. Encapsulation ensures that classes can be designed so that their methods are inheritable.
C. Encapsulation ensures that classes can be designed with some fields and methods declared as abstract.
D. Encapsulation ensures that classes can be designed so that if a method has an argument MyType x,
any subclass of MyType can be passed to that method.
Given: What is the output?

A. 2015-03-27
B. 2015-04-27
C. 2015-02-27
D. Compilation fails due to error at line 6.
E. Compilation fails due to error at line 8.
Given the code fragment:
int[] array = {I, 2, 3, 4, 5};
And given the requirements:
Process all the elements of the array in the order of entry. Process all the elements of the array in the
reverse order of entry. Process alternating elements of the array in the order of entry.
Which two statements are true?
A. Requirements 1, 2, and 3 can be implemented by using the enhanced for loop.
B. Requirements 1, 2, and 3 can be implemented by using the standard for loop.
C. Requirements 2 and 3 CANNOT be implemented by using the standard for loop.
D. Requirement 1 can be implemented by using the enhanced for loop.
E. Requirement 3 CANNOT be implemented by using either the enhanced for loop or the standard for loop.
Given the code fragment:

What is the result?
A. A B
B. A element 0 B element 1
C. A NullPointerExceptionis thrown at runtime.
D. A 0 B 1

Which three statements are true about the structure of a Java class? (Choose three.)
A. A class cannot have the same name as its field.
B. A public class must have a main method.
C. A class can have final static methods.
D. A class can have overloaded private constructors.
E. Fields need to be initialized before use.
F. Methods and fields are optional components of a class.
Given:

What is the result?
A. 0:0 100:0
B. null:0
100:0
C. 0:0
100:200
D. null:null 100:null
Which two code fragments cause compilation errors? (Choose two.)
A. double y1 = 203.22; float fit = y1;
B. float fit = (float) 1_11.00;
C. Float fit = 100.00;
D. int y2 = 100; float fit = (float) y2;
E. float fit = 100.00F;