wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP Unit 3

Total questions: 21

Worksheet time: 19mins

Name
Class
Date
1.

Which of the following is a true statement about program documentation?

a)

Program documentation should not be changed after it is first written.

b)

Program documentation is only needed for programs in development; it is not needed after a program is completed.

c)

Program documentation is useful when programmers collaborate but not when a programmer works individually on a project.

d)

Program documentation is useful during initial program development and also when modifications are made to existing programs.

2.

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

b)

I and III

c)

II and III

d)

I, II and III

3.

A mobile game tracks players’ locations using GPS. The game offers special in-game items to players when they visit real-world points of interest. Which of the following best explains how bias could occur in the game?

a)

Points of interest may be more densely located in cities, favoring players in urban areas over players in rural areas.

b)

Some players may engage in trespassing, favoring players in urban areas over players in rural areas.

c)

Special items may not be useful to all players, favoring players in urban areas over players in rural areas.

d)

Weather conditions may be unpredictable, favoring players in urban areas over players in rural areas.

4.

The inputs and outputs that allow a user to interact with a piece of software which can include a variety of forms such as buttons, menus, images, text, and graphics.

a)

User Experience

b)

User Interface

c)

App Documentation

d)

App Design

5.

What are the benefits of collaborating with your peers?

a)

Effective communication suppresses consensus building, conflict resolution and negotiation skills.

b)

Effective communication produces a computing innovation that reflects the diversity of talents and perspectives of those who designed it.

c)

Collaboration gives an individual the chance to be the alpha and lets your classmates marvel at your skills.

d)

Collaboration that includes diverse perspectives promotes bias in the development of computing innovations.

6.

These types of program segments Programs run differently each time depending on user interactions.

a)

Sequential Programming

b)

Event-Driven Programming

c)

Input-Driven Programming

d)

User-Driven Programming

7.

This type error will occur when you use a multiplication symbol instead of an addition symbol.

a)

Syntax

b)

Logic

c)

Run-Time

d)

Console

8.

What is wrong with this segment of code and what type of error will it produce?

4 lines
9.

This type of error will likely occur when you divide by 0.

a)

Syntax

b)

Logic

c)

Run-Time

d)

Event-Driven

10.

A written description of how a command or piece of code works or was developed.

a)

Documentation

b)

Comment

c)

Project Guide

d)

Wireframes

11.

What are the four things common to all computers?

4 lines
12.

 Any data that are sent from a program to a device. Can come in a variety of forms, such as tactile interaction, audio, visuals, or text.

a)

Input

b)

Output

c)

Console

d)

Display

13.

Which of the following is NOT a reason to include comments in programs?

a)

Comments help the computer decide whether certain components of a program are important.

b)

Comments help programmers debug issues in their own code

c)

Comments help document how code was written for other programmers to use

d)

Comments enable programmers to track their work throughout the development process

14.

This type of program runs differently based the targeted user selecting an option.

a)

Sequential Programming

b)

Event-Driven Programming

c)

Run-Time Error Programming

d)

Program-Inclusive Programming

15.

The inputs and outputs that allow someone to interact with a piece of software.

a)

A Program

b)

A Program Statement

c)

User Interface

d)

User Experience

16.

What type of error would a missing parenthesis cause?

a)

Run-Time

b)

Logic

c)

Syntax

d)

Overflow

17.

A written description of how a command or piece of code works or was developed.

a)

Documentation

b)

Comment

c)

Program

d)

Program Statement

18.

A program that is written for a digital assistant (like Alexa) that lacks accuracy due to the users accent creates what type of issue?

a)

Computer Bias

b)

Logic Error

c)

Run-Time Error

d)

Syntax Error

19.

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.

20.

Which of the following BEST describes the differences between sequential and event-driven programming?

a)

In sequential programming commands run one at a time. In event-driven programming all commands run at the same time.

b)

In sequential programming commands run faster than in event-driven programming.

c)

In sequential programming each command is run many times in sequence. In event-driven programming all commands are run a single time as an event.

d)

In sequential programming commands run in the order they are written. In event-driven programming some commands run in response to user interactions or other events.

21.

Debug the Code

4 lines