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
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
(31)
What character will be in variable c after running this code?
Int x;
Char c;
Cin >> x;
Cin)getc);
(Multiple Choice)
4.9/5
(43)
Which function returns true if the character argument is a letter?
(Multiple Choice)
4.9/5
(45)
Which of the following is the correct way to close a file stream named outFile?
(Multiple Choice)
4.8/5
(32)
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.7/5
(37)
Which of the following is not used when using files for input and output
(Multiple Choice)
4.9/5
(34)
Two different objects of the same class have a different set of member functions.
(True/False)
4.9/5
(38)
Showing 41 - 52 of 52
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)