Pre-Test (Programming Java) 2024

Pre-Test (Programming Java) 2024

35 Qs

quiz-placeholder

Similar activities

Backend Gokak

Backend Gokak

Professional Development

33 Qs

Backend Gadag

Backend Gadag

Professional Development

33 Qs

Backend Dharwad

Backend Dharwad

Professional Development

33 Qs

Core Java and JDBC - QUIZ 1

Core Java and JDBC - QUIZ 1

KG - University

37 Qs

Wind-Down Friday!

Wind-Down Friday!

Professional Development

31 Qs

Pre-Test (Programming Java) 2024

Pre-Test (Programming Java) 2024

Assessment

Quiz

others

Hard

Created by

JOHN REYES

Used 7+ times

FREE Resource

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

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?