Search Header Logo

Java - Unit 1 Questions

Authored by Jessica Guthrie

Computers

9th - 12th Grade

Used 4+ times

Java - Unit 1 Questions
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

Which of the following escape sequences adds a tab to the text in Java?

/t

\t

\tab

\tt

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following escape sequences adds a new line in a Java program?

/n

\n

\new

\line

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a primitive data type?

int

bit

char

boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to hold true/false values?

int

float

char

boolean

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which two datatypes are used to hold values with decimal places?

float

double

int

char

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which datatype is most appropriate to use when storing bank account amounts?

boolean

double

int

char

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which datatype is most appropriate to use when storing the letter answer to a multiple choice question?

boolean

double

int

char

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?