CORRECT ANSWER WITH EXPLANATION GRADED A+
STUDY GUIDE SOUTHERN NEW HAMPSHIRE UNIVERSITY
1. Java is:
A. Low-level language
B. High-level programming language
C. Hardware
D. Database
Answer: B
Rationale: Java is a high-level language.
2. Java was developed by:
A. Microsoft
B. Sun Microsystems
C. Google
D. IBM
Answer: B
Rationale: Created by Sun Microsystems.
3. Java is:
A. Interpreted only
B. Compiled and interpreted
C. Hardware language
D. Machine code
Answer: B
Rationale: Uses compiler and JVM.
4. Java runs on:
A. Windows only
B. JVM (Java Virtual Machine)
C. BIOS
D. Hardware only
Answer: B
Rationale: JVM enables portability.
5. Java is platform independent because of:
A. OS
, B. JVM
C. CPU
D. Compiler only
Answer: B
Rationale: Write once, run anywhere.
6. Java file extension is:
A. .py
B. .java
C. .js
D. .c
Answer: B
Rationale: Source code files.
7. Java bytecode is:
A. Human code
B. Intermediate code executed by JVM
C. Hardware code
D. OS code
Answer: B
Rationale: Compiled output.
8. main() method is:
A. Optional
B. Program entry point
C. Loop
D. Class
Answer: B
Rationale: Execution starts here.
9. Java is case-sensitive:
A. False
B. True
C. Sometimes
D. Never
Answer: B
Rationale: Case matters.
10. Class in Java is:
A. Variable
, B. Blueprint of objects
C. Function
D. Loop
Answer: B
Rationale: Object template.
11. Object is:
A. Blueprint
B. Instance of class
C. Method
D. Variable
Answer: B
Rationale: Real-world entity.
12. Constructor is used to:
A. Destroy object
B. Initialize object
C. Loop program
D. Print output
Answer: B
Rationale: Setup object state.
13. Default constructor:
A. Has parameters
B. No parameters
C. Returns value
D. Is static
Answer: B
Rationale: No arguments constructor.
14. this keyword refers to:
A. Class
B. Current object
C. Loop
D. Method
Answer: B
Rationale: Current instance reference.
15. Java supports OOP:
A. False