JAVA QUIZ

JAVA QUIZ

Professional Development

10 Qs

quiz-placeholder

Similar activities

hroXchange Series Talk 2

hroXchange Series Talk 2

Professional Development

15 Qs

Quiz Indihome Jagakarsa

Quiz Indihome Jagakarsa

KG - Professional Development

15 Qs

Pre Test Shop Floor Cargill

Pre Test Shop Floor Cargill

Professional Development

12 Qs

LNM Quiz Challenge (Prelim)

LNM Quiz Challenge (Prelim)

Professional Development

10 Qs

Jumanji welcome to the jungle quiz

Jumanji welcome to the jungle quiz

3rd Grade - Professional Development

10 Qs

Guess the Movie

Guess the Movie

Professional Development

15 Qs

ECG - Lesson 9

ECG - Lesson 9

12th Grade - Professional Development

14 Qs

Minecraft animals

Minecraft animals

2nd Grade - Professional Development

10 Qs

JAVA QUIZ

JAVA QUIZ

Assessment

Quiz

Other

Professional Development

Practice Problem

Easy

Created by

seetha S

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in Java?

System.out.println("Hello World");  

print ("Hello World");

echo("Hello World");

Console.WriteLine("Hello World");

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Java is short for "JavaScript".

False  

true

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert COMMENTS in Java code?


// This is a comment  

/* This is a comment

# This is a comment

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to create a variable that should store text?

String  

Txt

myString

string  

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method can be used to find the length of a string?

len()  

getLength()

getSize()

length()  

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method can be used to return a string in upper case letters?

toUpperCase()  

tuc()

upperCase()

touppercase()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create an object called myObj of MyClass?

new myObj = MyClass();

class myObj = new MyClass();

class MyClass = new myObj();

MyClass myObj = new MyClass();  

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?