Exam 7: Arrays and Vectors
Exam 1: Introduction to Computers and Programming47 Questions
Exam 2: Introduction to C62 Questions
Exam 3: Expressions and Interactivity45 Questions
Exam 4: Making Decisions51 Questions
Exam 5: Loops and Files60 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays and Vectors56 Questions
Exam 8: Searching and Sorting Arrays30 Questions
Exam 9: Pointers47 Questions
Exam 10: Characters, C-Strings, and More About the String Class47 Questions
Exam 11: Structured Data46 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes54 Questions
Exam 14: More About Classes46 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions43 Questions
Exam 16: Exceptions and Templates36 Questions
Exam 17: The Standard Template Library38 Questions
Exam 18: Linked Lists41 Questions
Exam 19: Stacks and Queues47 Questions
Exam 20: Recursion27 Questions
Exam 21: Binary Trees39 Questions
Select questions type
An array's size declarator must be a __________ with a value greater than __________.
(Multiple Choice)
4.8/5
(26)
What will the following code display?
Int numbers[4] = {99, 87};
Cout << numbers[3] << endl;
(Multiple Choice)
4.9/5
(42)
A(n) __________ can be used to specify the starting values of an array.
(Multiple Choice)
4.9/5
(32)
By using the same ___________ you can build relationships between data stored in two or more arrays.
(Multiple Choice)
4.8/5
(32)
Although two-dimensional arrays are a novel idea, there is no known way to pass one to a function.
(True/False)
4.8/5
(35)
Which statement correctly defines a vector object for holding integers?
(Multiple Choice)
4.9/5
(35)
If an array is partially initialized, the uninitialized elements will be set to zero.
(True/False)
4.8/5
(34)
Unlike regular variables, __________ can hold multiple values.
(Multiple Choice)
4.9/5
(39)
This following statement shows an example of ___________. int grades][ ] = {100, 90, 99, 80};
(Multiple Choice)
5.0/5
(46)
When you pass an array as an argument to a function, the function can modify the contents of the array.
(True/False)
4.7/5
(28)
What will the following code display?
Int numbers[] = {99, 87, 66, 55, 101};
For (int i = 1; i < 4; i++)
Cout << numbers[i] << " ";
(Multiple Choice)
4.9/5
(33)
The range-based for loop in C++11 is designed to work with a built-in variable known as
(Multiple Choice)
4.7/5
(34)
What will the following code display?
Int numbers[] = {99, 87, 66, 55, 101};
Cout << numbers[3] << endl;
(Multiple Choice)
4.9/5
(26)
Showing 21 - 40 of 56
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)