Multiple Choice
Consider the following program segment. 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
Q29: Suppose that alpha is an int variable
Q30: _ is a parameterized stream manipulator.<br>A) endl<br>B)
Q31: It is a good idea to redefine
Q32: Suppose that ch1, ch2, and ch3 are
Q33: Suppose that x and y are int
Q35: Suppose that x is an int variable,
Q36: What is the output of the following
Q37: The number of input data extracted by
Q38: Suppose that outFile is an ofstream variable
Q39: Entering a char value into an int