
Algorithms and Programs- Control Structures
Presentation
•
Computers
•
8th - 11th Grade
•
Practice Problem
•
Medium
Jodian Blake
Used 112+ times
FREE Resource
7 Slides • 13 Questions
1
Algorithms and Programs- Control Structures
Ms. Blake
2
Multiple Choice
Which of the following is not a type of algorithm?
Pseudocode
Flowchart
IPO Chart
Narrative (structured english)
3
Fill in the Blanks
Type answer...
4
Multiple Select
This datatype allows a variable to store either TRUE or FALSE
Character
Boolean
String
IPO chart
5
What are control structures in algorithms and programs?
Also refered to as PROGRAMMING CONSTRUCTS.
Control Structures tell how the instructions you write should be executed or processed.
They determine how the steps in your algorithm or program should flow.
6
Types of Control Structures
Sequential
Selection (conditional)
Iteration (Repetition / loop)
7
Control Structures
Sequential- the instructions are processed (executed) in the order they are written.
Selection- makes a decision between one or more options.
Iteration- repeat a set of instructions for a number of times.
8
Multiple Choice
Which of the following is NOT a control structure?
Datatype
Sequential
Conditional
Repetition
9
Fill in the Blanks
Type answer...
10
Multiple Choice
This control structure executes instructions in the order they are written.
Iteration
Selection
Sequential
11
Fill in the Blanks
Type answer...
12
Fill in the Blanks
Type answer...
13
Sequential Control Structure Example (Narrative)
1.Ask user to enter 3 numbers
2.Computer accepts numbers
3.Find the sum of the 3 numbers
4.Divide the sum by 3
5.Print Answer
14
Using Selection/ conditional control structure example (Narrative)
Ask user to enter 3 numbers
Computer accepts numbers
Find the sum of the numbers and store it in the variable total
If total is greater than 40 then display “very good” ELSE
Display “too bad”
15
Iteration/ Repetition Control structure Example (Narrative)
Set X to start at 1; (X = 1)
Repeat the instructions:
1. Ask user to enter 3 numbers
2.Computer accepts numbers
3.Find the sum of the 3 numbers
4.Divide the sum by 3
5.Print Answer
6.Add 1 to X
Until X becomes 20
16
Fill in the Blanks
Type answer...
17
Multiple Select
if age1 > age2 then
print "age 1 is bigger"
else
print "age2 is bigger"
This is an example of which construct?
Iteration
Repetition
Conditional
18
Multiple Select
X= 1
Repeat
Print "enter name"
Read name
Print "your name is", name
X= X+1
Until X= 10
This is an example of which construct?
loop
Conditional
Selection
19
Multiple Choice
Which of the following is NOT a control structure?
Algorithms
Conditional
Repetition
Sequential
20
Fill in the Blanks
Type answer...
Algorithms and Programs- Control Structures
Ms. Blake
Show answer
Auto Play
Slide 1 / 20
SLIDE
Similar Resources on Wayground
15 questions
Tarea 3 y Tarea 4 - U3 - 6PC
Presentation
•
9th - 12th Grade
18 questions
Social Health
Presentation
•
9th - 12th Grade
16 questions
Life Science: Cells
Presentation
•
9th - 12th Grade
15 questions
Respiratory System
Presentation
•
9th - 12th Grade
14 questions
Infection Control: Hand Washing
Presentation
•
9th - 12th Grade
13 questions
Constitution 101
Presentation
•
9th - 12th Grade
15 questions
JARINGAN KOMPUTER
Presentation
•
9th - 12th Grade
16 questions
4. Communicating with Light
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade