1/39
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
x = 3
y = 4
print(x * y - y)
12
Which of the following is an example of abstraction in programming?
Using Variables instead of hardcoded values
def mystery(a, b):
return a + b * 2
print(mystery(2, 3))
8
In a loop that says for i in range(4):
, how many times will the loop run?
4
What is the main purpose of using functions in programs?
To organize and reuse code
What is a Boolean expression?
An expression that evaluates to True or False
Which of the following is a correct logical operator
NOT
What is an event-driven program
A program that responds to the user's interactions
What does the modulus operator (%) do?
Returns the remainder
Which statement properly defines a list in Python?
List [” apple”, “banana”, “oranges”]
What is the purpose of an algorithm?
Solve a problem or complete a task
Which of these sorting algorithms is most efficient for large data sets?
Merge sort
What is the best reason to use data visualization?
To easily identify patterns or trends
Which of these data types is used to represent text in most programming languages?
String
What does it mean to traverse a list?
Go through each item one by one
What is a good reason to compress data?
To reduce the file size and transmission time
3
An algorithm has a run time of O(n^2). What does this mean?
The run time grows quadractically with the size of input
Which tool is used to visually represent an algorithms!
Flowchart
What is metadata?
Data about data
What does DNS stand for
Domain Name System
What is an IP address used for?
To identify devices on a network
Which protocol is responsible for reliable data transmission on the internet?
TCP
What is phishing?
An attack on Steel's info via a fake email/websites
What does HTTP stand for?
hypertext transfer protocol
What is encryption?
Making data unreadable without a key
Which of the following helps ensure data integrity during transmission?
Checksum
What is a digital divide?
A gap between people with and without access to tech
What is a packet switching?
Breaking data into smaller chunks for transmission m
Which of the following best describes a DDoS attack?
Multiple systems are overwhelming a server with traffic
What is the purpose of pseudocode?
To describe a program’s logic without syntax
Which of the following is a computing innovation?
A smart watch
What is the benefit of open-source software?
Anyone can modify or improve it
Which of these is an example of digital divide?
A student in the U.S. does not have access to Wi-Fi
What is a citizen science project?
Science work done by the public using computing tools
What is pair programming
Two people working on two seperate programs
What does scalability in a computing system refer do?
Its ability to handle growth or increased demanded
Which is a bias that can arise from computer models?
Skewed outcomes due to limited data
What is an iteration in programming?
A single repetition of a process or loop
What does an event handler do?
Runs code in response to an event like a click