Basic Java Quiz

Basic Java Quiz

University

15 Qs

quiz-placeholder

Similar activities

Relational Algebra and Calculus

Relational Algebra and Calculus

University

20 Qs

Understanding Email, Contacts and Calendaring

Understanding Email, Contacts and Calendaring

University

10 Qs

ICT 0513 - Chapter 4 : System Unit

ICT 0513 - Chapter 4 : System Unit

University

15 Qs

Pra UPS 2

Pra UPS 2

University

20 Qs

BB

BB

University

10 Qs

DWDM-2

DWDM-2

University

20 Qs

Tree and Planar Graph

Tree and Planar Graph

University

10 Qs

CodeMonkey for B.Ed IT

CodeMonkey for B.Ed IT

University

10 Qs

Basic Java Quiz

Basic Java Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Stacey Do

Used 22+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What type of language is Java?

Object Oriented

Scripting

Assembly

Pseudocode

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of an int variable in Java?

0

1

null

-1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to create an object in Java?

create

object

new

make

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct way to declare a variable of type double in Java?

double variableName

boolean variableName

String variableName

int variableName

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code? int x = 5; System.out.println(x++);

6

null

5

4

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code? String str = "Java"; System.out.println(str.length());

6

3

5

4

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code? System.out.println(10 > 5 && 5 < 3);

5

true

false

10

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?