Loops APCSP

Loops APCSP

12th Grade

10 Qs

quiz-placeholder

Similar activities

The working memory model

The working memory model

12th Grade

14 Qs

LEGO PROGRAMMING BASICS

LEGO PROGRAMMING BASICS

9th - 12th Grade

14 Qs

Python Level 1 Quiz #6

Python Level 1 Quiz #6

5th - 12th Grade

12 Qs

Basic Microbit

Basic Microbit

11th Grade - Professional Development

10 Qs

CA Chapter 7 Loop

CA Chapter 7 Loop

12th Grade

10 Qs

Python Strings and Variables

Python Strings and Variables

5th Grade - University

8 Qs

Introduction to Programming Review

Introduction to Programming Review

9th - 12th Grade

15 Qs

Python foundation

Python foundation

5th Grade - University

10 Qs

Loops APCSP

Loops APCSP

Assessment

Quiz

Other

12th Grade

Hard

Created by

Angel Ligon

FREE Resource

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?