Java Quiz

Java Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Programming 2 quiz 1

Programming 2 quiz 1

10th - 12th Grade

25 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Pemrograman Berorientasi Objek PAS Ganjil XI RPL

Pemrograman Berorientasi Objek PAS Ganjil XI RPL

11th Grade

15 Qs

L-1 & L-2 of Computer Applications

L-1 & L-2 of Computer Applications

9th - 10th Grade

15 Qs

CS1 Unit 5

CS1 Unit 5

9th - 12th Grade

15 Qs

AP Computer Science A Unit 5

AP Computer Science A Unit 5

9th - 12th Grade

15 Qs

Grade 10 - Final Exam practice quiz

Grade 10 - Final Exam practice quiz

10th Grade

19 Qs

Javascript Basic

Javascript Basic

9th - 12th Grade

20 Qs

Java Quiz

Java Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Garrett White

Used 12+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does JVM stand for?
Java Verification Machine
Java Virtual Machine
Java Value Memory
Just Virtual Machine

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, the entry point of a program is the ____
main class
main method
main variable
main function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, what does the public keyword indicate?
The function can be accessed by any other code.
The function is private.
The function is only accessible within the same class.
The function returns a public value.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The process of compiling a Java program involves which steps?
Source code to bytecode
Bytecode to machine code
Both A and B
Neither A nor B

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to create a new object in Java?
create
new
make
instantiate

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Java code: System.out.println(10 + 2 + "Hello");?
12Hello
Error
Hello12
10+2Hello

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare an integer variable x with a value of 5 in Java?
int x = 5;
x = 5;
var x = 5;
int x == 5;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?