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
With C++11 and higher what data type can you use to guarantee that 32 bits will be used to store a signed integer?
Free
(Essay)
4.7/5
(31)
Correct Answer:
The type int32_t will allocate 32 bits for an integer.The size of a regular int may vary (e.g.16,32,or 64 bits)depending upon the underlying machine architecture.
In the history of the C++ language,what was the immediate predecessor of the C++ language? How is this older language related to C++?
Free
(Essay)
4.8/5
(31)
Correct Answer:
The immediate predecessor of C++ is the C programming language.C is very nearly a proper subset of C++.
The C++ very nearly contains the ______ programming language as proper subset.
Free
(Short Answer)
4.9/5
(34)
Correct Answer:
(the)C (programming language)
Which of the following will properly encode the string "\w\\\t" into variable s?
(Multiple Choice)
4.9/5
(44)
Comments have no value whatsoever and do not belong in a program.
(True/False)
4.8/5
(29)
In C++ you can assign an expression of type double to a variable of type int with no problem.
(True/False)
4.9/5
(41)
Identifiers should at least give a hint to the human reader of the ________________ of the identifier in the context of the problem being solved.
(Short Answer)
4.8/5
(33)
To put a character into a cstring constant that causes the output to continue on the next line,insert the escape sequence \t into the string constant.
(True/False)
4.7/5
(34)
A computer program is a set of instructions intended for only the computer to follow.
(True/False)
4.9/5
(37)
Give the declaration for two variables,feet and inches.Declare each to be of type int,and both initialized to zero in the declaration.Give both initialization alternatives.
(Essay)
4.7/5
(30)
C++ not only supports OOP but also supports other programming styles.
(True/False)
4.8/5
(39)
What is the difference between a warning from the compiler and an error message from the compiler?
(Essay)
4.8/5
(43)
A C++ declaration introduces only an identifier's spelling and specifies its type.
(True/False)
5.0/5
(41)
Write a C++ program that outputs "My first C++ program" and then outputs a carriage return.
(Essay)
4.9/5
(39)
The range of values for an int variable is from about 0 to +2 billion.
(True/False)
4.7/5
(33)
In C++ you can assign an expression of type int to a variable of type double with no problem.
(True/False)
4.8/5
(31)
Write a short program that contains statements to output the values of a variable that you define but neither initialize nor assign.Discuss the output you get.
(Essay)
4.8/5
(36)
In C++ the compiler will infer the type intended for a variable from the context in which the variable occurs.
(True/False)
4.8/5
(38)
Showing 1 - 20 of 37
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)