Search Header Logo

Java Programming Quiz

Authored by Fidaa Abed

Science

9th - 12th Grade

Used 10+ times

Java Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

\

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?