2-Arrays Flashcards

1
Q

All arrays consist of contiguous memory locations

A

True

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

A specific element in an array is accessed by an index

A

True

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

Which of the following are true regarding arrays. Select all that apply.

A

Sequential Elements
Same data type
Fixed Size

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

What punctuation is used to declare the explicit size of an array upon declaration when the array is not initialized during declaration?

A

[]

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

All arrays have 0 as the index of their first element which is also called the base index

A

True

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

If an array is a three-dimensional array, how many sets of square brackets are used to identify each element of the array?

A

[][][]

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

Formal parameters as a pointer

A

void myFunction(int*param)

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

Formal parameters as a sized array

A

void myFunction(int param[10])

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

Formal parameters as an unsized array

A

void myFunction(int param[])

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

Which of the following is the only methodology to return an array from a function in the C programming language?

A

int * myFunction()

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

The scandalous truth is that C has no arrays — that they are merely cleverly disguised pointers

A

True

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