Exam 6: Io Streams As an Introduction to Objects and Classes
Exam 1: Introduction to Computer and C Programming55 Questions
Exam 2: C++ Basics54 Questions
Exam 3: More Flow of Control44 Questions
Exam 4: Procedural Abstraction and Functions That Return a Value51 Questions
Exam 5: Functions for All Sub Tasks53 Questions
Exam 6: Io Streams As an Introduction to Objects and Classes51 Questions
Exam 7: Arrays34 Questions
Exam 8: Strings and Vectors63 Questions
Exam 9: Pointers and Dynamic Arrays40 Questions
Exam 10: Defining Classes50 Questions
Exam 11: Friends, overloaded Operators, and Arrays in Classes49 Questions
Exam 12: Separate Compilation and Namespaces38 Questions
Exam 13: Pointers and Linked Lists51 Questions
Exam 14: Recursion43 Questions
Exam 15: Inheritance53 Questions
Exam 16: Exception Handling47 Questions
Exam 17: Templates33 Questions
Exam 18: Standard Template Library57 Questions
Select questions type
To open a file with a user supplied name,you would need to store the name in a variable.If the file name was to have no more than 20 characters in it,which would be an appropriate declaration of the file name variable?
(Multiple Choice)
4.9/5
(31)
You may use a read extraction)as a boolean expression in an if or while statement.
(True/False)
4.7/5
(52)
Which function returns true if the character argument is a letter?
(Multiple Choice)
4.9/5
(39)
The manipulator used to change the number of decimal places displayed is _________
(Short Answer)
4.8/5
(40)
Data that is sent to an output stream representing a file will be immediately saved to disk.
(True/False)
4.9/5
(35)
What is the output of the following code?
Char ch='G';
Cout << tolowerch)<< endl;
(Multiple Choice)
4.8/5
(35)
If you use the width command,it stays in effect for all values that are send to the stream.
(True/False)
4.8/5
(36)
The _______ function puts one character back into the input stream.
(Short Answer)
4.9/5
(42)
In the following function declaration,the istream object cin is called a ___________________.
void outputistream& in=cin);
(Short Answer)
4.7/5
(30)
Which of the following is the correct way to close a file stream named outFile?
(Multiple Choice)
4.8/5
(36)
What is wrong with the following code?
While ! fileIn.eof))
{
FileIn >> value;
FileOut << value;
}
(Multiple Choice)
4.9/5
(39)
Showing 41 - 51 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)