Search Header Logo
For Loop

For Loop

Assessment

Presentation

Computers

8th - 12th Grade

Medium

Created by

Curtis Forbes

Used 106+ times

FREE Resource

4 Slides • 9 Questions

1

For Loop

Slide image

2

Problem

Write an algorithm to prompt the user to enter 15 numbers, one at a time, and to calculate and display the square of each.

3


Write an algorithm to prompt the user to enter 15 numbers, one at a time, and to calculate and display the square of each.

Slide image

4

Multiple Choice

Question image

Complete step 1 in the flow chart.

1

Stop

2

Start

3

Continue

4

GoTo

5

Multiple Choice

Question image

Complete step 2 in the flowchart

1

i = 1

2

i = 15

3

print i

4

i = i + 1

6

Multiple Choice

Question image

Complete step 3 in the flowchart.

1

READ number

2

sum = sum + number

3

PRINT "Enter a number"

4

READ square

7

Multiple Choice

Question image

Complete step 4 in the flowchart

1

READ square

2

PRINT square

3

PRINT number

4

READ number

8

Multiple Choice

Question image

Complete step 5 in the flow chart.

1

square = number * number

2

PRINT square

3

READ number

4

square = square + number

9

Multiple Choice

Question image

Complete step 6 in the flow chart.

1

READ square

2

PRINT square

3

FIND square

4

ENTER square

10

Multiple Choice

Question image

Complete step 7 in the flow chart.

1

sum = sum + i

2

if i < = 15

3

i = 1

4

i = i +1

11

Multiple Choice

Question image

Complete step 8 in the flow chart.

1

PRINT i

2

READ i

3

if i <= 15

4

if i = 0

12

Multiple Choice

Question image

Complete step 9 in the flow chart.

1

Start

2

Stop

3

Read

4

Print

13

Slide image

For Loop

Slide image

Show answer

Auto Play

Slide 1 / 13

SLIDE