Exam 6: Io Streams As an Introduction to Objects and Classes
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
To open an output file and add to the end of the data already in the file you would write
Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
D
What is the output of the following code?
Char ch='G';
Cout << tolowerch) << endl;
Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
C
Data that is sent to an output stream representing a file will be immediately saved to disk.
Free
(True/False)
4.8/5
(35)
Correct Answer:
False
The member function eof) is true/false) when we are ready to read the end of file character.
(True/False)
4.9/5
(39)
After a stream is opened, before it is used for input and output, it should be
(Multiple Choice)
4.8/5
(45)
A function that is associated with an object is called a _________ function.
(Multiple Choice)
4.7/5
(37)
The _______ function puts one character back into the input stream.
(Short Answer)
4.8/5
(35)
Using directives can be placed either directly after the include directives, or at the beginning of each function definition.
(True/False)
4.9/5
(46)
In order to use the stream manipulators, you must include the ______ library
(Multiple Choice)
4.7/5
(35)
Which command reads one character even if that character is a blank space? ___________
(Short Answer)
4.9/5
(33)
The manipulator used to change the number of decimal places displayed is _________
(Short Answer)
4.8/5
(35)
You may use a read extraction) as a boolean expression in an if or while statement.
(True/False)
4.8/5
(37)
You may not have more than one input and one output stream open at any one time.
(True/False)
4.9/5
(31)
The flag to display floating point numbers in non-scientific notation is ios:: _________
(Short Answer)
4.9/5
(36)
If you use the width command, it stays in effect for all values that are send to the stream.
(True/False)
4.7/5
(35)
Showing 1 - 20 of 52
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)