Font size
WorksheetsComputer Science Principles Final Exam Review
Total questions: 50
Worksheet time: 28mins
Which of the following refers to a work that is not protected by copyright?
Public domain
Creative commons
Fair use
Royalty free
Which of the following refers to a work that has copyright reserved but can still be copied?
Creative commons
Public domain
Trademark
Fair use
Social media has only negative impacts on individuals.
True
False
Which of the following HTML tags will give you the biggest text?
<p>
<h1>
<h6>
<a>
What would the output of the following code be?
x = 10
x = 15
print("You have", x, "dogs")
You have 10 dogs
You have 15 dogs
You have 1015 dogs
You have 25 dogs
What type of number is the following if condition checking for? (Assume I have an integer variable named "num")
if num MOD 2 == 0
print(num)
Even numbers
Odd numbers
Positive numbers
Floating-point numbers
If the user enters 9, what would the value of the variable c be?
a = int(input("Please enter a number: "))
b = 10
c = a + b * 2
(a)
What is the decimal representation of the following binary number?
101101
(a)
Which of the following is a byte?
1
0010 1011
1100 0101 1011
1011
Information is sent over the network in ___________
Packets
Links
Packages
Messages
How many values can a binary digit store?
Two values (0 or 1)
Ten values (0-9)
Sixteen values (0-F)
Eight values (0-7)
What will the output of the following bit of code be?
num = 8
num2 = 12
while num <= num2
num = num + 1
print(num)
9, 10, 11, 12, 13
9, 10, 11, 12
8, 9, 10, 11, 12, 13
8, 9, 10, 11, 12
Select ALL examples of hardware
CPU
RAM
Hard drive
Google Chrome
Windows
Which tag should come very first in your HTML files?
<!DOCTYPE html>
<head>
<html>
<body>
Which of the following would cause an infinite loop?
count = 0
while count < 25
count = count + 1
count = 25
while count > 0
count = count - 1
count = 0
while count < 25
count = count - 1
count = 25
while count < 50
count = count + 1
What is the result of the following code?
first = True
second = False
if (not second) and first
print("True")
else
print("False")
True
False
Which of the following error types would prevent your program from running?
Runtime error
Syntax error
Logic error
What is the process of fixing an error in a program?
Debugging
Compiling
Interpreting
Formatting
If I wanted to store the value of Pi (3.14), what datatype would my variable need to be?
Floating-point (float/double)
boolean
int
string
Which of the following compression types loses data in the compression process?
Binary compression
Lossless compression
Lossy compression
Huffman compression
Which protocol do I want to make sure my browser is using when connecting to a website to be secure?
HTTPS
HTTP
TCP
FTP
Which of the following is the LARGEST?
petabyte
gigabyte
kilobyte
megabyte
terabyte
Which of the following binary numbers is the biggest?
1000 0001
0111 1111
1000 0010
0010 0000
Select all the INPUT devices
Keyboard
Mouse
Webcam
Monitor
Speakers
What is the binary representation of the decimal number 94
(a)
Which of the following statements executes a block of code if a condition is true?
if
function
define
import
What would the result of the following code be if snow_day = True and weekend = False?
if weekend
print("Have a great weekend!")
else if snow_day
print("Back in my day we hiked uphill to school in 10 feet of snow")
else
print("It's school time!")
Back in my day we hiked uphill to school in 10 feet of snow
It's school time!
Have a great weekend!
"Back in my day we hiked uphill to school in 10 feet of snow"
AND
"It's school time!"
What is the process of breaking large problems into smaller, more manageable ones?
Top-down design
Fractalization
Outlining
Task Simplification
What will be the output of the following code?
a = 5
b = 3
c = a * b
print("The result is", c)
The result is 8
The result is 15
The result is 53
The result is 35
What is the default value of a boolean variable in most programming languages?
1
0
False
True
What will be the value of sum1 after this code runs?
4
1
40
10
If we want to draw a circle using our helpful drawCircle function at position (200, 300) with a radius of 50 and color purple, which is the correct function call?
As a reminder, here's the function header for drawCircle:
function drawCircle(radius, color, x, y)
drawCircle(200, 300, 50, Color.purple);
drawCircle(50, Color.purple, 200, 300);
drawCircle(200, 300, Color.purple, 50);
drawCircle(radius, color, x, y);
Consider the following array:
var shoppingList = ["notebooks", "pencils", "calculator", "backpack", "markers"];
Which line of code will correctly change "markers" to "colored pencils"?
shoppingList["markers"] = "colored pencils";
shoppingList["colored pencils"] = "markers";
shoppingList[4] = "colored pencils";
shoppingList[5] = "colored pencils";
Why do we compress data?
I. To save memory space on devices
II. To speed up the time it takes to send a file over the internet
III. The computation it takes to decompress data is cheaper than the storage space required to store uncompressed data
I only
I and II only
I, II, and III
III only
Which of the following are true about Internet routing?
I. For any two points on the Internet, there exists only one path between the two points
II. Routing on the Internet is fault-tolerant and redundant
I only
II only
Both I and II
Neither I and II
Which of the following statements are true about using visualizations to display a dataset?
I. Visualizations are visually appealing but don’t help the viewer understand relationships that exist in the data
II. Visualizations like graphs, charts, or visualizations with pictures are useful for conveying information, while tables just filled with text are not useful.
III. Patterns that exist in the data can be found more easily by using a visualization
I and II
II and III
I, II, and III
III only
Alma will make the honor roll if she has at least a 3.80 GPA and misses less than 5 days of school in a year. In which of the following cases will Alma make honor roll?
Alma has a 3.84 GPA and misses 5 days of school
Alma has a 3.78 GPA and misses 2 days of school
Alma has a 3.68 GPA and misses 6 days of school
Alma has a 3.81 GPA and misses 3 days of school
Karel the Dog is instructed to move forward one space. Then, if Karel is standing on a ball, Karel will turn right. Otherwise, Karel will move forward two spaces. Given the starting point below, where will Karel end up?
Which of the following statements are true about the Internet?
I - The entire global population has Internet access
II - Widespread use of the Internet has led to concerns around privacy and copyright
III - Internet communication uses standard protocols that are used by all devices on the Internet
IV - The Internet connects devices and networks all over the world
I and II
I and IV
II, III, and IV
I, II, III, and IV
Which binary value is equal to the decimal number 1210?
122
11002
1111111111112
1012
Consider the following program code:
What is the result of running this program code if sum is initialized to 1 instead?
10
11
4
9
Consider the following program code:
What are the values of x and y as a result of this program code?
x has a value of y
y has a value of temp
x has a value of 9
y has a value of 3
x has a value of 3
y has a value of 9
x and y have a value of 9
What will the following code print to the screen?
println(15 + 3);
18
15 + 3
Nothing
153
Which of the following lists the types of copyright license from least restrictive to most restrictive?
Public Domain, All Rights Reserved, Some Rights Reserved
All Rights Reserved, Some Rights Reserved, Public Domain
Public Domain, Some Rights Reserved, All Rights Reserved
All Rights Reserved, Public Domain, Some Rights Reserved
Which of the following best explains what happens when a new device is connected to the Internet?
An Internet Protocol (IP) address is assigned to the device.
A device driver is assigned to the device.
A packet number is assigned to the device.
A website is assigned to the device.
Which of the following is a benefit of the fault-tolerant nature of Internet routing?
The ability to use a hierarchical naming system to avoid naming conflicts
The ability to resolve errors in domain name system (DNS) lookups
The ability to use multiple protocols such as hypertext transfer protocol (HTTP), Internet protocol (IP), and simple mail transfer protocol (SMTP) to transfer data
The ability to provide data transmission even when some connections between routers have failed
What is the latency of a system?
The strength of the network connection
The time it takes for a bit to travel from sender to receiver
The distance that data needs to travel in a network
The amount of data (in bits) that can be transmitted at any given time
Which of the following best describes the difference between the domain and path of a URL?
The domain specifies what kind of file is being requested. The path specifies the name of the file being requested.
The domain specifies the name of the file being requested. The path specifies what kind of file is being requested.
The domain specifies exactly what file is being requested. The path specifies where the browser’s request should be sent.
The domain specifies where the browser’s request should be sent. The path specifies exactly what file is being requested.
What does URL stand for?
Usable Render List
Uniform Resource Locator
Uniform Response Layout
Underlying Resource Locator
Anything physical that lets a user interact with your idea is called a
Mock-up
Prototype
Case study
Storyboard
