Tag Archive: C & CPP

Solved Multiple Choice Questions On C++ Set-4

This set of multiple choice questions on principles of object oriented programming in C++ includes MCQ questions on input and output operator, variables, statements, C++ objects, class, inheritance and polymorphism. It also includes objective questions about header files listed in C++ standard library and their uses. 1. In C++ ………………… operator is used for Dynamic memory allocation. A) Scope resolution B) Conditional C) New D) Membership access 2. Operators such as …………………. cannot be overloaded. A) + B) ++ C) : :…
Read more

MCQ Questions of C++ With Answers Set-3

This set of multiple choice questions on fundamental of object oriented programming in C++ includes MCQ questions on C++ functions, operator overloading, keywords, encapsulation, inheritance and polymorphism.It also includes about static and dynamic binding along with major features that are required for object based programming. 1. When a function is defined inside a class, this function is called …………. A) Inside function B) Class function C) Inline function D) Interior function 2. Which of the following cannot be passed to…
Read more

MCQ Questions On C++ With Answer Set-2

Here are the collections of top 20 multiple choice questions on fundamental of object oriented programming in C++, includes MCQ question on C++ operators, functions and their types along with their characteristics, classes and objects, constructors and distructors used in C++. It also inlcludes about operator overloading, encapsulation, inheritance and polymorphism. 1. The ……………. Operator is known as insertion operator. A) >> B) > C) << D) < 2. State True or False. i) A satic function can have access…
Read more

Solved MCQ Questions On C++ Set-1

Here are the collections of solved multiple choice questions on fundamental of object oriented programming in C++, includes MCQ question on history of C++ language, C++ keywords and operators along with inline expressions and control structors. It also includes about procedure oriented programming along with object oriented programming. 1. C++ is an extension of C with a major addition of the class construct feature of …………….. A) Simula67 B) Simula57 C) Simula47 D) Simula87 2. C++ has the name ……………………..
Read more

MCQ On Polymorphism Pointer & Virtual Function In C++

This set of multiple choice questions includes collection of top 20 MCQ questions on run time polymorphism, compile time polymorphism, pointers and their types, void pointers, null pointers, object pointer, this pointer along with pointer expressions and pointer arithmetic. It also includes about virtual functions, pure virtual functions with their properties.    1. In compile time polymorphism, compiler is able to select the appropriate function for a particular call at the compile time itself, which is known as ………… A)…
Read more

Top 20 MCQ Questions On Inheritance In C++

Here are the collections of top 20 multiple choice questions on inheritance in C++ includes MCQ questions about inheritance and their types, single inheritance, multiple inheritance, multilevel inheritance, hierarchical inheritance along with base and derived classes. It also includes about constructors in derived classes and virtual base classes. 1. The ……………. inherits some or all of the properties of the ……….. class. A) base, derived B) derived, base C) derived, initial D) base, final 2. A derived class with only…
Read more

Multiple Choice Questions On C++ Operator Overloading

Here are the collections of multiple choice questions on C++ operator overloading, which includes MCQ questions on C++ operators that can overload with providing special meaning to an operator along with the operators that can not be overloaded. It also includes about different steps involved in the process of overloading, overloading unary and binary operators, the different rules for overloading operators along with different methods of type conversions in C++. 1) We can overload which of the following C++ operators….
Read more

Top 20 MCQ On Constructors And Destructors In C++

This set of multiple choice questions on C++ constructors and destructors includes collection of top 20 MCQ questions about special characteristics of constructor, about different types of constructors; parameterized constructors, default constructor, copy constructor, implicit constructor and default argument constructor. It also includes about dynamic initialization of objects, dynamic constructors and destructors.    1. C++ provides a special ………………… called the constructor, which enables an object to initialize itself when it is created. A) friend function B) member function C)…
Read more

Top 20 MCQ Questions On C++ Classes And Objects

This set of multiple choice questions on C++ classes and objects includes MCQ questions about different ways of specifying a class and creating objects, defining and nesting of member function, private, static and constant member function. It also includes about static data members and methods of using objects as function arguments. 1. In C++, the declaration of functions and variables are collectively called ……. A) class members B) function members C) object members D) member variables 2. The keywords private…
Read more

MCQ On C++ Tokens Expressions And Control Sturcture Part-2

Here are the collections of top 20 multiple choice questions on C++ tokens, expressions and control structure includes MCQ on different types of operators, scope resolution operator, member dereferencing operators and memory management operators along with C++ manipulators and type cast operators. It also includes about type cast operator and their types and control structures. 1. In C++, we can give several meanings to an operator, depending upon the types of arguments used, which was known as ………….. A) Operator…
Read more