NEW
Font size
WorksheetsArray Quiz 2
Total questions: 10
Worksheet time: 2mins
A variable that can store multiple values of the same type
Functions
Classes
Structures
Array
_______ is correctly declares an array?
int array;
array{10};
int array[10];
array array[10];
How can we accesses the seventh element stored in array?
array[6];
array(7);
array[7];
array=6;
If array is initialized with fewer initial values than the size declarator, what happen to the remaining elements?
set to the value of the element before
set to null
set to 1
set to 0
An array with two or more arrays that contain related data with each other
2 Dimensional Array
Parallel Array
Partial Array
Function Array
In array we access the value of element using index.
True
False
Given the following declaration, where is the value 77 stored in the scores array?
int scores[] = {83, 62, 77, 97, 86}
scores[2]
scores[1]
scores[3]
scores[4]
What will the following code display?
int numbers[5] = { 66, 55, 101, 99, 87};
for (int i = 2; i < 5; i++)
cout << numbers[i] << " ";
87 101 99 87
66 101 87
55 101 99 87
101 99 87
In an array, every element has the same
data type
memory location
subscript
all of the above
How to declare 2D array for marks that contain row and column as in picture?
float marks[3][4];
float marks[3][2];
float marks[4][3];
float marks[2][3];
