AP CSP Midterm Study Guide

AP CSP Midterm Study Guide

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Wayground Content

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

72 questions

Show all answers

1.

FLASHCARD QUESTION

Front

_________________ is giving the computer a set of commands.

Back

Programming

2.

FLASHCARD QUESTION

Front

Which code below will put Karel in the position shown in picture? Options: move(); Move(); turnLeft(); move();, move; move(); turnLeft; move();, move(); move(); TurnLeft(); Move();, move(); move(); turnLeft(); move();

Media Image

Back

move(); move(); turnLeft(); move();

3.

FLASHCARD QUESTION

Front

What is the name of this function?

Media Image

Back

spin()

4.

FLASHCARD QUESTION

Front

Which Karel command is written correctly? Options: move;, Putball(), turnLeft();, move(;

Back

turnLeft();

5.

FLASHCARD QUESTION

Front

Which line contains the bug? Options: 1 and 5, 2 only, 3 only, 5 only

Media Image

Back

5 only

6.

FLASHCARD QUESTION

Front

What is the correct command to give to Karel to have them pick up a tennis ball?

Back

takeBall();

7.

FLASHCARD QUESTION

Front

Which of the following for loops would print the following numbers?
0
1
2
3
4
5
Options:
for i in range(5): print i,
for i in range(1, 5, 1):
print i,
for i in range(6): print i,
for i in range(0, 5, 1):
print i

Back

for i in range(6): print i

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?