Exam 7: User-Defined Simple Data Types, Namespaces, and the string Type
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Input/Output50 Questions
Exam 4: Control Structures I (Selection)50 Questions
Exam 5: Control Structures II (Repetition)50 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 (structs)50 Questions
Exam 10: Classes and Data Abstraction50 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Linked Lists50 Questions
Exam 17: Stacks and Queues50 Questions
Exam 18: Searching and Sorting Algorithms50 Questions
Exam 19: Binary Trees50 Questions
Exam 20: Graphs50 Questions
Exam 21: Standard Template Library (STL)50 Questions
Select questions type
The values in the domain of an enumeration type are called ____________________.
(Short Answer)
4.7/5
(32)
Consider the following statements: string str = "ABCDEFD";
String::size_type position;
After the statement position = str.find('D'); executes,the value of position is ____.
(Multiple Choice)
4.7/5
(31)
Which of the following statements declares the studentGrade variable?
(Multiple Choice)
4.8/5
(34)
Suppose str = "ABCDEFG".The output of the statement
cout << str.length()<< endl;
is ____________________.
(Short Answer)
4.8/5
(39)
Given the following code namespace globalType
{
Void printResult();
}
Which of the following statements is needed to access printResult?
(Multiple Choice)
4.9/5
(29)
Considering the statement string str = "Gone with the wind";,the output of the statement cout << str.find("the")<< endl; is ____.
(Multiple Choice)
4.9/5
(43)
Suppose str = "abcd"; After the statement str[1] = 'A'; The value of str is "____________________".
(Short Answer)
5.0/5
(37)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)