WorksheetsJava Programming Quiz 1
Total questions: 20
Worksheet time: 10mins
Why is Java widely used in the software industry?
It is difficult to learn
It has no platform independence
It supports Object-Oriented Programming
It lacks security features
Which of the following is a key reason for learning Java?
Java does not support GUI applications
Java is platform-independent and widely used in enterprise applications
Java does not support multi threading
Java is only used for web development
Java is important in the software industry because:
It is a compiled language only
It is used in web applications, mobile applications, and enterprise software
It is slower than other programming languages
It does not support cloud computing
One of the reasons Java is preferred in large-scale applications is:
It is less secure
It does not support OOP
It provides automatic memory management
It cannot be used in Android development
Which of the following is NOT a real-world application of Java?
Web applications
Mobile applications
Operating system development
Enterprise applications
Which industry widely uses Java for application development?
Healthcare
Banking and Finance
E-commerce
All of the above
Who is the creator of Java?
Dennis Ritchie
James Gosling
Bjarne Stroustrup
Guido van Rossum
Java was initially developed by:
Microsoft
IBM
Sun Microsystems
Oracle Corporation
Java was originally called:
OAK
Cedar
Maple
Teak
In which year was Java first released?
1989
1991
1995
1999
Which feature of Java makes it platform-independent?
Object-Oriented Programming
JVM
Garbage Collection
Static Typing
Java is considered secure because:
It uses pointers
It does not allow memory access directly
It supports manual memory allocation
It uses global variables
Which of the following is NOT a feature of Java?
Platform independence
Automatic memory management
Multiple inheritance using classes
Robust and secure
Which of the following statements about C++ and Java is true?
Java supports pointers, while C++ does not
Java supports multiple inheritance using classes, whereas C++ does not
Java is platform-independent, whereas C++ is platform-dependent
Java uses destructors for garbage collection, whereas C++ does not
Which of the following is a major difference between Java and C++?
Java supports operator overloading
Java uses garbage collection, while C++ requires manual memory management
C++ is an interpreted language
Java does not support exception handling
What does JDK stand for?
Java Development Kernel
Java Data Kit
Java Development Kit
Java Digital Kernel
Which of the following is responsible for running Java programs?
JRE
JVM
JDK
Compiler
JRE includes:
Compiler and debugger
Java Runtime Environment with JVM and libraries
Only the JVM
Source code editor
What is Java Bytecode?
Machine code specific to a processor
A human-readable format
An intermediate representation executed by the JVM
A high-level programming language
What is the correct sequence of the Java compilation process?
Write code → Compile → Bytecode → Execute by JVM
Write code → Execute → Compile → Bytecode
Compile → Write code → Bytecode → Execute
Write code → Bytecode → Compile → Execute
