Primitive Types Quiz Review

Primitive Types Quiz Review

10th Grade

12 Qs

quiz-placeholder

Similar activities

Católico ¿conoces su iglesia?

Católico ¿conoces su iglesia?

KG - Professional Development

15 Qs

personajes Antíguo Testamento

personajes Antíguo Testamento

4th - 10th Grade

12 Qs

PARASHA VAYERÁ - TORAH PARA TI KIDS

PARASHA VAYERÁ - TORAH PARA TI KIDS

1st Grade - Professional Development

12 Qs

Don Bosco

Don Bosco

1st Grade - University

12 Qs

Día 3. David. EBV Vallarta

Día 3. David. EBV Vallarta

1st - 10th Grade

10 Qs

Historia Denominacional

Historia Denominacional

1st - 10th Grade

10 Qs

Formación Carismática

Formación Carismática

KG - Professional Development

10 Qs

ecumenismo

ecumenismo

10th Grade

10 Qs

Primitive Types Quiz Review

Primitive Types Quiz Review

Assessment

Quiz

Religious Studies

10th Grade

Practice Problem

Medium

Created by

Henry Vo

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a primitive type?

int
boolean
String
char

double

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of x after this code runs?

int x = 5;

x = 10;

x = 4;

5

10

4

true

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about variables?

The memory associated with a variable of a primitive type holds an actual primitive value.

When a variable is declared final, its value can only be changed through a direct reassignment.

A variable originally created as an int can be changed to store a double through casting.

All of these choices are true

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper syntax to declare and initialize a variable called temperature to have the value 70.4?

int temperature = 70.4;

double temperature = 70.4;

temperature = 70.4;

dbl temperature = 70.4;

temperature = (double) 70.4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which expression returns the 1’s place of an integer x?

x % 10

x / 10

x % 100

x + 1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of myInteger after this line of code is executed?

int myInteger = (int) 5.6;

6

5.6

5

9

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What output will be produced by

System.out.println("Hello");

System.out.println("Karel");

Hello Karel

HelloKarel

Hello

Karel

Error

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?