Home / MCQ Bank / Computer
Computer File Handling In C Plus Plus Difficulty: Medium

How do you check if a file exists in C++ before opening it?

Select the correct option to test your answer:

More Computer Questions

What does the advance method do for a Date object in Ruby? The PowerPoint view that displays only text (title and bullets) is_____________? Which is not true about function tolower? What will be the output of the following C++ code? #include <iostream> using namespace std; class student { public: int rno , m1 , m2 ; void get() { rno = 15, m1 = 10, m2 = 10; } }; class sports { public: int sm; void getsm() { sm = 10; } }; class statement:public student,public sports { int tot,avg; public: void display() { tot = (m1 + m2 + sm); avg = tot / 3; cout << tot; cout << avg; } }; int main() { statement obj; obj.get(); obj.getsm(); obj.display(); } Which of the following is used to align pager buttons to the left side of the page?