Search Header Logo

EX20: Primitive Data Types

Authored by Khairul Imtiyaz

Computers

12th Grade

EX20: Primitive Data Types
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the minimum value of the byte data type in Java?

32,768

1

0

-128

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used for single-precision 32-bit IEEE 754 floating point numbers in Java?

int

double

long

float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum value of the long data type in Java?

264-1

231-1

263-1

65,535

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in Java is used for a 16-bit Unicode character?

double

boolean

int

char

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value for a boolean field in Java?

0

null

false

true

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in Java is used for double-precision 64-bit IEEE 754 floating point numbers?

long

int

double

float

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum value of the int data type in Java?

263-1

231-1

264-1

65,535

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?