Loops APCSP

Loops APCSP

12th Grade

10 Qs

quiz-placeholder

Similar activities

Dragon City

Dragon City

KG - University

6 Qs

Resume Quiz

Resume Quiz

12th Grade

12 Qs

Emociones

Emociones

12th Grade

10 Qs

PR2: RRL, Conceptual Framework and Methodology

PR2: RRL, Conceptual Framework and Methodology

12th Grade

15 Qs

Fiestas de Quito

Fiestas de Quito

12th Grade

12 Qs

BCSI AWARENESS

BCSI AWARENESS

KG - Professional Development

15 Qs

El mono que quiso ser escritor satírico

El mono que quiso ser escritor satírico

KG - 12th Grade

10 Qs

Cell Phone Vocabulary

Cell Phone Vocabulary

9th - 12th Grade

12 Qs

Loops APCSP

Loops APCSP

Assessment

Quiz

Other

12th Grade

Practice Problem

Hard

Created by

Angel Ligon

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will the following program print "hello"?

count

i

7

6

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the following code, what will be the last number to print to the screen before the program finishes?

18

16

9

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A loop, most often set with while(true) , that has a break statement in the loop body.

Infinite loop

Loop and half

For loop

While loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A loop, used to execute a block of statements repeatedly until a given condition is satisfied.

Infinite loop

Loop and half

For loop

While loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A loop, used to iterate over a sequence, which could be a list, tuple, array, or string.

Infinite loop

Loop and half

For loop

While loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of the boolean variable "can_vote" at the end of this program?

True

False

Yes

none, there is a syntax error in this code

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We want to print a phrase exactly 25 times. What kind of control structure should we use?

If statement

While loop

Break statement

For loop

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?