PreTest - JAVA

PreTest - JAVA

University

65 Qs

quiz-placeholder

Similar activities

Data Structure

Data Structure

University

60 Qs

Python basics

Python basics

University

60 Qs

64-FinalJava

64-FinalJava

University

60 Qs

JAVA 4C123 4

JAVA 4C123 4

University

60 Qs

ADET Midterm

ADET Midterm

University

67 Qs

Java

Java

University

65 Qs

Java Array String

Java Array String

University

67 Qs

Latihan CSS dan Javascript

Latihan CSS dan Javascript

University

69 Qs

PreTest - JAVA

PreTest - JAVA

Assessment

Quiz

Computers

University

Hard

Created by

Prof. Karale

Used 5+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?