Search Header Logo
Algorithms and Programs- Control Structures

Algorithms and Programs- Control Structures

Assessment

Presentation

Computers

8th - 11th Grade

Practice Problem

Medium

Created by

Jodian Blake

Used 111+ times

FREE Resource

7 Slides • 13 Questions

1

Algorithms and Programs- Control Structures

Ms. Blake

media

2

Multiple Choice

Which of the following is not a type of algorithm?

1

Pseudocode

2

Flowchart

3

IPO Chart

4

Narrative (structured english)

3

Fill in the Blanks

Type answer...

4

Multiple Select

This datatype allows a variable to store either TRUE or FALSE

1

Character

2

Boolean

3

String

4

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?

1

Datatype

2

Sequential

3

Conditional

4

Repetition

9

Fill in the Blanks

Type answer...

10

Multiple Choice

This control structure executes instructions in the order they are written.

1

Iteration

2

Selection

3

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?

1

Iteration

2

Repetition

3

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?

1

loop

2

Conditional

3

Selection

19

Multiple Choice

Which of the following is NOT a control structure?

1

Algorithms

2

Conditional

3

Repetition

4

Sequential

20

Fill in the Blanks

Type answer...

Algorithms and Programs- Control Structures

Ms. Blake

media

Show answer

Auto Play

Slide 1 / 20

SLIDE