Question Detail Which is correct syntax ? myfile:open ("example.bin", ios::out);myfile.open ("example.bin", ios::out);myfile::open ("example.bin", ios::out);myfile.open ("example.bin", ios:out); Answer: Option B Similar Questions : 1. Which stream class is to only read from files ? ofstreamifstreamfstreamiostream Answer: Option B 2. offset counted from the current position using ? ios::currios::crios::curios::current Answer: Option C 3. Which functions allow to change the location of the get and put positions ? sg() and sp()sekg() and sekp()gog() and gop()seekg() and seekp() Answer: Option D 4. eof() is used to get easy code reivewend of filedebug reportfile close Answer: Option B 5. ios::trunc is used for ? If the file is opened for output operations and it already existed, no action is taken.If the file is opened for output operations and it already existed, its previous content is deleted and replaced by the new one.If the file is opened for output operations and it already existed, then a new copy is created.None of above Answer: Option B Read more from - C++ File Handling Questions Answers