Java Programming Quiz

Java Programming Quiz

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

Phase changes

Phase changes

10th - 12th Grade

22 Qs

Human Cell development

Human Cell development

9th Grade

22 Qs

control and coordination

control and coordination

10th Grade

24 Qs

Skeletal System

Skeletal System

9th - 12th Grade

23 Qs

PTS PLH X

PTS PLH X

10th Grade

25 Qs

Heat Energy

Heat Energy

3rd Grade - University

24 Qs

Earth Sun Moon

Earth Sun Moon

9th - 11th Grade

25 Qs

BIG BANG THEORY AND FORMATION OF ELEMENTS

BIG BANG THEORY AND FORMATION OF ELEMENTS

11th Grade

25 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

Already have an account?