1. Home
  2. CPET
  3. Computer Science

Filters

Found 2 Questions

Set Default
Exams
Years
Subjects
Topics

List of top Computer Science Questions on file handling asked in CPET

What will the following C++ program do?

#include <iostream>
#include <fstream>
using namespace std;
int main() {
 ofstream file("example.txt", ios::app);
  file << "Hello ";
  file.close();
  return 0;
}
  • CPET - 2025
  • CPET
  • Computer Science
  • file handling
What will happen if you do not call fclose(fp), after opening a file in C?
  • CPET - 2025
  • CPET
  • Computer Science
  • file handling
contact us
terms & conditions
Privacy & Policy
© 2026 Patronum Web Private Limited