Exam 8: Arrays and Strings
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C50 Questions
Exam 3: Inputoutput50 Questions
Exam 4: Control Structures I Selection50 Questions
Exam 5: Control Structures II Repetition50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the String Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records Structs50 Questions
Exam 10: Classes and Data Abstraction49 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Searching, Sorting and the Vector Type50 Questions
Exam 17: Linked Lists50 Questions
Exam 18: Stacks and Queues50 Questions
Select questions type
The header file string contains the function ____________________,which converts a value of type string to a null-terminated character array.
(Short Answer)
4.8/5
(35)
The function ____________________ returns the length of the string s, excluding the null character.
(Short Answer)
4.8/5
(43)
The ____________________ of an array is the address (that is, the memory location) of the first array component.
(Short Answer)
4.9/5
(33)
The one place where C++ allows aggregate operations on arrays is the input and output of C-strings.
(True/False)
4.9/5
(32)
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
(37)
The statement strlen("Marylin Stewart"); returns ____________________.
(Short Answer)
4.7/5
(37)
A collection of a fixed number of elements (called components) arranged in n dimensions (n>=1) is called a(n) ____.
(Multiple Choice)
4.8/5
(34)
When you pass an array as a parameter, the base address of the actual array is passed to the formal parameter.
(True/False)
4.9/5
(33)
Complete the following statement so that it outputs the array sales.
double sales[10];
int index;
for (index = 0; index < 10; index++)
cout << ____________________ << " ";
(Short Answer)
4.9/5
(40)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)