Search Header Logo

APCS Unit 2

Authored by Maura Duffy

Computers

12th Grade

Used 7+ times

APCS Unit 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed as a result of executing the code segment?

12Z

3Z

12zee

3zee

onetwozee

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed as a result of executing the code segment?

8

08

008

0008

Nothing is printed, because numerical values cannot be added to a String object.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What, if anything, is printed when the code segment is executed?

Media Image
Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of num when the code segment is executed?

3

4

5

6

7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed as a result of executing the code segment?

ABCD

BCDE

BCEF

BCDEF

ABCDEF

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed when the code segment is executed?

comp

c o m p

comp com co c

comp omp mp p

comp comp comp comp

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following could be used to replace /* missing code */ so that the code segment works as intended?

(int) (rn * max) + min

(int) (rn * max) + min - 1

(int) (rn * (max - min)) + min

(int) (rn * (max - min)) + 1

(int) (rn * (max - min + 1)) + min

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?