Java Fundamentals MCQs

Java Fundamentals MCQs

Professional Development

25 Qs

quiz-placeholder

Similar activities

Installing and Configuring Computer Systems 2

Installing and Configuring Computer Systems 2

Professional Development

20 Qs

CÂU LỆNH WHILE

CÂU LỆNH WHILE

Professional Development

21 Qs

computer literacy

computer literacy

Professional Development

20 Qs

Adwords Fundamentals??? Basic lang yan! T_T

Adwords Fundamentals??? Basic lang yan! T_T

University - Professional Development

20 Qs

Motherboard South Side

Motherboard South Side

9th Grade - Professional Development

20 Qs

Unit 20 _ Quiz1

Unit 20 _ Quiz1

Professional Development

20 Qs

Java Fundamentals

Java Fundamentals

Professional Development

20 Qs

Roblox bedwars quiz

Roblox bedwars quiz

Professional Development

22 Qs

Java Fundamentals MCQs

Java Fundamentals MCQs

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Ms STAFF

Used 1+ 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

Create a free account and access millions of resources

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?