wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP First Semester Final Exam Review 2021-22

Total questions: 108

Worksheet time: 2hrs 21mins

Name
Class
Date
1.

Statements that should only run upon a specific user action should be placed

a)

inside an onAction block

b)

below an onEvent command

c)

after the first programming statement

d)

within an onEvent programming statement

2.

What is Binary?

a)

a way of representing information using only two options, 1 and Zero

b)

8 bits

c)

data that changes discretely through a finite set of possible values

d)

a process for reducing the number of bits needed to represent something without losing any information

3.

Bit?

a)

8 bytes

b)

a contraction of "binary digit." The single unit of info in a computer, typically represented as a 0 or a 1

c)

a way of representing information using only two options

d)

a process for creating a digital representation of analog data

4.

Byte?

a)

4 bits

b)

6 bits

c)

8 bits

d)

A yard

5.

Overflow Error?

a)

error from attempting to represent a number that is too large

b)

error from attempting to represent a number that is too precise. the value is rounded.

c)

error in processing data for a collection of public copyright licenses

d)

error when data changes discretely through a finite set of possible values

6.

Round-off Error?

a)

error from attempting to represent a number that is too large

b)

error from attempting to represent a number that is too precise. the value is rounded.

c)

error in processing data for a collection of public copyright licenses

d)

error when data changes discretely through a finite set of possible values

7.

Analog data?

a)

a data collection of public copyright licenses that enable the free distribution of an otherwise copyrighted work, used when an author wants to give people the right to share, use, and build upon a work that they have created

b)

data that changes discretely through a finite set of possible values

c)

data with values that change continuously, or smoothly, over time. Some examples include music, the colors of a painting, or the position of a sprinter during a race.

d)

a data process for reducing the number of bits needed to represent something without losing any information

8.

Digital data?

a)

a data collection of public copyright licenses that enable the free distribution of an otherwise copyrighted work, used when an author wants to give people the right to share, use, and build upon a work that they have created

b)

data that changes discretely through a finite set of possible values

c)

data with values that change continuously, or smoothly, over time. Some examples include music, the colors of a painting, or the position of a sprinter during a race.

d)

a data process for reducing the number of bits needed to represent something without losing any information

9.

Sampling?

a)

A way of representing information using only two options

b)

A process for reducing the number of bits needed to represent something in which some information is lost or thrown away. This process is not reversible.

c)

A process for creating a digital representation of analog data by measuring the analog data at regular intervals called ......

d)

A process for reducing the number of bits needed to represent something without losing any information. This process is reversible.

10.

Lossless Compression?

a)

A way of representing information using only two options

b)

A process for reducing the number of bits needed to represent something in which some information is lost or thrown away. This process is not reversible.

c)

A process for creating a digital representation of analog data by measuring the analog data at regular intervals called ......

d)

A process for reducing the number of bits needed to represent something without losing any information. This process is reversible.

11.

Lossy Compression?

a)

A way of representing information using only two options

b)

A process for reducing the number of bits needed to represent something in which some information is lost or thrown away. This process is not reversible.

c)

A process for creating a digital representation of analog data by measuring the analog data at regular intervals called ......

d)

A process for reducing the number of bits needed to represent something without losing any information. This process is reversible.

12.

Intellectual property?

a)

A work or invention that is the result of creativity, such as a piece of writing or a design, to which one has rights and for which one may apply for a patent, copyright, trademark, etc.

b)

A collection of public copyright licenses that enable the free distribution of an otherwise copyrighted work, used when an author wants to give people the right to share, use, and build upon a work that they have created

c)

Data owned that changes discretely through a finite set of possible values

d)

A personal process for reducing the number of bugs within a program by reducing the number of bits required to store the program

13.

Creative Commons?

a)

A work or invention that is the result of creativity, such as a piece of writing or a design, to which one has rights and for which one may apply for a patent, copyright, trademark, etc.

b)

