Search Header Logo

Java Unit 1

Authored by POOMANI M

Computers

University

Used 2+ times

Java Unit 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many bits is the long data type in Java?

16

32

64

128

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an integer in Java Programming?

1 byte

2 bytes

4 bytes

8 bytes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the smallest primitive data type in Java?

short

int

long

byte

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of a char in Java?

0

'\0'

' '

null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a primitive data type in Java?

void

float

char

short

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the expression true || false?

true

false

null

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop construct in Java is best suited when the number of iterations is known?

while

Do... while

for

for each

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?