wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CS 105 Final Review

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

If I'm writing a program that will use a file provided by the user, what Python functions do I want to be sure to use?

a)

open() - to open the file

b)

input() - to get the file name from the user

c)

print() - to print the file contents

d)

close() - to close the file once I'm done with it

2.

Which of these code snippets is NOT a valid print statement?

a)

b)

c)

d)

3.

Entering a security code after logging into a website is a good example of the website accomplishing which security goal?

a)

Authentication

b)

Non-Repudiation

c)

Confidentiality

d)

Integrity

4.

You are at an airport trying to transfer money between bank accounts. What can you do to increase the security of your transaction?

a)

Use airport WiFi

b)

Avoid working with personal data in public settings

c)

Use airport WiFi with a VPN enabled

d)

Click on every ad that pops up on your computer

5.

You are a hacker trying to gain access to Stanford's computer network. You drop USB sticks with a Stanford logo in the parking lot outside the freshman dorms. This is an example of what attack mechanism?

a)

Social Engineering

b)

Phishing

c)

Zero-Day Exploit

d)

Ransomware

6.

Success! Some silly Stanford student picked up your USB and plugged it into their laptop. In order for your malware to spread, you put a _____ on the USB so that it will spread on its own to other laptops connected to Stanford's network.

a)

bug

b)

Trojan horse

c)

virus

d)

worm

7.

Oh no! This Stanford student has very robust cybersecurity measures on their laptop. Your attack was foiled by the computer's _____, which warned the user about the malware from the USB.

a)

password

b)

proxy server

c)

air-gap

d)

firewall

8.

A good software program has _____, which means that each section of the code is broken up into smaller chunks that only handle one task each.

a)

malware

b)

encapsulation

c)

modularity

d)

integrity

9.

We call our models of Cloud Computing "Utility Computing" and "Grid Computing" because...

a)

all of a company's computing power must be on-site connected to the "grid" and "utilities."

b)

similar to "utility" companies and the electric "grid," these computing services are on demand and pay-per-use.

c)

the network infrastructure is laid out in a "grid" to provide the maximum "utility."

d)

similar to "utility" companies and the electric "grid," we must have accurate predictions of how much compute we need ahead of time.

10.

You want to build the next big cloud computing start-up. Which of the following is NOT a model of cloud computing you could base your company on?

a)

Google as a Service (GaaS)

b)

Software as a Service (SaaS)

c)

Serverless

d)

Platform as a Service (PaaS)