A collection of public copyright licenses that enable the free distribution of an otherwise copyrighted work, used when an author wants to give people the right to share, use, and build upon a work that they have created

c)

Data owned that changes discretely through a finite set of possible values

d)

A personal process for reducing the number of bugs within a program by reducing the number of bits required to store the program

14.

Which is an example of input?

a)

Google Maps reading the directions aloud

b)

Google Maps using your current location to determine the estimated arrival time

c)

You type in your desired destination into Google Maps

d)

Google Maps storing your home and work locations

15.

Which is an example of output?

a)

Google Maps reading the directions aloud

b)

Google Maps using your current location to determine the estimated arrival time

c)

You type in your desired destination into Google Maps

d)

Google Maps storing your home and work locations

16.

What is Event-Driven Programming?

a)

A program that has a lot of parties.

b)

A program that follows the sequential flow of control.

c)

A program that executes only when triggered.

d)

A program that drives cars.

17.

What is Event-Driven Programming?

a)

A program that has a lot of parties.

b)

A program that follows the sequential flow of control.

c)

A program that executes only when triggered.

d)

A program that drives cars.

18.

The development process is incremental and _______.

a)

slow

b)

boring

c)

iterative

d)

permanent

19.

Which is an example of an event-driven program?

a)

Pressing up, up, down, down, left, right, left, right, B, A, select, start on your controller.

b)

Pressing the spacebar to pause your YouTube video.

c)

Clicking on Alonzo to begin the game.

d)

All of the above.

20.

Program documentation is a written description of the function of a code segment, event, procedure, or program and how it was developed.

a)

True

b)

False

21.

What are the benefits for commenting your code?

a)

Helps organize your code.

b)

Reminds you of what your code does.

c)

Others can understand your code.

d)

All of the above.

22.

Which are types of input? Select all that apply.

a)

Keyboard

b)

Mouse click

c)

Touch (tablet)

d)

None of these.

23.

Which are types of output? Select all that apply.

a)

Audio

b)

Text

c)

Images and video

d)

Mouse Click

24.

What is the number 45 as a binary number?

a)

10011111

b)

00001100

c)

00101101

d)

10101010

25.
What does Protocol mean?
a)
Security
b)
Rules
c)
Orders
d)
Services
26.
The single unit of information in a computer, typically represented as a 0 or 1.
a)
bit
b)
binary
c)
latency
d)
bandwidth
27.
Transmission capacity measure by bit rate is the _____________.
a)
bandwidth
b)
latency
c)
binary message
d)
protocol
28.
When you were working in pairs to develop your own number system, it was important to develop a clear, detailed set of rules to make sure that anyone could understand how to recreate the patterns you had created. What is this called that you and your partner developed?
a)
protocol
b)
bit rate
c)
binary message
d)
latency
29.
What is the largest number you can make in binary and then converted to decimal using only the fingers on your left hand?
a)
32
b)
15
c)
63
d)
31
30.
Which is an example of a binary question?
a)
What are you going to do on Friday night?
b)
What is your favorite food?
c)
How do you make apple pie?
d)
Would you rather eat sushi or spaghetti for dinner?
31.
The HTTP protocol: 
a)
The GET request results in all of the page data being displayed. 
b)
Data sent by the server is sent in one file, broken up into various packets.
c)
Data sent by the server is sent in several files broken up into packets.  
d)
Data sent by the server arrives at the client in the order it is sent. 
32.
The principle that all Internet traffic should be treated equally by Internet Service Providers.
a)
Protocol Hacks
b)
Protocol Vulnerabilities
c)
Internet Censorship
d)
Net Neutrality
33.
A number assigned to any item that is connected to the Internet
a)
IP Address
b)
IP Packet
c)
Internet Protocol
34.
Small chunks of information that have been carefully formed from larger chunks of information
a)
Protocols
b)
IP Addresses
c)
Packets
d)
Routers
35.
Which statement is true about routing on the Internet?
a)
Information travelling between two computers over the Internet will always take the same path.
b)
A packet travelling between two computers on the Internet may be rerouted many times along the way
c)
There is one router which receives and redirects all the traffic of the Internet.
d)
A packet contains addressing information to allow routers to decide how best to forward along that packet towards its destination.
36.
Having multiple backups to ensure reliability during cases of high usage or failure is called ________________.
a)
Network redundancy
b)
Network repetition
c)
Net Neutrality
d)
Network routing
37.

