Search Header Logo
1D-array-pseudocode

1D-array-pseudocode

Assessment

Presentation

•

Computers

•

9th - 12th Grade

•

Practice Problem

•

Easy

Created by

Arasaka Teacher

Used 1+ times

FREE Resource

1 Slide • 7 Questions

1

​1D-array-pseudocode

By Rita

2

Fill in the Blanks

Question1: Input 10 Student Scores

Task:
Create an array to store 10 student scores.
Ask the user to input each score and store it in the array.

DECLARE Scores : ARRAY[0..9] OF INTEGER

DECLARE Index : INTEGER

FOR Index ← 0 TO 9

————————

NEXT Index



3

Fill in the Blanks

Question 2: Initialize an array

Write a program to initialize an array of 10 elements. Each element should be 0.
Print all the elements.

DECLARE List : ARRAY[0:9] OF INTEGER

DECLARE Index : INTEGER

FOR Index ← 0 TO 9

    

← 0

NEXT Index

FOR Index ← 0 TO 9

    OUTPUT List[Index]

NEXT Index

4

Open Ended

Question 3: Initialize an array

Write a program to initialize an array of 10 elements. Each element should be 0.
Print all the elements.

Modify Question 1 so that the first element is 1, the second is 2, ..., the tenth is 10.
Print all elements.

5

Open Ended

Question 4: Find total sum (10 numbers)

Using an array of 10 integers, calculate and print the total sum and average of all elements.

6

Open Ended

Question 5: Find maximum value

Using an array of 10 integers, find and print the maximum element value.

7

Open Ended

Question 6: Find minimum value

Using an array of 10 integers, find and print the minimum element value.

8

Open Ended

Question7: Count Students with Scores Above 90

Task:
Ask the user to input 10 student scores (0–100) into an array.
Count and print how many students scored more than 90.

pattern-tertiary
​1D-array-pseudocode

By Rita

Show answer

Auto Play

Slide 1 / 8

SLIDE