AP CSP Midterm Study Guide

AP CSP Midterm Study Guide

Assessment

Flashcard

Computers

9th - 12th Grade

Easy

Created by

Quizizz Content

Used 1+ 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();

Back

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

3.

FLASHCARD QUESTION

Front

What is the name of this function?

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

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

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?