1/4
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
what is an array
a fixed length, data structure and stores multiple elements of the same data type.
what is the structure of 1D arrays
DECLARE <identifier> : ARRAY[<lower>:<upper>] OF <datatype>
what is the structure of a 2D array
DECLARE <identifier> : ARRAY[<lower1>:<upper1>, <lower2>:<upper2>] OF <datatype>
what does DECLARE studentsnames: ARRAY[1:30} OF STRING show, annotate this.
studentsname is the identifier
ARRAY [1:30] means that there is 30 elements in the array
STRING is the type of data can go into the data so since its string it is letters.
what does DECLARE noughtsandcrosses : ARRAY [1:3, 1:3] OF CHAR show, annotate this.
noughtsandcrosses is the identifier
ARRAY [1:3, 1:3] means there is 3 rows and 3 columns to create a 3×3 grid
CHAR means only single characters can be stored into the array