1/29
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is the purpose of a loop in Python?
To repeat a block of code
Which of the following is the correct way to define a function in Python?
def myFunc()
What data type is used to store a sequence of characters in Python?
string
Which control structure is used to execute code based on a condition?
if statement
What is the output of the following code? x = 5 y = 10 print(x + y)
15
What does it mean to "debug" a program?
To find and fix errors in the code
Which of the following is NOT a valid variable name in Python?
2var
What is the purpose of the "return" statement in a function?
To send a value back to the caller
Which of the following loops will run indefinitely if not stopped?
while True:
What is the correct way to comment a single line in Python?
# This is a comment
What is pseudocode?
A high-level description of an algorithm
Why is pseudocode useful in program development?
It helps plan the logic before writing code
Which of the following is a benefit of collaborating on a programming project?
It allows for division of tasks and diverse perspectives
What does it mean to "satisfy personal curiosity" in the context of program development?
Writing code to solve a problem you're interested in
Which of the following is an example of a logical error in a program?
A mistake in the algorithm that produces incorrect results
What is the first step in the software development process?
Defining the problem
In pseudocode, what does the keyword "IF" typically represent?
A conditional statement
Which of the following is a correct pseudocode statement for assigning a value to a variable?
All of the above
What is the purpose of testing a program?
To ensure the program works as expected
Which of the following best describes an algorithm?
A step-by-step procedure to solve a problem
What is the primary purpose of the Internet?
To connect computers and share information globally
Which of the following best describes a network?
A group of interconnected computers
What is a protocol in the context of the Internet?
A set of rules for data communication
Which protocol is commonly used for sending emails?
SMTP
What does "fault tolerance" mean in computing systems?
The ability to continue functioning despite failures
Which of the following is an example of parallel computing?
Dividing a task into smaller parts and processing them simultaneously
What is the role of a router in a network?
To direct data packets between networks
Which of the following is a key characteristic of distributed computing?
Multiple computers work together to solve a problem
What does "HTTP" stand for?
HyperText Transfer Protocol
Which of the following best describes a "packet" in networking?
A small unit of data transmitted over a network