Arrays and lists test questions

1

What is a data structure?

2

What is an array?

3

Why are arrays used?

4

In an array, what is an element?

5

How many elements would the array 'student_marks(10)' hold?

6

In the array 'numbers(6, 10, 7, 12, 9, 2)', what is the value of element numbers(4)?

7

In the array 'colours("Purple", "Blue", "Red", "Green", "Yellow")', what is the value of the element colours(3)?

8

In the array 'names("John", "Ali", "Sarah")', what is the value of element names(2)?

9

What is the difference between an array and a list?

10

When creating the array 'scores(9)', what does the '9' in brackets represent?