EX20: Primitive Data Types

EX20: Primitive Data Types

12th Grade

15 Qs

quiz-placeholder

Similar activities

CSA 1.1.2 Variables & Data Types

CSA 1.1.2 Variables & Data Types

11th - 12th Grade

13 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

Computer Science

Computer Science

9th - 12th Grade

20 Qs

KUIZ ASK Tingkatan 2 Bab 3.1 (Bahagian 1)

KUIZ ASK Tingkatan 2 Bab 3.1 (Bahagian 1)

1st Grade - Professional Development

15 Qs

APCSA Arrays

APCSA Arrays

9th - 12th Grade

20 Qs

Java Arrays

Java Arrays

9th - 12th Grade

20 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

AP CSA 1.2 Variables and Data Types

AP CSA 1.2 Variables and Data Types

11th - 12th Grade

19 Qs

EX20: Primitive Data Types

EX20: Primitive Data Types

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Khairul Imtiyaz

FREE Resource

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

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?