Search Header Logo

Java Programming Quiz

Authored by Niveditha N

Other

Professional Development

Used 5+ 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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which component executes Java code?

JDK

JVM

JRE

Java Source File

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The ++ operator does what?

Multiply by 2

Increment by 1

String concatenate

Divide by 2

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the default value of an uninitialized boolean class member?

true

false

null

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which keyword is used to create an object instance?

create

init

new

object

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do you import the Scanner class?

import java.io.Scanner;

include java.util.Scanner;

import java.util.Scanner;

using java.util.Scanner;

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these is not a primitive type?

int

String

char

double

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

A block in Java always starts and ends with what?

[]

()

{}

<>

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?