wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSP EOC Review

Total questions: 118

Worksheet time: 2hrs 46mins

Name
Class
Date
1.

The != operator stands for

a)

"Not equal"

b)

"Equal"

c)

"True"

d)

"False"

2.

|| stands for

a)

And

b)

Or

c)

Not

d)

Not equal

3.

&& stands for

a)

Or

b)

Not

c)

Not equal

d)

And

4.

The || operator,

a)

Both sides of the logical expression has to be true in order to print out "true".

b)

Both

c)

Only one side of the logical expression has to be true in order to print "true".

d)

Both

5.

Software, such as Dr. Java and Eclipse, that provides tools that enable a developer to code, test and implement a program is called __________ __________ __________ software? (hint: the initials are IDE)

a)

Integrated Development Environment

b)

Integrated Diverse Environment

c)

Internal Development Environment

d)

Integrated Development Exercise

6.

_________________ is the term in programming used to describe the concept of an object being composed of other objects. For example, a Menu bar object can include a File menu object, Edit menu object, and Tools menu object.

(Hint: the words starts with an “A”)

a)

Age

b)

Appreciate

c)

Application

d)

Aggregate

7.

Explain the purpose of % operator in programming

a)

The purpose of the % operator is to divide two variables and print out the remainder only.

b)

The purpose of the % operator is to multiple two variables and print out the remainder only.

c)

The purpose of the % operator is to add two variables and print out the remainder only.

d)

The purpose of the % operator is to subtract two variables and print out the remainder only.

8.

Programming in which programming instructions are packaged into a single unit is called ___________ __________ __________ . (Hint: the initials are OOP)

a)

Object Operation Programs

b)

Operation Object Plan

c)

Object Oriented Programming

d)

Object Operation plan

9.

What is a peer walk through?

a)

A peer walk through in programming is implemented by the public to check code for accuracy and quality

b)

A peer walk through in programming is implemented by testers to check code for accuracy and quality

c)

A peer walk through in programming is implemented by coaches to check code for accuracy and quality

d)

A peer walk through in programming is implemented by coders to check code for accuracy and quality

10.

In programming the concept of _______________ refers to how a subclass inherits functionality from its superclass. It is also referred to as subclassing, is a very efficient way to reuse code. (Hint: the words starts with an “I”)

a)

Inhaul

b)

Inhumane

c)

Inhibit

d)

Inheritance

11.

Explain the difference between an alpha release and a beta release in The Software Release life cycle.

a)

An Alpha Release has less bugs, is used for demonstration purposes, and ends in a feature freeze. While a Beta Release is closer to the final product, and can be released to the general public in either an closed group only.

b)

An Alpha Release has more bugs, and ends in a feature freeze. While a Beta Release is closer to the final product, used for demonstration purposes and can be released to the general public in either an open or closed group.

c)

An Alpha Release has less bugs, is used for demonstration purposes. While a Beta Release ends in a feature freeze is closer to the final product, and can be released to the general public in either an open or closed group.

d)

An Alpha Release has more bugs, is used for demonstration purposes, and ends in a feature freeze. While a Beta Release is closer to the final product, and can be released to the general public in either an open or closed group.

