
Java Programming Quiz

Quiz
•
Computers
•
University
•
Easy
Nguyễn Anh Tú
Used 1+ times
FREE Resource
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a logical operator in Java?
++
&&
--
**
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to declare and initialize a variable?
int x 10;
int x = 10;
x = int 10;
10 = int x;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function?
define
method
function
Correct
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to declare an integer variable?
int = x;
int x;
x int;
declare int x;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is a single-line comment?
/* comment */
// comment
/ comment
# comment
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword starts a conditional statement in Java?
for
if
while
switch
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used in switch-case for multiple options?
case
if
default
else
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
9th Grade - IT Programming - 2nd Cycle Exam

Quiz
•
9th Grade - University
50 questions
Midterm Examination

Quiz
•
University
41 questions
Q2 PKS II TPB 10

Quiz
•
University
40 questions
2ºDAW - Desarrollo Web Ent.Cliente - Trim.2 - Prof. C. Boni

Quiz
•
University - Professi...
45 questions
Event Driven Handouts 1 & 2

Quiz
•
University
44 questions
LATIHAN PYTHON

Quiz
•
10th Grade - University
40 questions
แบบทดสอบรายวิชาการเขียนโปรแกรมเชิงวัตถุเบื้องต้น

Quiz
•
University
48 questions
Java Quiz_1

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade