MCQs on Java for Grade 8

MCQs on Java for Grade 8

8th Grade

50 Qs

quiz-placeholder

Similar activities

Year 9 Food Assessment

Year 9 Food Assessment

8th Grade

51 Qs

animal crossing new horizon

animal crossing new horizon

KG - University

46 Qs

Yr. 11 3rd Mid Term Physics Exam     iz

Yr. 11 3rd Mid Term Physics Exam iz

8th Grade

50 Qs

KISHI EWOOD YEAR 8 DESIGN & TECHNOLOGY

KISHI EWOOD YEAR 8 DESIGN & TECHNOLOGY

8th Grade

45 Qs

MCQs on Java for Grade 8

MCQs on Java for Grade 8

Assessment

Quiz

Design

8th Grade

Practice Problem

Medium

Created by

SHWETANK SRIVASTAVA

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Similar Resources on Wayground