12.
The world’s largest computer network which connects millions of computer all over the world is...
a)
the Internet
b)
Time Warner
c)
the Web
d)
the telephone
13.
When clicked, this will display a webpage.
a)
Web page
b)
Hyperlink
c)
Internet
d)
Web browser
14.
The Internet and the Web are the same thing.
a)
True
b)
False
15.
How does info travel across the Internet?
a)
Packets
b)
Bundles
c)
Bubbles
d)
Minions
16.
Mozilla Firefox is an example of a(n)
a)
Search Engine
b)
Browser
c)
ISP
d)
Server
17.
This number is an example of 
a)
a web address
b)
a mailing address
c)
a DNS
d)
an IP address
18.
Short for picture element; it is a single dot of color.
a)
API
b)
Tree
c)
Node
d)
Pixel
19.
112 is equal to
a)
110
b)
210
c)
310
d)
410
20.
A set of step by step instructions
a)
algorithm
b)
abstraction
c)
iteration
d)
invitation
21.
One time through a series of steps that get repeated is called _________.
a)
iteration
b)
sequencing
c)
processing
d)
execution
22.
Which of the following is an example of abstraction?
a)
Writing a function for code you repeat often
b)
Using logic symbols like < and >
23.
The number system used by computers
a)
binary
b)
decimal
c)
octal
d)
hexadecimal
24.
Which is a subdomain of example.com?
a)
example.com
b)
example.co.uk
c)
example.com.org
d)
about.example.com
25.
Why do we use functions?
a)
Make the program easier to read
b)
Avoid retyping the same lines of code
c)
Both
d)
Neither
26.
"George" is a(n)...
a)
String
b)
Integer
c)
Float
d)
Boolean
27.
A loop repeated if the condition is true / false
a)
While loop
b)
For loop
c)
Repeat loop
d)
If...else
28.
Which statement will check to see if a is equal to b?
a)
if a == b
b)
if a = b:
c)
if a != b:
d)
if a == b:
29.
Numbers with a decimal point belong to a type called...
a)
boolean
b)
integer
c)
fancy
d)
float
30.
Which of the following can be used to combine two strings to create a new string?
a)
concatenation
b)
algorithm
c)
conditional
d)
variable
31.
What is pseudocode?
a)
simplified programming language
b)
specific syntax in a programmming language
c)
code that can be used on a computer
d)
a debugging toolcode
32.
Indentation in Python is
a)
Extremely important
b)
Not important at all
33.
According to the domain name system (DNS), which of the following is a subdomain of the domain code.org?
a)
educate.code.org
b)
code.com
c)
code.org/apcsp/lesson10
d)
code.co.uk
34.
Which of the following is NOT true? 
a)
DNS relies on IP 
b)
DNS relies on TCP
c)
TCP relies on DNS
d)
TCP relies on IP
35.
Which bit-sending technology is used for Ethernet cables?
a)
Electric voltage
b)
Alternating frequencies
c)
Beam of light
d)
Magic
36.
Which bit-sending technology is used for fiber optic cables?
a)
Electric voltage
b)
Alternating frequencies
c)
Beam of light
d)
Magic
37.
Tranmission Control Protocol:
a)
Breaks messages into packets and addresses them
b)
A DNS attack in which numerous pings are made to the same IP, causing it to crash
c)
Protocol used by the World Wide Web. It describes how messages are formatted and interchanged, and how web servers respond to commands.
d)
Provides reliable, ordered, and error-checked delivery of a stream of packets on the internet
38.
Internet Protocol:
a)
Breaks messages into packets and addresses them
b)
A DNS attack in which numerous pings are made to the same IP, causing it to crash
c)
Protocol used by the World Wide Web. It describes how messages are formatted and interchanged, and how web servers respond to commands.
d)
Provides reliable, ordered, and error-checked delivery of a stream of packets on the internet
39.
Which type of attack is this: 
Many requests made to the same IP address to make the site crash? 
a)
DDoS
b)
Cache Poisoning
c)
DNS Hijacking
40.
Who co-created the Internet?
a)
Vint Cerf and code.org
b)
Vint Cerf and Bob Kahn
c)
Louis and Clark
d)
Mrs. Larson and Ms. Schoenike
41.
What does HTTP stand for?
a)
Hyper Text Transfer Protocol
b)
Nothing, it's supposed to be HTML
c)
Head To This Page
d)
Hyper Tense Tall Penguins
42.
Which type of attack is this: 
Redirecting a site's IP to a similar, fake site to collect user input information?
a)
DDOS
b)
DNS hijacking/spoofing
c)
Wire tapping
43.
Which is the most secure?
a)
Routed traffic (like the routers on Internet Simulator)
b)
Broadcasted traffic (like battleship)
44.
Which of the following is TRUE about routers? 
a)
One "root" router is responsible for communication to all "sub-routers"
b)
Routers act independently
c)
A path is established before the message is sent
45.
The world is currently in a transition to using IPv6, a newer version of the IP protocol that uses 128-bit addresses instead of 32-bit addresses used by IPv4. What is the main problem that IPv6 was created to solve?
a)
IPv6 will allow problems with IPv4's address hierarchy to be resolved
b)
32-bit addresses could not ensure that every internet-connected device can receive a unique IP address
c)
32-bit addresses could not accommodate the increased size and amount of data traveling on the Internet as it has grown in popularity
d)
IPv4 proved unreliable in some cases where network redundancy could not be ensured
46.
Given the following network diagram, what is the minimum number of connections that must be broken or removed before computer E can no longer communicate with computer B?
a)
1
b)
2
c)
3
d)
4
47.
Which of the following statements about packets is true? 
a)
Packets must be sent in order so they can be reassembled at the end host. 
b)
Packet switching results in a sustained, single connection between two hosts.
c)
All packets must pass through a centralized router to be verified.
d)
None of these statements are true. 
48.
Which of the following protocols is primarily used to establish a secure connection between browsers and servers so that no data is lost?
a)
HTTP
b)
SMTP
c)
SSL/TLS
d)
TCP/IP
49.
Which of the following statements about IP addresses is NOT true?
a)
Each IP address has a network previx and may have various subnet and interface IDs
b)
Each of the octets in an address can be any number between 0 and 255
c)
There are no rules or guidelines for creating a new IP address
d)
IP addresses may have prefixes to identify which routers or subnets the address belongs to
50.
Which of the following best describes the basic idea of fault tolerance?
a)
A system that never fails
b)
If part of the system fails, the operation continues without interruption
c)
A program that does not allow inputs out of a range given by a programmer
d)
A program that does not allow loss of precision
51.
Andrew uses an application to track HOW LONG it takes a packet to travel from his computer to a Wikipedia server. Which of the following is he measuring?
a)
Bandwidth
b)
Latency
c)
Number of packets
d)
Router sp
52.
A ____ HTTP request is used when the user requests information, but does not enter anything into the page.
a)
Get
b)
Post
c)
Send
d)
Fetch
53.
A _____ post HTTP request is used when the user enters information (ex. user name/password) into the webpage.
a)
Get 
b)
Post
c)
Login
d)
Send
54.
A field within cryptography; uses images to hide data.
a)
Steganography
b)
Alpha channel
c)
Interpolate
d)
GUI
55.
A data structure in which each node has exactly one parent, with the exception of the root node, which has no parent.
a)
Array
b)
API
c)
GUI
d)
Tree
56.
Data associated with an object.
a)
Attribute
b)
Mutable
c)
Validate
d)
Node
57.
A single object of a particular class.
a)
Instance
b)
Opaque
c)
Mutable
d)
Catch
58.
A paradigm for programming in which code describes a class with methods, including a method for creating an object in the class.
a)
interpolate
b)
Attribute
c)
Object
d)
Object-oriented
59.
Includes the entire directory pathway to get to the specified file, as opposed to the relative filename that is specified only from the current working directory.
a)
Absolute filename
b)
Root node
c)
Docstring
d)
Compiler
60.
Information about data, such as when, how, or by whom the data were collected or what software was used to manipulate the data.
a)
Mutable
b)
Metadata
c)
Method
d)
Validate
61.
An Application Programming Interface is a way programmers share their code with other programmers. In object-oriented libraries, an API specifies the methods of each class.
a)
Call
b)
API
c)
Node
d)
GUI
62.
A paradigm for programming in which code describes a class with methods, including a method for creating an object in the class.
a)
Object-oriented
b)
Attribute
c)
Method
d)
GUI
63.
The values that the programmer provides in the function call.
a)
Module
b)
Arguments
c)
Object
d)
Array
64.
A special comment located at the beginning of a program or the beginning of a function, used to automatically create help documentation.
a)
Instance
b)
Docstring
c)
Tree
d)
Catch
65.
A specific instance of a class with a specific set of values for its own attributes that is able to execute any methods defined in its class.
a)
Opaque
b)
Object
c)
Catch
d)
Pixel
66.
Part of a pixel's data that tells how opaque or transparent that color should appear when the graphics card calculates how to render the image on screen.
a)
Alpha channel
b)
Interpolate
c)
Pixel
d)
Instance
67.
Any value that a method or function gives back to the statement command from which the function or method is called.
a)
Default value
b)
Keyword-value pair
c)
Metadata
d)
Return value
68.
A field within cryptography; uses images to hide data. → Array
a)
True
b)
False
69.
A data structure in which each node has exactly one parent, with the exception of the root node, which has no parent. → Node
a)
True
b)
False
70.
A paradigm for programming in which code describes a class with methods, including a method for creating an object in the class. → Attributes
a)
True
b)
False
71.
Code telling the interpreter or compiler to execute a function or method defined elsewhere, replacing the call with a return value if applicable. → Call
a)
True
b)
False
72.
Information about data, such as when, how, or by whom the data were collected or what software was used to manipulate the data. → Mutable
a)
True
b)
False
73.
The second part of if, that is executed when the condition is False
a)
if
b)
else
c)
for
d)
input
74.
Data type that can only be True or False
a)
int
b)
string
c)
bool
d)
float
75.
Which function casts a number to a string?
a)
str()
b)
int()
c)
parseInt()
d)
convert
76.
Python identifies blocks of code by
a)
BEGIN and END keywords
b)
{ and }
c)
aligning up the starts of lines (indentation)
d)
guessing
77.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
78.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
79.
What will the output be from the following code?
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
80.
What will the output be from the following code?
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
81.
What will the output be from the following code?
print(3*4)
a)
34
b)
7
c)
12
d)
3*4
82.
What will the output be from the following code?
print(3*4+5)
a)
27
b)
17
c)
12
d)
SyntaxError
83.
What will the output be from the following code?
print(9/3)
a)
3
b)
3.0
c)
9/3
d)
SyntaxError
84.
What will the output be from the following code?
print(9/3*2+4-5)
a)
19
b)
5.0
c)
0.5
d)
5
85.
What will the output be from the following code?
print("Hello" + "world!")
a)
Hello world!
b)
Helloworld!
c)
SyntaxError
d)
"Hello" "world!"
86.
What will the output be from the following code?
print("Hello" + 2 + "world")
a)
Hello 2 world
b)
Hello2world
c)
TypeError
d)
HelloHelloworld
87.
Which Python command is used to output information to the screen?
a)
read
b)
output
c)
print
d)
display
88.
Which of these would work as a piece of code?
a)
IF answer == "Yes":
b)
if answer == "Yes"
c)
if answer == "Yes":
d)
if answer = "yes":
89.
Used to create exponents
a)
**
b)
"""
c)
%
d)
#
90.
Returns the remainder from division
a)
modulo (mod)
b)
exponents
c)
boolean
d)
variables
91.
a line of text that Python won't try to run as code
a)
comment
b)
modulo (mod)
c)
variable
d)
boolean
92.
symbol used for modulo (mod)
a)
%
b)
&
c)
#
d)
**
93.
Used to make comments
a)
#
b)
%
c)
**
d)
()
94.
The correct way to write a variable in Python?
a)
my_variable = 10
b)
my variable = 10
c)
my_variable is 10
d)
my_variable: 10
95.
What does the following code do?
name = input("What is your name?")  
a)
says hello 
b)
asks for the user's DOB
c)
Asks for the user's name and stores it in a variable 
d)
Checks information 
96.
This operator means that one value is the same as the other value
a)
==
b)
!=
c)
>
d)
<
97.
What's the result of the following operation?
7 % 5
a)
1
b)
2
c)
1.4
d)
12%
98.
Another term for iteration is...
a)
Decision Points
b)
Loops
c)
Pulling commands from other libraries
d)
Start-up meetings to get everyone dedicated to solving the most important aspects of the software they are developing
99.
Why do we use loops?
a)
To run the program forever
b)
So we do not have to start a program again
c)
To start a program
d)
To make the Scratch cat run in circles
100.
What is a condition?
a)
Makes the Scratch cat touch something
b)
Instructions telling the program what to do
c)
When the Scratch cat touches something
d)
Tests whether something is true or false
101.
What is interactivity?
a)
When you can touch something
b)
Instructions telling the program what to do
c)
Has an input and an output
d)
Tests whether something is true
102.
Linking elements together to make a string is called what?
a)
Combining
b)
Connecting
c)
Concatenation
d)
Stringing
103.
people = ["John", "Rob", "Bob"]
print (people[1])
What would this result be?
a)
John
b)
Rob
c)
Bob
d)
Error
104.
people = ["John", "Rob", "Bob"]
print (people[-1])
What would this result be?
a)
John
b)
Rob
c)
Bob
d)
Error
105.
people = ["John", "Rob", "Bob"]
print (people[4])
what would this result be?
a)
John
b)
Rob
c)
Bob
d)
Error
106.
A data type consisting of numbers, letters and symbols.
a)
String
b)
Integer
c)
Float
d)
Boolean
107.
Why would you use a WHILE loop?
a)
To repeat code
b)
To repeat code until a condition is met
c)
To save time
d)
To increase the range of code
108.
What function is used to let the user answer a question?
a)
Open
b)
Print
c)
Answer
d)
Input
109.
Which of the following output corresponds to the commands below:
var = "Santa Gema"
print var[2]
a)
Santa Gema
b)
Gema
c)
a
d)
n
110.
Which code package was imported to create our "guess a number from 1 to 20" class exercise?
a)
pickles
b)
tuples
c)
random
d)
turtle
111.
Which statement will check to see if a is equal to b?
a)
if a == b
b)
if a = b:
c)
if a != b:
d)
if a == b:
112.
Which statement will check to see if a is less than b and less than c?
a)
if a < b < c:
b)
if a < b and a < c:
c)
if a < b and c:
d)
if a < b and b < c
113.
What will the lines of code print?
a)
A
b)
B C
c)
A B C
d)
A C
114.
What will the following lines of code print?
a)
A
b)
B C
c)
A C
d)
Nothing, it will return an error.
115.
What is another way of writing the following code? 
Score = Score + 1 
a)
Score.add(1)
b)
score + 1
c)
Score + Score
d)
Score += 1
116.
The number returned when you run this code:
len(“love”)
a)
1
b)
2
c)
3
d)
4
117.
There are three logical operators in Python:
and, or, ____
a)
in
b)
else
c)
not
d)
true
118.
Consider the loop control structure in programming. Which term describes a loop that continues repeating without a terminating (ending) condition?
a)
Conditional Loop
b)
Unlimited Loop
c)
Sequence Loop
d)
Infinite Loop