
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
40 questions
MS office 2016
Quiz
•
1st Grade - Professio...
40 questions
Computer Network
Quiz
•
12th Grade - University
45 questions
Pagtatapos Isa
Quiz
•
University
50 questions
Fundamental of OS - Revision 2
Quiz
•
University
47 questions
MS Word Preliminary Examination
Quiz
•
10th Grade - University
50 questions
Introduction to Data Communication 2
Quiz
•
University
40 questions
Discrete Structure (COS 203) CA
Quiz
•
University
45 questions
أسئلة تقنية المعلومات
Quiz
•
9th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University