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.

Algorithm

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

http://www.cram.com/flashcards/coding-terms-9529257

SEQUENCE DEMAND THAT THE CODE BE EXECUTED EXACTLY AS WRITTEN IN THE SAME ORDER

COMPARE THESE TWO CODES. 

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.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s