adplus-dvertising
frame-decoration

Question

Which member function is used to determine whether the stream object is currently associated with a file?

a.

is_open

b.

buf

c.

string

d.

none of the mentioned

Answer: (a).is_open

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which member function is used to determine whether the stream object is currently associated with a file?

Similar Questions

Discover Related MCQs

Q. Which header file is used for reading and writing to a file?

Q. Which one is always faster in writing on C++?

Q. How many tests are available in read and write operations?

Q. What will act as a intermediate between i/o operations and physical file?

Q. By using which function does the buffer are automatically flushed?

Q. How many parameters are available in the function setbuf?

Q. What is the main feature of locale in C++?

Q. Which objects information is loaded in locale object?

Q. How many categories are available in facets?

Q. What kind of locale does every program is having in C++?

Q. What will the monetary facet will do?

Q. Which header file is used with input and output operations of C in C++?

Q. Which will be used with physical devices to interact from C++ program?

Q. How many streams are automatically created when executing a program?

Q. How many indicators are available in c++?

Q. What is the benefit of c++ input and output over c input and output?

Q. To which type does the numeric limits are suitable?

Q. Where does the member should be defined if it is used in the program?

Q. What will the max function in the numeric limit will return for type float?

Q. Which header file is used for the numeric limits in C++?