wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Java Programming Quiz 1

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Why is Java widely used in the software industry?

a)

It is difficult to learn

b)

It has no platform independence

c)

It supports Object-Oriented Programming

d)

It lacks security features

2.

Which of the following is a key reason for learning Java?

a)

Java does not support GUI applications

b)

Java is platform-independent and widely used in enterprise applications

c)

Java does not support multi threading

d)

Java is only used for web development

3.

Java is important in the software industry because:

a)

It is a compiled language only

b)

It is used in web applications, mobile applications, and enterprise software

c)

It is slower than other programming languages

d)

It does not support cloud computing

4.

One of the reasons Java is preferred in large-scale applications is:

a)

It is less secure

b)

It does not support OOP

c)

It provides automatic memory management

d)

It cannot be used in Android development

5.

Which of the following is NOT a real-world application of Java?

a)

Web applications

b)

Mobile applications

c)

Operating system development

d)

Enterprise applications

6.

Which industry widely uses Java for application development?

a)

Healthcare

b)

Banking and Finance

c)

E-commerce

d)

All of the above

7.

Who is the creator of Java?

a)

Dennis Ritchie

b)

James Gosling

c)

Bjarne Stroustrup

d)

Guido van Rossum

8.

Java was initially developed by:

a)

Microsoft

b)

IBM

c)

Sun Microsystems

d)

Oracle Corporation

9.

Java was originally called:

a)

OAK

b)

Cedar

c)

Maple

d)

Teak

10.

In which year was Java first released?

a)

1989

b)

1991

c)

1995

d)

1999

11.

Which feature of Java makes it platform-independent?

a)

Object-Oriented Programming

b)

JVM

c)

Garbage Collection

d)

Static Typing

12.

Java is considered secure because:

a)

It uses pointers

b)

It does not allow memory access directly

c)

It supports manual memory allocation

d)

It uses global variables

13.

Which of the following is NOT a feature of Java?

a)

Platform independence

b)

Automatic memory management

c)

Multiple inheritance using classes

d)

Robust and secure

14.

Which of the following statements about C++ and Java is true?

a)

Java supports pointers, while C++ does not

b)

Java supports multiple inheritance using classes, whereas C++ does not

c)

Java is platform-independent, whereas C++ is platform-dependent

d)

Java uses destructors for garbage collection, whereas C++ does not

15.

Which of the following is a major difference between Java and C++?

a)

Java supports operator overloading

b)

Java uses garbage collection, while C++ requires manual memory management

c)

C++ is an interpreted language

d)

Java does not support exception handling

16.

What does JDK stand for?

a)

Java Development Kernel

b)

Java Data Kit

c)

Java Development Kit

d)

Java Digital Kernel

17.

Which of the following is responsible for running Java programs?

a)

JRE

b)

JVM

c)

JDK

d)

Compiler

18.

JRE includes:

a)

Compiler and debugger

b)

Java Runtime Environment with JVM and libraries

c)

Only the JVM

d)

Source code editor

19.

What is Java Bytecode?

a)

Machine code specific to a processor

b)

A human-readable format

c)

An intermediate representation executed by the JVM

d)

A high-level programming language

20.

What is the correct sequence of the Java compilation process?

a)

Write code → Compile → Bytecode → Execute by JVM

b)

Write code → Execute → Compile → Bytecode

c)

Compile → Write code → Bytecode → Execute

d)

Write code → Bytecode → Compile → Execute