Exam 8: Arrays
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures Ii Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes44 Questions
Exam 13: Operator Overloading and Templates41 Questions
Exam 14: Exception Handling43 Questions
Exam 15: Recursion43 Questions
Exam 16: Linked Lists40 Questions
Exam 17: Stacks and Queue43 Questions
Exam 18: Searching and Sorting Algorithms40 Questions
Exam 19: Binary Trees43 Questions
Exam 20: Graph Algorithms48 Questions
Exam 21: Standard Template Library41 Questions
Select questions type
Which of the following correctly declares name to be a character array and stores "William" in it?
(Multiple Choice)
4.9/5
(76)
The ____________________ of an array is the address (that is, the memory location) of the first array component.
(Short Answer)
4.9/5
(78)
Consider the following statement: double alpha[10][5];.The number of components of alpha is ____.
(Multiple Choice)
4.8/5
(80)
Consider the following declaration: char str[15];.Which of the following statements stores "Blue Sky" into str?
(Multiple Choice)
4.9/5
(84)
A collection of a fixed number of elements (called components) arranged in n dimensions (n >= 1) is called a(n) ____.
(Multiple Choice)
5.0/5
(76)
In a(n) ____________________ data type, each data item is a collection of other data items.
(Short Answer)
4.8/5
(80)
Suppose that gamma is an array of 50 components of type int and j is an int variable.Which of the following for loops sets the index of gamma out of bounds?
(Multiple Choice)
4.9/5
(73)
Which of the following statements declares alpha to be an array of 25 components of the type int?
(Multiple Choice)
4.8/5
(78)
Suppose that list is an array of 10 components of type int.Which of the following codes correctly outputs all the elements of list?
(Multiple Choice)
4.9/5
(79)
In a two-dimensional array, the elements are arranged in a table form.
(True/False)
4.9/5
(89)
What is the value of alpha[2] after the following code executes? ![What is the value of alpha[2] after the following code executes?](https://storage.examlex.com/TB4785/11ea77fe_9b26_7a3f_bbd5_8fdd8f2c82c4_TB4785_00.jpg)
(Multiple Choice)
4.7/5
(81)
Given the following declaration:
which of the following correctly finds the sum of the elements of the fifth row of sale?
(Multiple Choice)
4.8/5
(72)
Given the declaration int list[20]; the statement list[12] = list[5] + list[7]; updates the content of the twelfth component of the array list.
(True/False)
4.9/5
(74)
The word ____________________ is used before the array declaration in a function heading to prevent the function from modifying the array.
(Short Answer)
4.9/5
(74)
Suppose that sales is an array of 50 components of type double.Which of the following correctly initializes the array sales?
(Multiple Choice)
4.8/5
(71)
When you pass an array as a parameter, the base address of the actual array is passed to the formal parameter.
(True/False)
4.7/5
(65)
After the following statements execute, what are the contents of matrix? 
(Multiple Choice)
4.9/5
(78)
Consider the following declaration: int alpha[5] = {3, 5, 7, 9, 11};.Which of the following is equivalent to this statement?
(Multiple Choice)
4.9/5
(74)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)