QUESTION 33 The amount of memory used by an array depends solely on the number o
ID: 3840363 • Letter: Q
Question
QUESTION 33 The amount of memory used by an array depends solely on the number of elements the array can hold. True False QUESTION 34 To access an array element, use the array name and the element's name data type. O subscript. value. O size declarator. QUESTION 35 The following statement initializes all five elements of the number array to 1. int r[51 11); number True False QUESTION 36 The statement int grades[ 1 100 90, 99 80 is an example of default arguments O an illegal array declaration O an illegal array initialization. O implicit array sizing O data encapsulation QUESTION 37 Truel False: To assign the entire contents of one array to another use the assignment operator O True False QUESTION 38 Parallel arrays use the same for related elements. array name data O subscript O arguments O data typeExplanation / Answer
Question 33:
The amount of memory used by an array depends solely on the number of elements the array hold.
Ans: True.
Array is nothing but collection of elements related to same data type. Hence memory depends on number of elements.
Question 34:
To access an array element use the array name and element's subscript.
Ans: Subscript.
Question 35:
The following statement initializes all five elements of numbers array to 1
int number[5] = {1};
Ans: false.
Question 36:
The statement int grades[] = {100, 90, 99, 80}; is example of implicit array sizing.
Ans: implicit array sizing.
implicit array sizing syntax is like int arr[] = {1,2,3,}.
Question 37:
To assign the entire contents of one array to anotor use the assignment operator.
Ans: False
Question 38:
Parellel arrays use the same datatype for related elements.
Ans: Data type.
Question 30:
A dynamic array is.....
Ans: allocated at the bigining od block.
Question 32:
Unlike regular variables arrays can hold multiple values.
Ans: Values