Given the code fragment:

What is the result?
A. 2 4
B. 0 2 4 6
C. 0 2 4
D. Compilation fails
View the exhibit:
public class Student {
public String name = "";
public int age = 0;
public String major = "Undeclared";
public boolean fulltime = true;
public void display() {
System.out.println("Name: " + name + " Major: " + major); }
public boolean isFullTime() {
return fulltime;
}
}
Which line of code initializes a student instance?
A. Student student1;
B. Student student1 = Student.new();
C. Student student1 = new Student();
D. Student student1 = Student();
Given:
public class TestLoop1 {
public static void main(String[] args) {
int a = 0, z=10;
while (a < z) {
a++;
--z;
}
System.out.print(a + " : " + z);
}
}
What is the result?
A. 5 : 5
B. 6 : 4
C. 6 : 5
D. 5 : 4
Given the code from the Greeting.Java file:

Which set of commands prints Hello Duke in the console?

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

What is the output?
A. 4 4
B. 3 5
C. 4 7
D. 5 4
E. 4 5
F. 4 21
Given:

And given the code fragment:

What is the result?
A. C2C2
B. C1C2
C. C1C1
D. Compilation fails
Which two statements are true? (Choose two.)
A. Error class is unextendable.
B. Error class is extendable.
C. Error is a RuntimeException.
D. Error is an Exception.
E. Error is a Throwable.
Given the code fragment:

What is the result?
A. Invalid Name
B. Invalid Name omas
C. Invalid Name omas null null
D. omas ter
seph
Given the code fragment:

What is the result?
A. [JavaForum, ExpertForum]
B. [JavaGroup, ExpertGroup]
C. [JavaForumGroup, ExpertForumGroup]
D. [JavaGroup, TechGroup ExpertGroup]