
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()
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?
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Design
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
14 questions
finding slope from a graph
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
12 questions
8th U5L9 Linear Models
Quiz
•
8th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
