If an array can store 100 values, what would be the first index?
2
New cards
1 5
What is the output of the following code?
\#include
3
New cards
int arr[3] \= {1,2,3};
How do you initialize an array in C+?
4
New cards
double salary \= balance[6];
Which of the following statements is correct?
5
New cards
1 3 5
What is the output of the program?
\#include
6
New cards
GRADE \= A 65
What is the output of the following code?
\#include
7
New cards
49
What is the index number of the last element of an array with 50 elements?
8
New cards
linear array
A one dimensional array is also known as \___________________.
9
New cards
double price[5];
Which of the following correctly declares an array?
10
New cards
box[1];
Which of the following correctly gives the memory address of the first element in the array named box, an array with 100 elements?
box[one];
box[1];
box;
&box;
11
New cards
two dimensional array
It is an array that consists of more than one row and more than one column.
12
New cards
int a[6][2];
An array composed of 6 rows and 2 columns, what would be the array declaration?
13
New cards
0 0 1 2 2 4
\#include
14
New cards
int x[50][2];
In order to have an array with 50 rows and 2 columns, the correct declaration should be:
15
New cards
99
What is the output of the given program?
\#include
16
New cards
3
In the array int x[3][4], how many rows were created?
17
New cards
6
In the array is int x[10][6], how many columns were created?
18
New cards
int my Array[20[20];
Which of the following is a two-dimensional array?
19
New cards
4
\#include
20
New cards
int array[10];
Which of the following correctly declares an array?
21
New cards
3
In a given array int x[3][4] \= {{0,1,2,3}, {4,5,6,7}, {8,9,10,11}}; how many rows are there?
22
New cards
x[0][3]
In a given array int x[3][4] \= {{0,1,2,3}, {4,5,6,7}, {8,9,10,11}}; what is index contains 3?
23
New cards
Container of objects of similar types
Which of the following best describes an array?
24
New cards
An array is a series of elements of the same type in contiguous memory locations
What is the correct definition of an array?
25
New cards
box[6];
Which of the following correctly accesses the seventh element stored in an array named box with 100 elements?
26
New cards
27
What will be the output of the following C++ code?
\#include
27
New cards
0
In a single dimension array, the starting index is always \_____________.
28
New cards
myArray[3] \= 3;
If an array myArray \= {15, 45, 67, 34}, what statement should you choose to change the last value to 3?
29
New cards
array[9];
Which of the following accesses the tenth element stored in an array?
30
New cards
99
What is the index number of the last element of an array with 100 elements?
31
New cards
int arr2[15];
What is the correct array declaration?
32
New cards
all of the given
In C++, an Array is:
"an array contains more than one element a group of elements of the same type array elements are stored in memory in continuous or contiguous locations"
33
New cards
2 4 6 8
What is the output of the given program?
\#include
34
New cards
1
In an array, int a[3][2], what is the last index value of the column?
35
New cards
int a[3][5];
If you will be making a table of values, composed of 3 rows and 5 columns, what would be the array declaration?
36
New cards
columns
If the array has a syntax of data_type array_name[x][y]; What does y represent?
37
New cards
11
In the array is int arr[11][5], how many rows were created?
38
New cards
array
It refers to a table of rows and columns
39
New cards
int a[3][3];
If you will be making a table of values, composed of 3 rows and 3 columns, what would be the array declaration?
40
New cards
4
In the array is int x[3][4], how many columns were created?
41
New cards
19
What is the index number of the last element of an array with 20 elements?
42
New cards
float prices[3];
Which of the following correctly declares an array?
43
New cards
28
What is the index number of the last element of an array with 29 elements?
44
New cards
1 2 3 4 5 6
What is the output of the program?
\#include
45
New cards
90.5 92.5 96.5
What is the output of the following code?
\#include
46
New cards
array
It is used to store multiple values in a single variable, instead of declaring separate variables for each value
47
New cards
Array
A series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.
48
New cards
int x[5][10];
In order to have an array with 5 rows and 10 columns, the correct declaration should be:
49
New cards
14
What is the index number of the last element of an array with 15 elements?
50
New cards
array [2][1]
Check the array below:
int array[3][5]
{
{ 1, 2, 3, 4, 5 },
{ 6, 7, 8, 9, 10 },
{ 11, 12, 13, 14, 15 }
};
What's the index of the array where it contains the value 12?
51
New cards
100
In the array is int x[100][50], how many rows were created?
52
New cards
int a[6][4];
An array composed of 6 rows and 4 columns, what would be the array declaration?
53
New cards
int x[2][9];
In order to have an array with 2 rows and 9 columns, the correct declaration should be:
54
New cards
4
In a given array int x[3][4] \= {{0,1,2,3}, {4,5,6,7}, {8,9,10,11}}; how many columns are there?