wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP: Unit 3 Test Review

Total questions: 22

Worksheet time: 41mins

Name
Class
Date
1.

A company that develops educational software wants to assemble a collaborative team of developers from a variety of professional and cultural backgrounds. Which of the following is NOT considered a benefit of assembling such a team?

a)

Collaboration that includes diverse backgrounds and perspectives can eliminate the need for software testing.

b)

Collaboration that includes diverse backgrounds and perspectives can help the team anticipate the needs of a variety of software users.

c)

Collaboration that includes diverse backgrounds and perspectives can help the team avoid bias.

d)

Collaboration that includes diverse backgrounds and perspectives can reflect the strengths of the individual team members.

2.

A company that develops mobile applications wants to involve users in the software development process. Which of the following best explains the benefit in having users participate?

a)

Users can identify and correct errors they encounter when using released versions of the software.

b)

Users can review the algorithms used in the software to help improve their efficiency.

c)

Users can provide documentation for program code at the end of the software development process.

d)

Users can provide feedback that can be used to incorporate a variety of perspectives into the software.

3.

Which of the following is NOT a benefit of collaborating to develop a computing innovation?

a)

Collaboration can decrease the size and complexity of tasks required of individual team members.

b)

Collaboration can make it easier to find and correct errors during the development process.

c)

Collaboration eliminates the need to resolve differences of opinion.

d)

Collaboration facilitates multiple perspectives in developing ideas.

4.

Which of the following actions are generally helpful in program development?


I. Consulting potential users of the program to identify their concerns

II. Writing and testing small code segments before adding them to the program

III. Collaborating with other individuals when developing a large program

a)

I and II only

b)

I and III only

c)

II and III only

d)

I, II, and III

5.

Chad has written the majority of his code in Scratch and is ready to start thinking of test cases to make sure that his program functions properly, and when issues arise, fix them. Chad is also going to show his program to his classmate and ask for any feedback or changes he could add to make his program better. This process is known as what?

a)

Iterative Development Process

b)

Debugging

c)

Pseudocode

d)

Program Detection

6.

For which of the follow grids will the code correctly navigate the robot to the final destination of the gray square?

a)
b)
c)
d)
7.

Which of the following images shows the path and ending location of the robot that will result from executing the code above. The starting location of the robot is shown as dotted triangle for cases where the robot does not start and end at the same location.


REPEAT 4 TIMES {

MOVE_FORWARD()

MOVE_FORWARD()

MOVE_FORWARD()

ROTATE_RIGHT(90)

MOVE_FORWARD()

ROTATE_RIGHT(90)

MOVE_FORWARD()

ROTATE_RIGHT(90)

}

a)
b)
c)
d)
8.
A piece of code you can use over and over again
a)
Function
b)
Abstraction
c)
Non-Function
9.

What will the console log say when this program is run?

a)

"Starting my program!"

"You clicked the button!"

"Ending my program!"

b)

"Starting my program!"

"Ending my program!"

"You clicked the button!"

c)

"You clicked the button!"

"Starting my program!"

"Ending my program!"

d)

"You clicked the button!"

"Ending my program!"

"Starting my program!"

10.

After the program is run, what will the text color of smallButton be?

a)

red

b)

blue

c)

green

d)

yellow

11.

Which of the following is not one of the purposes of having potential users test a program or app?

a)

To write the code for the program/app.

b)

To see if there are any bugs in the program/app.

c)

To get input on the design of the program/app.

d)

To see how a user interacts with the app/program.

12.

Which of the following describes "event-driven programming?"

a)

Commands run one at a time in the order that they are written.

b)

Commands run one at a time in response to user interactions or other events.

c)

Commands all run at the same time when the user interacts with the app.

d)

Commands all run whether or not the user interacts with the program.

13.

What is a reason to include comments in a program?

a)

Comments tell the computer what the code is doing.

b)

Comments tell the programmer what the code is doing.

c)

Comments help the user work an app more effectively.

d)

Comments will show up in the console so when the program is run, the programmer know what happens.

14.

Which line of code is most likely to return an error?

a)

1

b)

2

c)

3

d)

4

15.
Bug
a)
Part of a program that does not work correctly.
b)
the rate at which frames in an animation are shown, typically measured in frames per second
c)
An algorithm that has been coded into something that can be run by a machine.
d)
A graphic character on the screen with properties that describe its location, movement, and look.
16.
Debugging
a)
Finding and fixing problems in your algorithm or program.
b)
Statements that only run under certain conditions.
c)
Any valid unit of code that resolves to a value.
d)
Part of a program that does not work correctly.
17.

The program above is run. Then the user clicks the "blueButton" button ONCE. What will be displayed in the console?

a)

"1"

"2"

"3"

b)

"1"

"3"

c)

"2"

"1"

"3"

d)

"1"

"3"

"2"

18.

Any programming language that lets users create programs by manipulating “blocks” or graphical programming elements, rather than writing code using text.

a)

Command

b)

Run Program

c)

Algorithm

d)

Block-based programming language

19.

A sequence of steps written in a programming language that can be followed to solve a problem, especially by a computer.

a)

Debug

b)

Event

c)

Algorithm

d)

Computer Program

20.

Cause the computer to execute the commands you've written in your program

a)

console.log

b)

Run Program

c)

Debug

d)

onEvent

21.

When the user hovers their mouse over the hawk,

a)

both birds will appear only in the middle of the screen

b)

the sparrow will be confined to the upper right and the hawk to the upper left

c)

the sparrow will be confined to the lower right and the hawk to the upper left

d)

the sparrow will be confined to the lower left and the hawk to the upper right

22.

Choose all the correct options. When debugging, you should

a)

run the program over and over, staring really hard at it

b)

add some console.log statements to see what is going on

c)

describe your program and the odd behavior to a friend

d)

reduce the amount of code and see if the behavior improves