c++ coding

mcqspedia.com has 5 Question/Answers about Topic c++ coding

Main ( ) body of a program is enclosed in which kind of braces?

Main ( ) body of a program is enclosed in which kind of braces?
  • A. { }
  • B. [ ]
  • C. ( )
  • D. None of them
  • Correct Answer: Option A

Main ( ) function in header of a program indicates what

Main ( ) function in header of a program indicates what
  • A. It tells compiler that where program begins
  • B. It tells compiler that it
  • C. It tells compiler that a comment is in code
  • D. It indicates nothing
  • Correct Answer: Option A

Standard input and output library of C++ is

Standard input and output library of C++ is
  • A. stdio.h
  • B. istream.h
  • C. iostream.h
  • D. conio.h
  • Correct Answer: Option C

Main ( ) function must be declared

Main ( ) function must be declared
  • A. As a non-member function
  • B. In global namespace
  • C. At end of a program
  • D. Both A and B
  • Correct Answer: Option D

Comments are included in programs to provide explanations for human readers, and it is denoted by

Comments are included in programs to provide explanations for human readers, and it is denoted by
  • A. /
  • B. / /
  • C. *
  • D. * *
  • Correct Answer: Option B