APCSP BJC Unit 4 Lab

APCSP BJC Unit 4 Lab

10th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Unit 5 Review Code.org - Part 3

Unit 5 Review Code.org - Part 3

9th - 12th Grade

6 Qs

Fastfeedback PHP Podcast afl. 3

Fastfeedback PHP Podcast afl. 3

9th - 12th Grade

9 Qs

Primitives Quiz Review

Primitives Quiz Review

10th - 12th Grade

10 Qs

1D Arrays

1D Arrays

11th Grade

10 Qs

One Dimensional Arrays

One Dimensional Arrays

11th Grade

10 Qs

Comp Sci unit 3 #10

Comp Sci unit 3 #10

11th Grade

10 Qs

Code.org Unit 7

Code.org Unit 7

9th - 12th Grade

8 Qs

Code.org APCSP Unit 7 Assessment

Code.org APCSP Unit 7 Assessment

9th - 12th Grade

8 Qs

APCSP BJC Unit 4 Lab

APCSP BJC Unit 4 Lab

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

21

161116

161161

16111621

Nothing is printing because of an infinite loop.

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the value of count after executing the code segment?

6

5

4

1

0

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

This code segment is intended to store the sum of all multiples of 10 between 10 and 100, inclusive (10 + 20 + ... + 100), in the variable total.


What should /* missing code */ be?

x < 100

x <= 100

x > 10

x >= 10

x != 10

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

This code is intended to print the sum of the digits in num. For example, when num is 12345, the code segment should print 15, which represents the sum 1 + 2 + 3 + 4 + 5.


What should /* missing loop header */ be?

while (num > 0)

while (num >= 0)

while (num > 1)

while (num > 2)

while (num > sum)

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

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

0

1

2

3

Nothing is printed.