Unit 1 Primitive Types Review 2024

Unit 1 Primitive Types Review 2024

9th - 12th Grade

32 Qs

quiz-placeholder

Similar activities

variables , if … else, while and loop for_HKICO_Python

variables , if … else, while and loop for_HKICO_Python

12th Grade

27 Qs

Web Design

Web Design

9th - 12th Grade

27 Qs

Computer Pretest(Arduino)

Computer Pretest(Arduino)

12th Grade

33 Qs

Pengenalan Komputer

Pengenalan Komputer

10th Grade

28 Qs

Próbny EE.09

Próbny EE.09

10th Grade

29 Qs

sensors and microcontrollers basics day 1

sensors and microcontrollers basics day 1

11th Grade

27 Qs

Year nine revision for summer assessment

Year nine revision for summer assessment

9th Grade

36 Qs

Unit 1 Primitive Types Review 2024

Unit 1 Primitive Types Review 2024

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Donna Panter

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?