AP CSP Standard 1 Review

AP CSP Standard 1 Review

12th Grade

26 Qs

quiz-placeholder

Similar activities

APCSP CodeHS Python

APCSP CodeHS Python

11th - 12th Grade

22 Qs

AP Final Review

AP Final Review

11th - 12th Grade

22 Qs

CodeHS APCSP Python

CodeHS APCSP Python

11th - 12th Grade

22 Qs

Karel CodeHS Top Down Design

Karel CodeHS Top Down Design

7th - 12th Grade

25 Qs

JavaScript Karel Unit 1 Quiz Study Guide

JavaScript Karel Unit 1 Quiz Study Guide

9th - 12th Grade

25 Qs

Unit 1 Intro to Progamming with Karel

Unit 1 Intro to Progamming with Karel

9th - 12th Grade

25 Qs

CodeHS AP CSP Unit 3 Review

CodeHS AP CSP Unit 3 Review

11th - 12th Grade

22 Qs

Java Programming Quiz unit 3

Java Programming Quiz unit 3

12th Grade

21 Qs

AP CSP Standard 1 Review

AP CSP Standard 1 Review

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Kelly Challand

Used 8+ times

FREE Resource

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid condition to go in an if statement for Karel?

ballsPresent()

frontIsClear()

leftIsBlocked()

putBall()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Karel is on a location with one tennis ball. After the following code runs, how many tennis balls will there be at that location?

for (var i = 0; i < 3; i++) {
if (ballsPresent()) {
takeBall();

} else {

putBall();

putBall();

}

}

0

1

2

6

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Karel starts at Street 2, Avenue 1, facing East in a 5x5 world. What will happen after this code runs?

move();
putBall();
move();
move();
move();

move();

move()

Karel will end on Street 1, Avenue 2

Karel will end on Street 1, Avenue 7

This code won’t run because of a syntax error

Karel will crash into a wall

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?

while (________) {

takeBall();

noBallsPresent()

ballsPresent()

frontIsClear()

takeBall()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why does a programmer indent their code?

Easier for other people to understand.

A key part of good programming style!

Helps show the structure of the code.

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we teach Karel new commands?

Define a new function

While loop

For loop

The Start function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You want to write a program to have Karel put down 300 tennis balls. Which control structure would you use?

Nested while loop

For loop

While loop

If Statement

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?