What is a computer?

a)

An electronic device that receives input, processes it and provides an output in the desired format.

b)

An electronic device to do homework, play video games or surf on the internet.

c)

An electronic device that receives input, stores or processes the input and provides an output in the desired format.

38.

What is a computer network?

a)

a single computer

b)

2 or more computers that connect

c)

a set of rules

d)

a hub that connects to the internet

39.

_____________ is an international network of computers.

a)

Network

b)

WWW

c)

Internet

d)

Local Area Network

40.

WWW stands for

a)

Whole wide web

b)

World wide web

c)

world web wide

d)

wide world web

41.

The address of the web page is called _____________

a)

HTTP

b)

HTML

c)

UTP

d)

URL

42.

A group of computing devices and programs working together for a common purpose.

a)

Computing Device

b)

Computing System

c)

Computing Network

d)

Path

43.

A group of interconnected computing devices capable of sending or receiving data.

a)

Computing Device

b)

Computing System

c)

Computing Network

d)

Path

44.

The series of connections between computing devices on a network starting with a sender and ending with a receiver.

a)

Computing Device

b)

Computing System

c)

Computing Network

d)

Path

45.

The maximum amount of data that can be sent in a fixed amount of time, usually measured in bits per second.

a)

Computing Device

b)

Bandwidth

c)

Computing Network

d)

Path

46.

The unique number assigned to each device on the Internet.

a)

Protocol

b)

IP Address

c)

Internet Protocol (IP)

d)

Router

47.

A protocol for sending data across the Internet that assigns unique numbers (IP addresses) to each connected device.

a)

Protocol

b)

IP Address

c)

Internet Protocol (IP)

d)

Router

48.

A type of computer that forwards data across a network.

a)

Protocol

b)

IP Address

c)

Internet Protocol (IP)

d)

Router

49.

The inclusion of extra components so that a system can continue to work even if individual components fail

a)

Protocol

b)

Redundancy

c)

Internet Protocol (IP)

d)

Router

50.

Can continue to function even in the event of individual component failures. This is important because elements of complex systems like a computer network fail at unexpected times, often in groups.

a)

Protocol

b)

Redundancy

c)

Fault Tolerant

d)

Router

51.

The visual elements of an program through which a user controls or communications the application. Often abbreviated UI.

a)

User Interaction

b)

User Interface

c)

User Iteration

d)

User I

52.
Putting commands in correct order so computers can read the commands
a)
Algorithm
b)
Sequencing
c)
Iterate
d)
Selection
53.

A program.

a)

An Icon

b)

A set of instructions for your computer

c)

A handbook

d)

A blueprint

54.

The following figure represents a network of physically linked devices labeled P through S. A line between two devices indicates a connection. Devices can communicate only through the connections shown. Which of the following statements best explains the ability of the network to provide fault tolerance?

a)

The network is considered fault-tolerant because there are redundant paths between each pair of devices.

b)

The network is considered fault-tolerant because it guarantees that no individual component will fail.

c)

The network is not considered fault-tolerant because it relies on physical connections.

d)

The network is not considered fault-tolerant because it provides more paths than are needed.

55.

Which of the following is an advantage of a lossless compression algorithm over a lossy compression algorithm?

a)

A lossless compression algorithm can guarantee that compressed information is kept secure, while a lossy compression algorithm cannot.

b)

A lossless compression algorithm can guarantee reconstruction of original data, while a lossy compression algorithm cannot.

