WorksheetsCS 105 Final Review
Total questions: 10
Worksheet time: 8mins
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?
open() - to open the file
input() - to get the file name from the user
print() - to print the file contents
close() - to close the file once I'm done with it
Which of these code snippets is NOT a valid print statement?
Entering a security code after logging into a website is a good example of the website accomplishing which security goal?
Authentication
Non-Repudiation
Confidentiality
Integrity
You are at an airport trying to transfer money between bank accounts. What can you do to increase the security of your transaction?
Use airport WiFi
Avoid working with personal data in public settings
Use airport WiFi with a VPN enabled
Click on every ad that pops up on your computer
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?
Social Engineering
Phishing
Zero-Day Exploit
Ransomware
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.
bug
Trojan horse
virus
worm
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.
password
proxy server
air-gap
firewall
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.
malware
encapsulation
modularity
integrity
We call our models of Cloud Computing "Utility Computing" and "Grid Computing" because...
all of a company's computing power must be on-site connected to the "grid" and "utilities."
similar to "utility" companies and the electric "grid," these computing services are on demand and pay-per-use.
the network infrastructure is laid out in a "grid" to provide the maximum "utility."
similar to "utility" companies and the electric "grid," we must have accurate predictions of how much compute we need ahead of time.
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?
Google as a Service (GaaS)
Software as a Service (SaaS)
Serverless
Platform as a Service (PaaS)
