C++ Programming MCQs
1) ______________ are pieces of data that can be packaged and manipulated by the programmer.
A) Objects B) classes C) functions D) constructor
Correct Ans: Objects
2) C++ was designed to organize the raw power of C using ________________ concepts.
A) web page B) OOP C) data structure D) None of these
Correct Ans: OOP
3) __________ can be defined as maps or pictorial representations of a well
defined process.
A) Gantt Chart B) tree chart C)flow-charts D) structural chart
Correct Ans: flow-charts
4) _____________ parameters are the variables which receive the incoming parameters in
the function.
A) actual B) Formal C) local D)global
Correct Ans: Formal
5) __________ are passed to functions as reference parameters
A) Arrays B) function C) data types D) values
Correct Ans: Arrays
6) In _____________, each element of the array is compared with a search ‘key’.
A) parallel search B) bubble search C) linear search D) binary search
Correct Ans: linear search
7) The tag name of the structure is __________.
A) permanent B) temporary C) compulsary D)optional
Correct Ans: optional
8) A pointer that holds an _________ of a variable is called a pointer variable.
A) location B) value C) address D) array
Correct Ans: address
9) A class having no objects is known as an __________ Class.
A) private B) built-in C) public D)Abstract
Correct Ans: Abstract
10) ___________ is defined as bringing the data down to its essentials.
A) Data encapsulation B) Data Abstraction C) Data Hiding D) Data Analysis
Correct Ans: Data Abstraction
11) ______________ have the same name as that of the class they are initialized in.
A) Constructors B) function C) array D) variable
Correct Ans: Constructors
12) ______________ is the concept of creating a new class, from an already existing class
A) polymorphism B) Inheritance C) data hiding D) function overloading
Correct Ans: Inheritance
13) A ____________ means we can have two or more functions with the same name but different function signature in class.
A) function overloading B) overload resolution C) array overloading D) none of these
Correct Ans: function overloading
14) _____________ occurs when there is a hierarchy of classes and they are related by inheritance.
A) inheritance B) object C) encapsulation D)polymorphism
Correct Ans: polymorphism
15) Data abstraction is a programming (and design) technique that relies on the separation of _____________ and implementation.
A) interface B) package C) class D) structure
Correct Ans: interface
16) Data encapsulation led to the important OOP concept of ____________.
A) data hiding B) data Analysis C) data abstraction D) data loading
Correct Ans: data hiding
17) A class is made abstract by declaring at least one of its functions as pure ________ function.
A) static B) dynamic C) virtual D) formal
Correct Ans: virtual
18) _________ provide a way to transfer control from one part of a program to another.
A) class B) Exceptions C) templates D)processor
Correct Ans: Exceptions
19) ___________ is unused memory of the program and can be used to allocate the memory dynamically when program runs.
A) heap B) stack C) hash D) array
Correct Ans: heap
20) A ___________ program contains two or more parts that can run concurrently.
A) Web B) signal handling C) multithreaded D) exception handling
Correct Ans: multithreaded
Comments
Post a Comment