No student devices needed. Know more
15 questions
A double type is an example of a simple data type.
True
False
A one-dimensional array is an example of a structured data type.
True
False
Arrays can be passed as parameters to a function either by value or by reference.
True
False
A function can return a value of type array.
True
False
The size of an array is determined at compile time.
True
False
Given the declaration:
int list[10];
the statement:
list[5] = list[3] + list[2];
updates the content of the fifth component of the array list.
True
False
In C++, some aggregate operations are allowed for strings.
True
False
Consider the following declaration:
double salary[10];
The array name is:
double
salary
10
None above
Consider the following declaration:
double salary[10];
The array size is:
10
9
0
None above
Consider the following declaration:
double salary[10];
The data type of each array component is:
double
salary
10
None above
What is the output of the following program segment?
3 1 -1 -3 -5
-3 -1 1 3 5
-3 -1 1 3 5
5 -1 8 3 -1
3 1 -1 -3 -5
-5 1 -8 -3 1
If the data is provided in a list form, you can use one-dimensional arrays.
True
False
A collection of a fixed number of components arranged in rows and columns, wherein all components are of the same type is called as:
1D array
2D array
3D array
None above
The assignment statement should be:
list [34] = 5;
list [5] = 34;
list [10] = 34;
list [10] = 5;
Based on the array list attached, chose the best assignment statement:
list [3] = 10;
list [4] = 10;
list [3] = 10;
list [6] = 45;
list [6] = 35;
Explore all questions with a free account