Exam 7: Arrays
Exam 1: Introduction to Computers and Programming50 Questions
Exam 2: Introduction to C Plus Plus60 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files63 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays58 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 9: Pointers45 Questions
Exam 10: Characters, C-Strings, and More About the String Class45 Questions
Exam 11: Structured Data53 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes47 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions40 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues47 Questions
Exam 19: Recursion22 Questions
Exam 20: Binary Trees38 Questions
Select questions type
A vector object automatically expands in size to accommodate the items stored in it.
Free
(True/False)
4.8/5
(93)
Correct Answer:
True
In C++ 11, you cannot use a range-based for loop to modify the contents of an array unless you declare the range variable as a reference.
Free
(True/False)
4.8/5
(84)
Correct Answer:
True
Which statement correctly defines a vector object for holding integers?
Free
(Multiple Choice)
4.8/5
(74)
Correct Answer:
D
To assign the contents of one array to another, you must use ________.
(Multiple Choice)
4.9/5
(79)
To access an array element, use the array name and the element's ________.
(Multiple Choice)
4.8/5
(85)
An array can store a group of values, but the values must be:
(Multiple Choice)
4.9/5
(77)
The ________ is automatically appended to a character array when it is initialized with a string constant.
(Multiple Choice)
4.8/5
(70)
It is ________ to pass an argument to a function that contains an individual array element, such as numbers[3].
(Multiple Choice)
4.9/5
(83)
An element of a two-dimensional array is referred to by ________ followed by ________.
(Multiple Choice)
4.8/5
(86)
A two-dimensional array can be viewed as ________ and ________.
(Multiple Choice)
4.9/5
(84)
This vector function returns the number of elements in a vector.
(Multiple Choice)
4.8/5
(79)
The amount of memory used by an array depends upon the array's data type and the number of elements in the array.
(True/False)
4.9/5
(89)
A(n)________ can be used to specify the starting values of an array.
(Multiple Choice)
4.8/5
(65)
Assume array1 and array2 are the names of arrays. To assign the contents of array2 to array1, you would use the following statement.
array1 = array2;
(True/False)
4.9/5
(90)
Showing 1 - 20 of 58
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)