Exam 7: Arrays
Exam 1: Introduction to Computers and Programming44 Questions
Exam 2: Introduction to C++56 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files62 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays53 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 10: Characters, C++-Strings, and More About the String Class42 Questions
Exam 11: Structured Data43 Questions
Exam 11: Structured Data50 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes46 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions38 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues46 Questions
Exam 19: Recursion21 Questions
Exam 20: Binary Trees38 Questions
Select questions type
An array can store a group of values, but the values must be
(Multiple Choice)
4.9/5
(84)
An individual array element can be processed like any other type of C++ variable.
(True/False)
4.9/5
(67)
What will the following code display? int numbers[] = {99, 87, 66, 55, 101 };
Cout << numbers[3] << endl;
(Multiple Choice)
4.8/5
(72)
The name of an array stores the __________ of the first array element.
(Multiple Choice)
4.8/5
(80)
If you attempt to store data past an array's boundaries, it is guaranteed that the compiler will issue an error.
(True/False)
4.8/5
(67)
A(n) ____________ can be used to specify the starting values of an array.
(Multiple Choice)
4.8/5
(72)
How many elements does the following array have? int bugs[1000];
(Multiple Choice)
4.9/5
(80)
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
(69)
The statement int grades[ ] = { 100, 90, 99, 80};
Shows an example of
(Multiple Choice)
4.8/5
(76)
If you leave out the size declarator in an array definition:
(Multiple Choice)
4.8/5
(79)
Given the following declaration, where is 77 stored in the scores array? int scores[]={83, 62, 77, 97};
(Multiple Choice)
4.8/5
(92)
To assign the contents of one array to another, you must use
(Multiple Choice)
4.9/5
(83)
The statement
double money[25.00];
is a valid C++ array definition.
(True/False)
4.9/5
(77)
An array of string objects that will hold 5 names would be declared using which statement?
(Multiple Choice)
4.9/5
(85)
Showing 21 - 40 of 53
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)