Exam 1: C++ Basics
Exam 1: C++ Basics37 Questions
Exam 2: Flow of Control33 Questions
Exam 3: Function Basics30 Questions
Exam 4: Parameters and Overloading31 Questions
Exam 5: Arrays32 Questions
Exam 6: Structures and Classes37 Questions
Exam 7: Constructors and Other Tools32 Questions
Exam 8: Operator Overloading,friends,and References31 Questions
Exam 9: Strings37 Questions
Exam 10: Pointers and Dynamic Arrays29 Questions
Exam 11: Separate Compilation and Namespaces35 Questions
Exam 12: Streams and File IO43 Questions
Exam 13: Recursion40 Questions
Exam 14: Inheritance30 Questions
Exam 15: Polymorphism and Virtual Functions34 Questions
Exam 16: Templates27 Questions
Exam 17: Linked Data Structures30 Questions
Exam 18: Exception Handling29 Questions
Exam 19: Standard Template Library46 Questions
Exam 20: Patterns and Uml22 Questions
Select questions type
When you use a double,what is doubled? When you use a long int,how much longer is the long int than an int? Comment.
(Essay)
4.8/5
(38)
Given the C++ output statements.What is the output of these lines of code? Explain.
cout << "If you have ";
cout << "a number of pods ";
cout << "you can quit.";
cout << "\n";
(Essay)
4.8/5
(36)
If we execute the code fragment in an otherwise complete,correct program:
n = 1;
cout << n++ << " " << n++ << " " << n++ << endl;
the output is guaranteed to be 1 2 3.
(True/False)
4.8/5
(29)
The names x,y,and z are satisfactory variable names for the lengths of the legs and hypotenuse of a triangle.
(True/False)
4.9/5
(36)
What is the value assigned to the variable in each of these cases? Explain curious results.Be careful!
int x,y;
a)x = 1/2;
b)y = 3.0/2.0;
double z,w,t;
c)z = 1/2;
d)w = 3/2;
e)t = 3.0/2.0;
(Essay)
4.8/5
(35)
The namespace facility is a tool used that assists in the study of genealogy.
(True/False)
4.9/5
(31)
The most difficult programming language construct to learn to use properly is the comment.
(True/False)
4.7/5
(41)
Which of the following are likely to be poor choices for an identifier in a program? Why?
a)x
b)RATE
c)data
d)_abc
e)A
(Essay)
4.8/5
(34)
A program's comments should connect the program code to the problem being solved.
(True/False)
4.8/5
(30)
If we execute this code in an otherwise correct and complete program:
n = 1;
n = (n++)+ (n++);
the value of n is guaranteed to be 3 after the second line executes.
(True/False)
4.9/5
(38)
What is the data type of variable x in the following C++11 code: int y= 2;
Double z = 3.5;
Auto x = z * y;
(Multiple Choice)
4.7/5
(38)
A C++ declaration is a definition that also allocates storage for an identifier's value (or function's body etc. ).
(True/False)
4.9/5
(40)
In C++ the variables Alpha,ALPHA and AlphA are the same identifier.
(True/False)
4.8/5
(37)
In C++,a legal identifiers may contain these kinds of characters _______________,______________,______________
(Short Answer)
4.8/5
(36)
Showing 21 - 37 of 37
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)