APCS Unit 2

APCS Unit 2

12th Grade

27 Qs

quiz-placeholder

Similar activities

C++ PROGRAMMING

C++ PROGRAMMING

12th Grade

23 Qs

AP CSA Unit Review

AP CSA Unit Review

11th - 12th Grade

25 Qs

Java Arrays and ArrayLists

Java Arrays and ArrayLists

9th - 12th Grade

25 Qs

APCSA Topic 7

APCSA Topic 7

9th - 12th Grade

25 Qs

Arrays and ArrayLists in Java

Arrays and ArrayLists in Java

9th - 12th Grade

25 Qs

APCSP CodeHS Unit 3

APCSP CodeHS Unit 3

11th - 12th Grade

22 Qs

AP CS A CH 1 Review

AP CS A CH 1 Review

10th - 12th Grade

27 Qs

AP CSA | U2_L1 Variables

AP CSA | U2_L1 Variables

12th Grade

25 Qs

APCS Unit 2

APCS Unit 2

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Maura Duffy

Used 7+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?