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
The flag to display floating point numbers in non-scientific notation is ios:: _________
(Short Answer)
4.9/5
(42)
A __________ is a variable that has functions as well as data associated with it.
(Multiple Choice)
4.9/5
(38)
Using directives can be placed either directly after the include directives,or at the beginning of each function definition.
(True/False)
4.8/5
(33)
If the user types in the characters 10,and your program reads them into an integer variable,what is the value stored into that integer?
(Multiple Choice)
4.8/5
(38)
open is a __________ function of the ofstream and ifstream class.
(Short Answer)
4.7/5
(36)
In order to use the stream manipulators,you must include the ______ library
(Multiple Choice)
4.8/5
(35)
Which of the following loop condition statements will read all the data in the file assuming that each record in the file is two integer values,and you will read the first one into a variable named intOne,and the other into intTwo?
(Multiple Choice)
4.8/5
(38)
We have a file that has a name in it,but the name is written one character per line.We need to write this name to the screen.What is wrong with the following code?
Ifstream fileIn;
FileIn.open"file.txt");
Char ch;
FileIn.getch)
While!fileIn.eof))
{
Cout.putch);
FileIn.getch);
}
(Multiple Choice)
4.8/5
(36)
The formatting options that were discussed for cout do not work for output file streams.
(True/False)
4.8/5
(40)
Which statement correctly opens an input stream named in_file and attaches it to a file name project.txt?
(Multiple Choice)
4.9/5
(35)
To open an output file and add to the end of the data already in the file you would write
(Multiple Choice)
4.8/5
(32)
You must use a width statement before each variable that you want output in a certain width
(True/False)
4.8/5
(36)
If the name of the input file was in a variable named filename,which of the following is the correct way to open the input stream named inFile and associate it with this file?
(Multiple Choice)
4.7/5
(37)
Showing 21 - 40 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)