introduction to c++ programming

MCQsQuestion.com has 9 Question/Answers about Topic introduction to c++ programming

Unsigned integers in C++ are

Unsigned integers in C++ are
  • A. Negative numbers
  • B. Non-negative numbers
  • C. Float numbers
  • D. None of them
  • Correct Answer: Option B

symbol is used for

symbol is used for
  • A. New line
  • B. Return type
  • C. Used with Cout
  • D. None of them
  • Correct Answer: Option A

A variable is a symbol that represents

A variable is a symbol that represents
  • A. A number
  • B. A string
  • C. A storage location in computer's memory
  • D. Nothing
  • Correct Answer: Option C

In C++, semicolon is used as a

In C++, semicolon is used as a
  • A. Statement terminator
  • B. Newline symbol
  • C. Statement separator
  • D. None of them
  • Correct Answer: Option A

A program is made up of individual syntactic elements, called

A program is made up of individual syntactic elements, called
  • A. Classes
  • B. Functions
  • C. Tokens
  • D. None of them
  • Correct Answer: Option C

If value of an integer type exceeds their maximum or minimum limit, it is called

If value of an integer type exceeds their maximum or minimum limit, it is called
  • A. Underflow
  • B. Overflow
  • C. Bounded
  • D. None of them
  • Correct Answer: Option B

Post-increment operator is denoted by

Post-increment operator is denoted by
  • A. + +m
  • B. m + +
  • C. m − −
  • D. − − m
  • Correct Answer: Option B

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

Why preprocessing directives are used? e.g. #include

Why preprocessing directives are used? e.g. #include
  • A. It includes a header file.h into a source code
  • B. It includes declaration needed for input
  • C. It includes declaration needed for output
  • D. All of them
  • Correct Answer: Option D