Search Header Logo

PreTest - JAVA

Authored by Prof. Karale

Computers

University

Used 5+ times

PreTest - JAVA
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

65 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the size of int in Java?

2 bytes
4 bytes
8 bytes
Depends on OS

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a Java keyword?

static
Integer
void
new

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will 10 / 3 return in Java?

3.333
3
0
3.0

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which access modifier makes a member visible to all classes?

protected
private
default
public

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these is not a primitive type?

int
float
String
boolean

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default value of a boolean variable?

true
false
0
null

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which loop is guaranteed to execute at least once?

for
while
do-while
foreach

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?

Discover more resources for Computers