C++ Programming MCQs SET-1

Hey Guys Welcome to CSE Study247, This page provides you 20 Basic C++ Programming MCQs SET-1 which is useful for Semester and competitive exams.

Q.1 Who is the developer of the C++ programming language?

  • A) Dennis Ritchie
  • B) Charles Babbage
  • C) Bjarne Stroustrup
  • D) None

Q.2 In which year was C++ developed?

  • A) 1972
  • B) 1978
  • C) 1979
  • D) 1996

Q.3 Which of the following are good reasons to use an object-oriented language?

  • A) We can define our own data types
  • B) Program statements are simpler than in procedural language
  • C) OOP can be taught to correct its own errors
  • D) None

Q.4 What was the name of C++ earlier?

  • A) C with classes
  • B) C++
  • C) CPP
  • D) None

Q.5 Which of the following is NOT a character constant?

  • A) CSE Study
  • B) Enter value of A,B,C
  • C) '24.56e-04'
  • D) All of these

Q.6 The expression a=7/22*(3.14+2)*3/5; is equal to:

  • B) 5.35
  • C) 3.14
  • D) 8.25

Q.7 C++ is a _____ language?

  • A) Object oriented Programming Language
  • B) Semi-Object oriented Programming Language
  • C) Procedural Oriented Programming
  • D) None

Q.8 When a language has the capability to produce new data types, it is known as?

  • A) Extensible
  • B) Encapsulation
  • C) Reprehensible
  • D) None

Q.9 Which of the following loops is faster?

  • A) for
  • B) while
  • C) do while
  • D) All work at the same speed

Q.10 What is the size of the int data type in C++?

  • A) 1 Byte
  • B) 2 Byte
  • C) 3 Byte
  • D) Depends on compiler

”Q.11

  • C) ”{}”
  • D) ”[
” correct=”b” ans=”The extraction operator (>>) is used with the ‘cin’ object to read data from the standard input device.”]

”Q.12

  • A) ”float
” b=”float (*a)[9]” c=”float*a[9]” d=”None” correct=”b” ans=”The syntax ‘float (*a)[9]’ declares a single pointer that points to an entire array of 9 floating-point numbers.”]

Q.13 Which type of language is C++?

  • A) Statically typed language
  • B) Dynamic typed language
  • C) Procedural
  • D) None

Q.14 Which type of language is C++?

  • A) Low level
  • B) High level
  • C) Middle level
  • D) None

Q.15 How many types of constructors are in C++?

  • A) 1
  • B) 2
  • C) 3
  • D) None

Q.16 A C++ stream is:

  • A) Flow of control through a function
  • B) A flow of data from one place to another
  • C) A File
  • D) None

Q.17 A C++ class holds:

  • A) Data
  • B) Function
  • C) Both A & B
  • D) None

Q.18 Which of the following symbols is used to denote a pre-processor?

  • A) *
  • B) #
  • C) @
  • D) %

Q.19 A C++ statement ends with a:

  • A) '
  • B) :
  • C) ;
  • D) ?

Q.20 Function Overriding is an example of?

  • A) Compile time polymorphism
  • B) Runtime Polymorphism
  • C) Both A & B
  • D) None

Some Important Link

1. Official TelegramClick Here
2. Telegram For CSE MCQsClick Here
3. You TubeClick Here

Scroll to Top