
Java Quiz for Kids
Quiz
•
Design
•
8th Grade
•
Practice Problem
•
Hard
SHWETANK SRIVASTAVA
Used 1+ times
FREE Resource
Enhance your content in a minute
49 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code print? System.out.print("Hello"); System.out.println(" World");
Hello World
Hello
HelloWorld
Hello World (on separate lines)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code? int x = 5; for(int i = 0; i < x; i++) { System.out.print(i + " "); }
0 1 2 3 4
1 2 3 4 5
0 1 2 3 4 5
5 4 3 2 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is used to read input from the user?
PrintWriter
Scanner
System.in.println
StringReader
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct way to declare a float value.
float a = 5.2;
float a = "5.2f";
float a = 5.2f;
float a = "5.2";
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of this code? int num = 3; if(num > 5) { System.out.println("Big"); } else { System.out.println("Small"); }
Big
Small
Error
Nothing
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will this loop run? for(int i = 1; i <= 3; i++) { System.out.println("Hi"); }
1
3
2
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to print without a new line?
System.println
print()
System.out.print()
echo()
Create a free account and access millions of resources
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
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Design
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving Trivia!
Quiz
•
6th - 8th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
12 questions
Thanksgiving Trivia
Quiz
•
3rd - 8th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Origins of Thanksgiving
Lesson
•
6th - 8th Grade
