Multiple Choice
Consider the following program segment.
Ifstream inFile; //Line 1
Int x,y; //Line 2
... //Line 3
InFile >> x >> y; //Line 4
Which of the following statements at Line 3 can be used to open the file progdata.dat and input data from this file into x and y at Line 4?
A) inFile.open("progdata.dat") ;
B) inFile(open,"progdata.dat") ;
C) open.inFile("progdata.dat") ;
D) open(inFile,"progdata.dat") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q2: The following statements will result in input
Q27: Suppose that ch1 and ch2 are char
Q28: Manipulators without parameters are part of the
Q39: Entering a char value into an int
Q40: C++ comes with a wealth of functions,
Q41: Suppose that ch1 and ch2 are char
Q43: Suppose that x is an int variable
Q44: Suppose that x = 25.67,y = 356.876,and
Q47: Suppose that ch1,ch2,and ch3 are variables of
Q50: Suppose that x is an int variable,ch