
MCQs on Java for Grade 8
Authored by Swati Chilongia
Computers
9th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to print output in Java?
print()
println()
printf()
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does System.out.println("Hello"); do?
Prints Hello and stays on same line
Prints Hello and moves to next line
Prints nothing
Gives an error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement prints text without moving to next line?
System.out.println()
System.out.print()
System.out.printf()
None of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of System.out.print("Hi "); System.out.print("There");?
Hi
There
Hi There
HiThere
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is NOT a valid way to display output?
System.out.print("Hello")
System.out.println("Hello")
System.print("Hello")
System.out.printf("Hello")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a correct way to declare an integer variable?
int x;
x int;
integer x;
var int x;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store decimal numbers?
int
float
String
char
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
50 questions
DG Muda (2)
Quiz
•
KG - Professional Dev...
54 questions
KHỐI 9 - ÔN TẬP CUỐI KÌ 1
Quiz
•
9th Grade
50 questions
Computer Basics Test
Quiz
•
9th - 12th Grade
50 questions
Computer basics
Quiz
•
5th - 9th Grade
50 questions
TIN HỌC 6 - ÔN TẬP GK1 2425
Quiz
•
6th Grade - University
45 questions
Computer Basics
Quiz
•
6th - 12th Grade
48 questions
CIW IBA Lesson 3 Review
Quiz
•
9th - 12th Grade
50 questions
ASK T1 : Kod Arahan
Quiz
•
7th - 9th Grade
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