
MCQs on Java for Grade 8

Quiz
•
Design
•
8th Grade
•
Medium
SHWETANK SRIVASTAVA
Used 12+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
45 questions
KISHI EWOOD YEAR 8 DESIGN & TECHNOLOGY

Quiz
•
8th Grade
50 questions
Logos Assessment

Quiz
•
4th - 10th Grade
50 questions
DM: Lesson 1 REVIEW GAME

Quiz
•
8th - 10th Grade
50 questions
Physics Yr. 11 3rd Term Exam

Quiz
•
8th Grade
45 questions
Engineering Design Process

Quiz
•
6th - 8th Grade
55 questions
Year 8 Textiles

Quiz
•
8th Grade
48 questions
Formative Assessment MYP 3

Quiz
•
8th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Design
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
10 questions
Converting Repeating Decimals to Fractions

Quiz
•
8th Grade