c)

A lossless compression algorithm typically allows for faster transmission speeds than does a lossy compression algorithm.

d)

A lossless compression algorithm typically provides a greater reduction in the number of bits stored or transmitted than does a lossy compression algorithm.

56.

A command or instruction. Sometimes also referred to as a code statement.

a)

Input

b)

Output

c)

Program Statement

d)

Documentation

57.

A collection of program statements. Runs (or "execute") one command at a time.

a)

Program statement

b)

Program

c)

Sequential Programming

d)

Event Driven Programming

58.

Data that are sent to a computer for processing by a program. Can come in a variety of forms, such as tactile interaction, audio, visuals, or text.

a)

Input

b)

Output

c)

Program Statement

d)

User Interface

59.

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)

Program

d)

User Interface

60.

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

a)

User Interface

b)

Expression

c)

Procedure

d)

Program specification

61.

Program statements run in order, from top to bottom.

a)

Program requirements

b)

Program specification

c)

Sequential programming

d)

Event Driven Programming

62.

Some program statement run when triggered by an event, like a mouse click or a key press.

a)

Program statement

b)

Program

c)

Event Driven Programming

d)

Program specification

63.

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

a)

Documentation

b)

Program Requirements

c)

Program specification

d)

Development process

64.

Form of program documentation written into the program to be read by people and which do not affect how program runs.

a)

Comment

b)

Documentation

c)

Event

d)

Program specification

65.

A collaborative programming style in which two programmers switch between the roles of writing code and tracking or planning high level progress.

a)

Pair Programming

b)

Development Process

c)

Plagiarism

d)

Program Requirements

66.

Finding and fixing problems in an algorithm or program.

a)

Debugging

b)

Syntax Error

c)

Iterative Development Process

d)

Incremental Development Process

67.

The steps of phases used to create a piece of software. Typical phases include investigating, designing, prototyping, and testing.

a)

Development process

b)

Incremental Development Process

c)

Iterative Development Process

d)

Program specification

68.

Associated with an action and supplies input data to a program. Can be generated when a key is pressed, a mouse is clicked, a program is started, or by any other defined action that affects the flow of execution.

a)

Event

b)

Program Requirement

c)

Event Driven Programming

d)

Program

69.

A design approach that breaks the problem into smaller pieces and makes sure each piece works before adding it to the whole.

a)

Incremental Development Process

b)

Iterative Development Process

c)

Development process

d)

Program

70.

A design approach requires refinement and revision based on feedback, testing, or reflection throughout the process. This may require revisiting earlier phases of the process.

a)

Incremental Development Process

b)

Iterative Development Process

c)

Development process

d)

Pair Programming

71.

What does the following evaluate to?

!true

a)

true

b)

false

c)

false!

d)

!false

72.

This type of variable is temporary and can only be used where it was created.

a)

local

b)

global

c)

var

d)

universal

73.

What will output to the console?

a)

25

b)

50

c)

75

d)

100

e)

125

74.

What does the following evaluate to?

true || false

a)

true

b)

false

c)

not enough information

d)

true && false

75.

What will output to the console?

a)

"C"

b)

"hug"

c)

"D"

d)

"hawks"

76.

What will output to the console?

a)

"Hi!"

b)

"Bye!"

c)

"Hello!"

d)

"Hola!"

77.

What will output to the console?

a)

"hug"

b)

4

c)

100

d)

112

78.

On which line is a function being called?

(a)  

79.

What does the following evaluate to?

true && false

a)

true

b)

false

c)

not enough information

d)

true && false

80.

On which line is a function being declared/defined?

(a)  

81.

What does this return?

7%5

a)

2

b)

3

c)

5

d)

7

82.

What's the fancy word we use to combine Strings with other Strings, numbers, or other variables?

(a)  

83.

What will output to the console?

a)

"A"

b)

"a"

c)

"B"

