Java Fundamentals MCQs

Java Fundamentals MCQs

Professional Development

25 Qs

quiz-placeholder

Similar activities

Pengenalan Coding

Pengenalan Coding

1st Grade - Professional Development

20 Qs

Computer Basics

Computer Basics

11th Grade - Professional Development

20 Qs

BCA -II SEM Information System

BCA -II SEM Information System

Professional Development

20 Qs

SISTEMAS_REPASO UF2

SISTEMAS_REPASO UF2

Professional Development

20 Qs

TUGAS 2 PROTOCOL DAN IP ADDRESS

TUGAS 2 PROTOCOL DAN IP ADDRESS

Professional Development

20 Qs

Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik

Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik

1st Grade - Professional Development

20 Qs

unit test i sem jamia

unit test i sem jamia

Professional Development

20 Qs

Quis pra UAS Jaringan Komputer

Quis pra UAS Jaringan Komputer

Professional Development

20 Qs

Java Fundamentals MCQs

Java Fundamentals MCQs

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Ms STAFF

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of a local variable in Java?

0

null

Depends on data type

Compilation error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid identifier in Java?

2value

_value

@value

value#

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? int x = 5; int y = 10; System.out.println(x + y + "Hello");

15Hello

Hello15

5Hello10

Compilation error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a constant in Java?

static

final

const

constant

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a primitive data type in Java?

int

boolean

String

double

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? int x = 10; System.out.println(x > 10 ? "Greater" : "Not Greater");

Greater

Not Greater

true

false

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code? char c = 65; System.out.println(c);

A

65

Error

a

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?