Page 77 - ThinkGPT_V2.1_C8_Flipbook
P. 77
Following shows the output in the simulator.
Information Literacy
code Quest Media Literacy
Answer the following questions:
1. What is the main purpose of using functions?
2. What is the difference between arguments and parameters?
REFRESH
Loops are fundamental programming constructs that allow you to repeat a set of instructions multiple
times.
The repeat loop executes a block of code a specified number of times.
The forever loop is a special loop that runs continuously throughout the entire project.
The for loop is a counting loop, which is useful for situations where you need a counter variable that
can be used within the loop.
The while loop runs if a specified condition is true.
Jump statements in programming are used to change the flow of control by skipping, starting again or
exiting certain parts of the code.
The break statement changes the normal flow of execution of the statement by exiting the existing
loop and continuing the flow of the statement after that loop.
The continue statement forces the next iteration of the loop to execute and skips the line of code
within the loop.
Functions are reusable blocks of code that perform specific tasks.
Advanced MakeCode Arcade 75

