
Java Programming Challenge

Quiz
•
Other
•
University
•
Medium
huyen vu
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: if (5 > 3) { System.out.println("True"); }?
Maybe
True
False
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid if statement in Java?
if x > 0 { System.out.println("Positive"); }
if (x > 0) System.out.println("Positive");
if (x > 0) { System.out.println Positive; }
if (x > 0) { System.out.println("Positive"); }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: for (int i = 0; i < 3; i++) { System.out.print(i); }?
012
0123
00
123
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop will execute at least once?
for loop
do-while loop
foreach loop
while loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression 10 % 3?
1
10
0
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to compare two values in Java?
=
<>
== and .equals()
!=
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Java?
var variableName int;
float variableName = 0;
string variableName;
int variableName;
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Java Programming Quiz

Quiz
•
University
15 questions
Java Class and Object Quiz

Quiz
•
University
15 questions
C Quiz

Quiz
•
University
20 questions
Introduction to JAVA Quiz

Quiz
•
University
20 questions
Tech quiz-july

Quiz
•
University
15 questions
Web Development Quiz

Quiz
•
University
20 questions
Orientation Quiz

Quiz
•
University
16 questions
Java For Loop

Quiz
•
10th Grade - 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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University