300 C++ Programming Multiple Choice Questions and Answers
300 C++ Programming Multiple Choice Questions and Answers
HOME Interview Questions MCQs Class Notes *LAB VIVA SEMINAR TOPICS
ONLINE TEST GATE CAT Internship ABOUT US
a. const X* const
b. X* const
c. X*
d. X&
a. Storage
b. Virtual
c. Friend
d. Wrapper
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 1/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
a. float
b. string
c. int
d. wchar_t
a. int ~Country()
b. void Country()
d. void ~Country()
d. Type-less language
a. abstract
b. Virtual
c. Dynamic
d. Typeid
d. Throw the pointer value and provide catch for the pointer type.
C++ MCQs
b. Class definitions
c. Function definitions
d. Template definitions
a. std::vector
b. std::list
c. std::map
d. std::set
a. std::bad_creat
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 5/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
b. std::bad_alloc
c. std::bad_cast
d. std::bad_typeid
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 6/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
a. Explicit
b. Public
c. Implicit
d. Private
a. enumeration
b. iteration
c. culmination
d. pass through
b. It is an area into which data records are written
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 8/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
33. An inverted file
a. Locates information about data in small files that are maintained
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 9/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
Free C
Exten
36. The two types of file structure existing in VSAM file are
a. Key sequenced structure, entry sequenced structure
b. Key sequence structure, exit sequenced structure
c. Entry sequence structure, exit sequenced structure
d. None of above
b. A copy is created only when at least one object is created from that
class
c. A copy of the static member is created for each
instntiation of the class
d. No memory is allocated for static members of a class
in a program to avoid name clashes
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 11/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
Sider
a. i = i + i;
b. i = i + 1;
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 13/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
c. i = i – 1;
d. i –;
d. Dynamic variable inside class
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 14/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
55. Value of ix+j, if i,j are integer type and ix long type
would be
a. integer
b. float
c. long integer
d. double percision
58. Vtables
a. creates a static table per class
b. creates a static table per object
c. creates a dynamic table per class
d. creates a dynamic table per object
b. catch(std::any_exception)
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 15/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
c. catch(…)
d. catch()
too.
b. A shallow copy just copies the values of the data as they
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 16/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
are.
c. A shallow copy creates a copy of the statically allocated objects too
d. Both b and c above
d. both a and b
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 17/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
iterations is known?
a. for
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 18/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
b. while
c. do-while
d. all looping processes require that the iterations be known
79. What is the benefit of c++ input and output over c input and
output?
a. Both Type safety & Exception
b. Sequence container
c. Exception
d. Type safety
c. ‘Myself’ pointer
d. ‘this’ pointer
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 19/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
a. ::
b. ?
c. 😕
d. %
a. Global variable outside class
b. Local variable inside constructor
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 20/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 21/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
int
main () { cout << “Hello World!” return 0; }
a. Hello World
b. Syntax error
c. 0
d. Hello World!
c. reference of Class1
d. object pointed by ptr
{
int a = 5;
int b = 10;
cout << (a>b?a:b);
}
a. 5
b. 10
c. Syntax error
d. None of above
int a = 10;
void main()
{
int a = 20;
cout << a << ::a;
}
a. Syntax error
b. 10 20
c. 20 10
d. 20 20
class Example{
public: int a,b,c;
Example(){a=b=c=1;} //Constructor 1
Example(int a){a = a; b = c = 1;} //Constructor 2
Example(int a,int b){a = a; b = b; c = 1;} //Constructor 3
Example(int a,int b,int c){ a = a; b = b; c = c;} //Constructor
4
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 23/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
}
In the above example of constructor overloading, the
following statement will call which constructor
Example obj = new Example (1,2,3);
a. Constructor 2
b. Constructor 4
c. Constrcutor 1
d. Type mismatch error
aditya
JULY 8, 2016 AT 4:54 PM
REPLY
aditya
JULY 8, 2016 AT 4:53 PM
REPLY
LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment *
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 24/25
11/11/23, 5:08 PM 300 C++ Programming Multiple Choice Questions and Answers
Name *
Email *
Website
Post Comment
Engineering 2023 , Multiple Choice Questions and Answers for Engineering & Medical , Theme by Engineering|| Privacy
Policy|| Terms and Conditions|| ABOUT US|| Contact US||
Engineering interview questions,Mcqs,Objective Questions,Class Lecture Notes,Seminor topics,Lab Viva Pdf PPT Doc Book
free download. Most Asked Technical Basic CIVIL | Mechanical | CSE | EEE | ECE | IT | Chemical | Medical MBBS Jobs
Online Quiz Tests for Freshers Experienced .
https://engineeringinterviewquestions.com/c-programming-multiple-choice-questions-and-answers/ 25/25