Search Header Logo

Pre-Test (Programming Java) 2024

Authored by JOHN REYES

others

Used 7+ times

Pre-Test (Programming Java) 2024
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a primitive data type in Java?

String
Integer
float
Double

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, what is the keyword used for declaring a variable explicitly?

var
int
let
const

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of an uninitialized boolean variable in Java?

true
false
null
undefined

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a Java access modifier?

public
private
protected
static

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about Java virtual machine (JVM)?

JVM is an interpreter that executes Java bytecode.
JVM is a compiler that generates Java bytecode.
JVM is a library that provides Java standard classes.
JVM is a tool that optimizes Java code

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used to create a new object in Java?

new
create
init
return

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid identifier in Java?

_first_name
First_Name
first name
firstName

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?