
Java Programming Quiz
Authored by Nguyễn Anh Tú
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
45 questions
Microsoft Excels: Formulas and Functions
Quiz
•
12th Grade - University
40 questions
遙控無人機考古題(專業操作證4)
Quiz
•
KG - Professional Dev...
40 questions
Class Test 1 - CSE 443 (Mobile Telecommunication)
Quiz
•
University
50 questions
Blockchain Quiz
Quiz
•
University
50 questions
ICT 201-250
Quiz
•
University
40 questions
Post test Keamanan Jaringan
Quiz
•
University
50 questions
VIRUS AND ANTIVIRUS
Quiz
•
10th Grade - University
45 questions
Davinci Resolve 17 Fusion 101
Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade