Search Header Logo

11-27 Data Types in Java

Authored by Joshua Willis

Computers

8th Grade - University

Used 16+ times

11-27 Data Types in Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a primitive data type?

double

Integer

String

List

Number

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a reference data type?

int

double

char

String

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type should you use for decimals?

int

double

char

String

boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type should you use for true and false?

int

double

char

String

boolean

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which best describes primitive data types in Java?

Primitive data types point to an object.

Primitive data types are rarely used in Java.

String is a primitive data type.

Primitive data types are the most basic building blocks of all code generated in Java.

Primitive data types are data types used by cave people to write code.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which best describes reference data types in Java?

Reference data types point to an object.

Reference data types are rarely used in Java.

boolean is a reference data type.

Reference data types are the most basic building blocks of all code generated in Java.

Reference data types are found in the boring section of the library.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x;


/* What is the correct description of the code segment? */

The variable x has been declared as an int.

The variable x has been initialized as an int.

The variable x has been instantiated as an int.

The variable x has been referenced as an int.

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?