Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types
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
The string expression strVar.____________________ starts at index pos, replaces the next n characters of strVar with all the characters of str.
(Short Answer)
4.8/5
(31)
The following is a valid C++ enumeration type:enum places {1ST, 2ND, 3RD, 4TH};.
(True/False)
4.8/5
(29)
What is the output of the following code? enum courses {ALGEBRA, BASIC, PASCAL, PHILOSOPHY, ANALYSIS};
Courses registered;
Registered = ALGEBRA;
Cout << registered << endl;
(Multiple Choice)
4.9/5
(34)
The string expression strVar.____________________ inserts all the characters of str at index pos into strVar.
(Short Answer)
4.8/5
(28)
The identifiers in the system-provided header files such as iostream, cmath, and iomanip are defined in the namespace ____.
(Multiple Choice)
4.7/5
(32)
Consider the following statements:string str1 = "ABCDEFGHIJKLM"; string str2;
After the statement str2 = str1.substr(1,4); executes, the value of str2 is "____".
(Multiple Choice)
4.8/5
(32)
Consider the following statements:string str1 = "Gone with the wind"; string str2;
After the statement str2 = str1.substr(5,4); executes, the value of str2 is "____".
(Multiple Choice)
4.8/5
(37)
In ANSI/ISO Standard C++, the ____________________ mechanism was designed to solve the problem of overlapping global identifiers.
(Short Answer)
4.8/5
(34)
Given the following code namespace globalType
{
Void printResult();
}
Which of the following statements is needed to access printResult?
(Multiple Choice)
4.7/5
(41)
In C++, you can create aliases to a previously defined data type by using the ____ statement.
(Multiple Choice)
4.8/5
(37)
Suppose that str1, str2, and str3 are string variables.After the following statements execute, the value of str3 is "____". 

(Multiple Choice)
4.8/5
(39)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)