Hey Guys , Welcome to CSE Study247, This page provides you with C++ Programming MCQs SET-2 which is useful for Semester and competitive exams.
Q.1 do while loop is called as ?
ANSWER= (B) Exit control
Q.2 Which of the following is logical AND Operator
ANSWER= (B) &&
Q.3 A pure virtual function is a virtual function that
ANSWER= (B) has no body
Q.4 Which of the following is a subcript operator ?
ANSWER= (C) [ ]
Q.5 A pointer is ?
ANSWER= (B) a variable for storing address
Q.6 Which of the following is address of opeartor ?
ANSWER= (D) &
Q.7 Which looping is best used when we known the number of iterations ?
ANSWER= (A) for loop
Q.8 Which of the following is scope resolution operator ?
ANSWER= (B) ::
Q.9 A relational operator
ANSWER= (B) Compares two operands
Q.10 The library function exit () cause an exit from
ANSWER= (A) Program in which it occurs
Q.11 goto is a——
ANSWER= (B) label
Q.12 What is the other name used for functions inside a class ?
ANSWER= (B) Member Function
Q.13 if else statement can be relaced by which operator ?
ANSWER= (B) Conditional operator
Q.14 Which of the following cannot be a friend ?
ANSWER= (C) Object
Q.15 How many types of polymorphism are there in C++
ANSWER= (B) 2
Q.16 How compile time polymorphism are implemented in C++
ANSWER= (B) using Templates
Q.17 Which members are inheritance but not accessible in any case ?
ANSWER= (A) Private
Q.18 Which of the following is C++ Equivalent for scanf() ?
ANSWER= (B) cin
Q.19 C++ use
ANSWER= (B) Bottom-up approach
Q.20 Which of the following class allows to declare only one object of it ?
ANSWER= (C) Singleton class