CS-I Journal J1152: While Loop

Name: Mukesh Kalikaya

Date: 25-January-2023

I received assistance from: No one

I assisted: No one

Navigation

BACK TO JOURNALS

CSS File

Previous Journal

Next Journal

Section 1

Why is the test executed prior to the loop?

The system has to check the test before executing the loop so it has time to read and respond accordingly.

Compare this diagram to that of the conditional. What are the similarities? What are the differences?

Both of the loops have a minimum of 2 outputs. Diagram also has test sections and a lot of alternatives that divert the output to be different.

What is the purpose of the Jump instruction after the consequent?

Jump instructions in assembly are a way to permanently transfer the execution to another instruction located at a different memory address.

What did I learn? What was the "big idea"?

I learned how to use while loops, how they operate, and the process of execution they go through.

What challenges did I encounter?

I knew how to use while loops in python but I didn't know how to operate in swift or any of the different languages.

How can this experience be improved

This experience cannot be improved because I did learn a lot and they were explained in a way that they are understandable.

Free Reflection: How has what I've learned affected my thinking?

Now that I know how while loops work, I can understand them better and I can also use that to my advantage when programming.