Java Programming Quiz

Java Programming Quiz

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

Parts of a Cell- 7th Grade

Parts of a Cell- 7th Grade

7th - 9th Grade

24 Qs

Kuis Online SMK Muhammadiyah Cikelet

Kuis Online SMK Muhammadiyah Cikelet

10th - 12th Grade

22 Qs

Scope and Delimitation

Scope and Delimitation

9th Grade

23 Qs

Introduction to Psychology

Introduction to Psychology

12th Grade

23 Qs

Unit 6: Respiratory System Vocab

Unit 6: Respiratory System Vocab

10th Grade

22 Qs

Animal Systems Test Review

Animal Systems Test Review

9th - 10th Grade

24 Qs

Cockermouth School AQA GCSE Using resources

Cockermouth School AQA GCSE Using resources

10th - 11th Grade

23 Qs

3RD QUARTER QUIZ

3RD QUARTER QUIZ

10th 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?