Arrays Flashcards

0
Q

What is an array?

A

A single name given to a block if variables with an index value, so an array with 3 variables to store a name might be: name(1), name(2), name(3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

When is an array used?

A

When you require a number of variables to store similar data with: a similar name and the same data type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What can you use to look at individual items?

A

Variable index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a declaration?

A

In order to use an array you have to declare its type and size. This is so that the required number if locations are reserved.

example: DIM value(20) As Integer
Creates the set of integer variables: value(1), value(2), value(3) … value(20)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly