No student devices needed. Know more
10 questions
To access an array element, use the array name and the element's
data type
subscript
name
value
A two-dimensional array is like _____ put together.
an array and a function
several identical arrays
two functions
two arrays of different types
A two-dimensional array can be viewed as _______ and ________.
rows, columns
arguments, parameters
increments, derements
All of these
Which of the following is a valid C++ array definition?
int scores [0];
float $payments [10];
int readings [4.5];
int scores [10];
An array can store a group of values, but the values must be .....
the same data type
each of a different data type
constants
integers
To assign the contents of one array to another, you must use
the assignment operator with the array names
the equality operator with the array names
a loop to assign the elements of one array to the other array
Any of these
To pass an array as an argument to a function, pass the _________ of the array.
contents
size, expressed as an integer
name
value of the first element
What is a array?
An array is a series of elements of the same type in contiguous memory locations
An array is a series of element
An array is a series of elements of the same type placed in non-contiguous memory locations
None of the mentioned
The individual values contained in array are known as
parts
elements
numbers
constants
Unlike regular variables, these can hold multiple values.
array
named constants
constants
floating-point variables
Explore all questions with a free account