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
Q4: To use the manipulator setprecision,the program must
Q4: The function _ returns the next character
Q12: Suppose that x is an int variable,y
Q16: C++ provides a header file called _,
Q20: C++ has a special name for the
Q25: cin is called a(n)_ object.
Q27: Suppose that ch1 and ch2 are char
Q31: Suppose that alpha,beta,and gamma are int variables
Q34: The stream function _ lets you put
Q44: Suppose that x = 25.67,y = 356.876,and