d)

"b"

84.

What will output to the console?

a)

"apple"

b)

"grape"

c)

"Apple"

d)

"Grape"

85.

Which line will likely cause the program to not run correctly?

a)

line 1

b)

line 3

c)

line 4

d)

line 5

86.

What will output to the console log?

a)

"hawks"

b)

19

c)

"hug"

d)

35

87.

A variable is a name reference that can store one value at a time.

a)

true

b)

false

88.

What will output to the console?

a)

"Hi!"

b)

"Bye!"

c)

"Hola!"

d)

"Hello!"

89.

What does the following evaluate to?

false|| false

a)

true

b)

false

c)

not enough information

d)

true && false

90.

In which order will the output appear?

a)

"five" "six" "seven" "five" "six"

b)

"seven" "five" "six" "five" "five"

c)

"five" "six" "five" "six" "seven"

d)

"seven" "five" "six" "five" "six"

91.

This is a block of organized, reusable code thatis used to perform a single, related action. Examples include print(),str(), sqrt().

a)

Lists

b)

Parameters

c)

Functions

d)

Modules

92.

A placeholder for a piece of information that can change.

a)

Expression

b)

Event

c)

Statement

d)

Variable

93.

The equality operator (sometimes read: "equal equal") is used to compare two values, and returns a Boolean (true/false). Avoid confusion with the assignment operator "=",

a)

>=

b)

=<

c)

==

d)

+=

94.

A variable that can be used and updated by any part of the code. Its scope is typically derived from the variable being declared (created) outside of any function, object, or method.

a)

Expanded Variable

b)

Local Variable

c)

Expressive Variable

d)

Global Variable

95.

The common programming structure that implements "conditional statements".

a)

If-Statement

b)

Else-Statements

c)

Local-Satement

d)

Function-Statement

96.

A variable with local scope is one that can only be seen, used and updated by code within the same scope. Typically this means the variable was declared (created) inside a function -- includes function parameter variables.

a)

Local Variable

b)

Global Variable

c)

Scope Variable

d)

Expanded Variable

97.

To link together or join. Typically used when joining together text Strings in programming.

a)

Fusing

b)

Locking

c)

Concatenate

d)

Adding

98.

in JavaScript an event triggered by pressing or releasing a key on the keyboard.

a)

Key Trigger

b)

Key Loop

c)

Key Condition

d)

Key Event

99.

Any sequence of characters between quotation marks.

a)

Integer

b)

Word

c)

Char

d)

Sting

100.

Statements that only run under certain conditions.

a)

Expressions

b)

Conditionals

c)

Statements

d)

Variables

101.

A single value of either TRUE or FALSE.

a)

Boolean

b)

Binary

c)

Conditional

d)

Statement

102.

In programming, an expression that evaluates to True or False.

a)

Boolean Expression

b)

Binary Expression

c)

Conditional Expression

d)

Statement Expression

103.

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)
104.

Which of the following is NOT true about functions in programming?

a)

Functions are reusable programming abstractions.

b)

Functions help reduce the complexity of writing and maintaining programs.

c)

Functions cannot make calls to other functions within the same program.

d)

Once defined, a function can be called many times from different parts of a program.

e)

Functions help break a problem into logical chunks.

105.
A piece of code you can use over and over again
a)
Function
b)
Abstraction
c)
Non-Function
106.

What is the most likely outcome of running the code shown at right?

a)

It will draw a star with each side 150 pixels long.

b)

The program will stop with an error at line 3 because parameters may not be used in for loops.

c)

The program will stop with an error at line 5 because it is dividing by 0.

d)

The program will run without error, but will not draw anything.

107.

Which of the following images represents the most likely output produced by the code segment given below?

a)
b)
c)
d)
e)
108.

Look at the code. The dots are only appearing on the right side of the screen. What number should I change so the dots draw across the entire bottom?

a)

250

b)

330

c)

340

d)

450