Java Programming Quiz

Java Programming Quiz

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

Hygiene and infection control

Hygiene and infection control

11th Grade

22 Qs

Big Bang Cosmology

Big Bang Cosmology

9th - 12th Grade

22 Qs

Chapter 3 & 4 Test Review

Chapter 3 & 4 Test Review

8th Grade - University

23 Qs

Nervous System

Nervous System

9th - 12th Grade

23 Qs

Science F1 with Mr Jegis-September

Science F1 with Mr Jegis-September

7th - 9th Grade

24 Qs

A & P chapter 1 part 2 Survival Needs | Grade 10

A & P chapter 1 part 2 Survival Needs | Grade 10

10th Grade

23 Qs

Q3: Marine Mammals

Q3: Marine Mammals

11th - 12th 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

\

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?