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
Related Questions
Q7: Suppose that x is an int variable,
Q8: Suppose that x and y are int
Q10: Suppose that ch1, ch2, and ch3 are
Q22: Suppose that ch1 and ch2 are char
Q23: Suppose that ch1 and ch2 are char
Q24: In an output statement, each occurrence of
Q26: Suppose that x = 25.67, y =
Q28: Suppose that x = 1565.683, y =
Q30: _ is a parameterized stream manipulator.<br>A) endl<br>B)
Q39: Entering a char value into an int