Java Programming Quiz

Java Programming Quiz

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

Earth's Subsystems

Earth's Subsystems

11th Grade

25 Qs

Review (G9)

Review (G9)

9th Grade

25 Qs

SAINS PT3 2019

SAINS PT3 2019

7th - 9th Grade

29 Qs

GRADE 9 SCIENCE- PNHS

GRADE 9 SCIENCE- PNHS

8th - 9th Grade

22 Qs

UNIVERSE AND THE SOLAR SYSTEM

UNIVERSE AND THE SOLAR SYSTEM

10th Grade

23 Qs

Respiratory System

Respiratory System

9th Grade

24 Qs

Solar System

Solar System

1st Grade - University

24 Qs

Human Anatomy and Function

Human Anatomy and Function

9th - 12th Grade

27 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Science

9th - 12th Grade

Practice Problem

Medium

Created by

Fidaa Abed

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol starts a single-line comment in Java?

/*

//

#

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A public class named Welcome1 must be saved in a file named:

welcome1.class

welcome1.java

Welcome1.java

Welcome1Class.java

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identifiers in Java cannot:

Begin with a digit

Contain underscores

Use dollar signs

Use both uppercase and lowercase

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is the entry point of every Java application?

start()

run()

main()

init()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does void mean in public static void main?

The method returns 0

The method returns nothing

The method returns a string

The method returns an object

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement prints output without moving to a new line?

println()

print()

printf()

display()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What escape sequence is used for a newline?

\r

\t

\n

\

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?