Search Header Logo

Unit 1 Primitive Types Review 2024

Authored by Donna Panter

Computers

9th - 12th Grade

Used 14+ times

Unit 1 Primitive Types Review 2024
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the following code?

System.out.println(8 + "" + 49);

57

8 49

849

No output due to a compile error

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the code below?

System.out.println("Hello ");

System.out.print("people ");

Hello

Hello

Hello people

Hello

Hellopeople

Hello

people

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the code below?

 

System.out.println( 3 + 3 );

6

9

3

0

-3

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the code below?

 

System.out.println(4 + " " + 3);

7

4 3

7 7

4" "3

43

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the code below?

 

double y = 9.0;

int x = y;

System.out.println(x);

9.0

9

There is no output due to a compile error

There is no output due to a runtime error

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the following code?

System.out.println(""+3+4+5);

345

39

75

12

No output due to a compile error

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the code below?

 

System.out.print("Hello ");

System.out.println("people ");

System.out.println("everywhere ");

Hello

people

everywhere

Hello people

everywhere

Hellopeople

everywhere

Hello

people everywhere

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?