Exam 8: Strings and Vectors
Exam 1: Introduction to Computer and C++ Programming56 Questions
Exam 2: C++ Basics57 Questions
Exam 3: More Flow of Control45 Questions
Exam 4: Procedural Abstraction and Functions That Return a Value53 Questions
Exam 5: Functions for All Sub Tasks54 Questions
Exam 6: Io Streams As an Introduction to Objects and Classes52 Questions
Exam 7: Arrays48 Questions
Exam 8: Strings and Vectors69 Questions
Exam 9: Pointers and Dynamic Arrays39 Questions
Exam 10: Defining Classes61 Questions
Exam 11: Friends, Overloaded Operators, and Arrays in Classes56 Questions
Exam 12: Separate Compilation and Namespaces41 Questions
Exam 13: Pointers and Linked Lists64 Questions
Exam 14: Recursion48 Questions
Exam 15: Inheritance53 Questions
Exam 16: Exception Handling47 Questions
Exam 17: Templates35 Questions
Exam 18: Standard Template Library59 Questions
Select questions type
The following declares a c-string variable that will hold 10 letters.
char str[10];
(True/False)
5.0/5
(35)
To change the size of a vector, one uses the ______________ member function.
(Short Answer)
4.9/5
(32)
Using the == operator on a string variable results in the same value as using strcmp on two c-strings.
(True/False)
4.8/5
(41)
The following code declares a vector of characters.
vector characters<char>
(True/False)
4.8/5
(37)
The c-string to number conversion functions are in the _________ library.
(Short Answer)
4.8/5
(33)
The following declares a c-string and initializes it to "speaker"
char str[]="speaker";
(True/False)
4.9/5
(39)
The ________ class lets you treat string values and variables like other pre-defined data types such as int).
(Short Answer)
5.0/5
(30)
____________ can be thought of as an array that can grow and shrink as needed.
(Short Answer)
4.8/5
(42)
Showing 61 - 69 of 69
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)