Code Comprehension
Within each lesson there is an element of learners demonstrating their code comprehension, can they explain the problem and how their script solves the issue?
The aim of these exercises are for learners to understand that there are a range of ways to solve a problem in the computer programming.
With First Class Coders, concepts are reinforced.
Our projects have deliberate errors in their lines of code (Scripts). Mistakes in code are called bugs.
To fix the bugs students need to find the bug and re write the line of code. This is called debugging.
Can you correct each of these scripts?
A. Oh no! The whale just keeps getting bigger and bigger.
I don't want it to.
Can you see what the problem is with this script?
B. Why doesn't the star keep spinning when I run the program?
Can you fix it?
C. The fish does move when I press the green flag.
What's the problem?
A.

B.

C.

The aim of this exercise is for learners to understand that there are a range of ways that loops (iteration) work in programming. The easiest loops to understand are those that continue forever (infinite loops) or those that run for a a set number of times (count controlled loops). The final type are condition controlled loops, which run as long as a rule (or rules) is met.
Within each lesson there is an element of learners demonstrating their code comprehension can they explain their understanding.

A.

B.
C.




