IB Year 2 Higher Level Computer Science
Tuesday 18 March 2025 - Block 5
← previous noteThere are about 3 months and 11 days until school ends. How are you going to use that time to make sure you do your best?
Daily Note
Hello.
Thank you Mariia and Ethan for volunteering and stepping up to help the 11th graders uderstand the importance of working on their IA's
I would like to remind you of our upcoming mock exams
A few of you have expressed concern about programming and the upcoming exams. We will work through one problem:
Lets work through these problems:
Here are the four algorithm-tracing problems, formatted using ASCII-art style tables suitable for easy pasting into your lessons.
Problem Set 1: Simple Algorithm (Sequence)
Command Term: Construct, Trace
Algorithm:
total = 0
for number in range(1, 6):
total = total + number
print(total)
Trace Table:
+-----------+--------+-------+
| Iteration | number | total |
+-----------+--------+-------+
| 1 | | |
| 2 | | |
| 3 | | |
| 4 | | |
| 5 | | |
+-----------+--------+-------+
Final Output: ________
Problem Set 2: Conditional Algorithm (Selection)
Command Term: Construct, Trace
Algorithm:
values = [5, 8, 3, 10, 2]
count = 0
for val in values:
if val > 5:
count += 1
print(count)
Trace Table:
+-----------+-----+----------------------+-------+
| Iteration | val | val > 5 (True/False) | count |
+-----------+-----+----------------------+-------+
| 1 | | | |
| 2 | | | |
| 3 | | | |
| 4 | | | |
| 5 | | | |
+-----------+-----+----------------------+-------+
Final Output: ________
Problem Set 3: Nested Loop Algorithm
Command Term: Construct, Trace, Analyze
Algorithm:
result = 0
for i in range(1, 4):
for j in range(1, 3):
result = result + (i * j)
print(result)
Trace Table:
+------------------------+------------------------+---+---+-------+--------+
| Iteration (outer loop) | Iteration (inner loop) | i | j | i * j | result |
+------------------------+------------------------+---+---+-------+--------+
| 1 | 1 | | | | |
| 1 | 2 | | | | |
| 2 | 1 | | | | |
| 2 | 2 | | | | |
| 3 | 1 | | | | |
| 3 | 2 | | | | |
+------------------------+------------------------+---+---+-------+--------+
Final Output: ________
Problem Set 4: Algorithm with Selection and Iteration
Command Term: Construct, Trace, Evaluate
Algorithm:
numbers = [4, 7, 5, 2, 9]
total = 0
for num in numbers:
if num % 2 == 0:
total += num * 2
else:
total += num + 1
print(total)
Trace Table:
+-----------+-----+----------------------------+--------------+-------+
| Iteration | num | num % 2 == 0 (True/False) | Calculation | total |
+-----------+-----+----------------------------+--------------+-------+
| 1 | | | | |
| 2 | | | | |
| 3 | | | | |
| 4 | | | | |
| 5 | | | | |
+-----------+-----+----------------------------+--------------+-------+
Final Output: ________
These ASCII-art tables should paste cleanly into your materials, making it easier for students to fill them out directly.
Please review this:
- Online interaction and social networking
- Cloud computing and client-server architecture
- Cloud computing for specified organizations
- Copyright and intellectual property on the web
- Privacy, identification and authentication
- Network architecture, protocols and standards in future development
- Unregulated monopolies
- The decentralized and democratic web
A little less comfortable
As you revise (study) you should have a clear plan. Look at each and every standard and test yourself. Work with friends to challenge each other. Start revising early, don't wait until the last minute.
A little more comfortable
As you revise (study) you should have a clear plan. Look at each and every standard and test yourself. Work with friends to challenge each other. Start revising early, don't wait until the last minute.
Ideally, you should be revising every day for about 30 minutes.
Statement of Inquiry
The big idea for today is Revision.
The essential questions for this topic are:
How do we study and learn so we can transfer our understanding and knowing?
It takes time to explore and really understand a big idea. If you want to
learn more about
revision (which is connected to today's daily note),
please click here
.
We are learning this because as a designers must understand scientific and technical innovation. Designers use systems, models, methods, and processes to solve problems.
Our learning
This is a beta feature. Please let me know if you have any feedback.
Please click here to reflect on our learning for today's class.