Paper Tayyari

Lecture 29: File Handling Tips for Java & C++

MCQs, short and long questions from lecture 29.Lecture 29 ki MCQs, short aur long sawal.

4 MCQs · 1 short · 1 long question · 4 MCQs from past papers4 MCQs · 1 short · 1 long sawal · 4 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/4
– correctsahi
1.
★ Final term Spring 2010

Source files can have the extension ---------------------

  1. Ac++ .
  2. B.C
  3. C.cpp
  4. Dall of the given

C++ source files may use .c++, .C or .cpp extensions.

2.
★ Final term Spring 2010

Classes should be declared in individual header files with the file name matching the ---------- name.

  1. Aclass
  2. Bmethod
  3. Cobject
  4. Dnon of the all

Each class goes in its own header file named after the class.

3.
★ VU quiz

In case of header files, construction is to avoid ------ errors. The construction should appear in the top of the file (before the file header).

  1. Acompilation
  2. Brun time
  3. Clogical
  4. DAll of the given

Include guards stop multiple inclusion, which would cause compilation errors.

4.
★ VU quiz

C++ header files should have the extension---- Source files can have the extension ----

  1. A.c and .h
  2. B.cc and .h
  3. C.h and .cpp
  4. DAll of the given

C++ headers use .h and source files .cpp (or .c++).