Hint: Think about how you shop using a phone or computer [OK]
Common Mistakes:
Believing computing makes shopping harder
Ignoring online shopping benefits
3. Look at this flowchart describing a computing task:
What is the main purpose of this computing process?
medium
A. To send a message quickly
B. To cook food automatically
C. To print a book
D. To clean the house
Solution
Step 1: Analyze the flowchart steps
The flowchart shows starting, inputting a message, sending it, then ending.
Step 2: Match steps to real-life computing tasks
This matches sending a message electronically, like a text or email.
Final Answer:
To send a message quickly -> Option A
Quick Check:
Flowchart shows message sending = To send a message quickly [OK]
Hint: Follow the flowchart steps to see the task goal [OK]
Common Mistakes:
Confusing message sending with unrelated tasks
Ignoring the input and send steps
4. This code snippet is meant to organize a list of tasks by priority:
tasks = ["clean", "shop", "study"]
priority = [2, 1, 3]
organized = []
for i in range(len(tasks)):
organized.append(tasks[priority[i]])
print(organized)
What is the error in this code?
medium
A. The print statement is missing parentheses
B. Using priority values as indexes directly causes an error
C. The tasks list is empty
D. The for loop has wrong range length
Solution
Step 1: Understand the code's goal and indexing
The code tries to reorder tasks by priority using priority values as indexes.
Step 2: Identify index error
Priority values are 1, 2, 3 but list indexes start at 0, so tasks[3] causes an IndexError.
Final Answer:
Using priority values as indexes directly causes an error -> Option B
Quick Check:
Indexing error from priority values = Using priority values as indexes directly causes an error [OK]
Hint: Remember list indexes start at 0, not 1 [OK]
Common Mistakes:
Thinking print needs fixing in Python 3
Assuming tasks list is empty
Ignoring index range errors
5. You want to create a simple program that helps organize your daily schedule by priority using computing. Which approach best uses computing to solve this?
hard
A. Write a program that deletes all tasks automatically
B. Write a program that guesses your tasks randomly
C. Write a program that sorts tasks by priority and reminds you
D. Write a program that only shows tasks without order
Solution
Step 1: Identify the goal of organizing schedule by priority
The goal is to sort tasks so important ones come first and get reminders.
Step 2: Evaluate each option's usefulness
Write a program that sorts tasks by priority and reminds you sorts and reminds, matching the goal. Options B, C, and D do not organize or help effectively.
Final Answer:
Write a program that sorts tasks by priority and reminds you -> Option C
Quick Check:
Organizing schedule needs sorting and reminders = Write a program that sorts tasks by priority and reminds you [OK]
Hint: Choose the option that sorts and helps manage tasks [OK]