Which statement is true about a Java method?
A. It must be declared with an access modifier.
B. It cannot be defined within another method.
C. It must accept a parameter and return a value.
D. It cannot be defined as static final.

Given the code fragment:

What is the result?
A. Unknown issues. Invalid divisor.
B. Unknown issues.
C. Invalid divisor.
D. A compilation error occurs.
Given the code fragment:

What is the result?
A. 3
B. A compilation error occurs.
C. 2
D. 0
Given: What is the result?

A. 100
B. A compilation error occurs at line n2.
C. A compilation error occurs at line n1.
D. 100
You have a microprocessor board, such as Raspberry PI, wired to control a drone.
Which edition of Java is geared towards use of simple, closed systems with constrained memory requirements, such as a microprocessor board?
A. Java Micro Edition
B. Java Standard Edition with a Compact Profile
C. Java Enterprise Edition
D. Java SE Embedded

Identify two class variables.
A. private static int numberOfSquares = 20;
B. public static int counter = 0;
C. private Measure cm;
D. public int size = 10;
E. int scale = 35;
Given these class definitions:

Which class or classes compile?
A. only MyClassB, MyClassC, and MyClassD
B. only MyClassB
C. MyClassA, MyClassB, MyClassC, and MyClassD
D. only MyClassB and MyClassD
Given the code fragment: What is the result?

A. true true
B. true false
C. false false
D. false true
Given:

What is the result?
A. Compilation fails. To make it compile, replace line n1 with var1 = 0;
B. Compilation fails. To make it compile, replace line n2 with var2 = 0;
C. 0
D. Nothing is printed.
Identify three features of the Java programming language.
A. distributed
B. direct memory management
C. multithreaded
D. strongly typed
E. dynamically typed