Flow Control Structures Reveiw:For Ms. Schron’s class
Flow Control Structures: The programmer’s tools to get a computer to do something or take a specific action. There are three flow control structures in programming: sequence, conditions, and loops.
Sequence Also called order of events.Sequence is the order you write your code in.
Loops Refers to repeating of a line of code written. In Scratch think of the Repeat button or Forever Button that allows you to write one line of code repeat it many times.
Conditional – The “if you do this, then this happens” statements in code. “if the user types his password then he gets into the website. In Scratch, if you press the flag then the Sprite does something.
Set of Steps in a specific order not necessarily in computer code to complete a task
Here are a set of online flash cards to study the definitions of these coding terms.
Click here for Flash Cards
SEQUENCE DEMAND THAT THE CODE BE EXECUTED EXACTLY AS WRITTEN IN THE SAME ORDER
ANSWER THE QUESTION DO THEY HAVE ALL THE SAME BLOCKS? ARE THEY IN THE SAME ORDER? DO YOU THINK THE OUTCOME OF THE EXECUTED CODE WILL BE THE SAME?
IF YOU SAID NO YOU WOULD BE RIGHT.