1. Which of the following is used to make an abstract class in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
2. Which of the following access specifier is used as a default in a class definition in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
3. What is correct about the static data member of a class in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
4. Which of the following provides a reuse mechanism in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
5. Which of the following statement is correct in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
6. Which of the following statement is correct regarding destructor of base class in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
7. How can we make a class abstract in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
8. Which of the following statements is correct when a class is inherited publicly in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
9. Which of the following statements is correct about the C++ constructors and destructors? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
10. Which of the following statement is correct in C++ with respect to the use of friend keyword inside a class? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
11. Which of the following keywords is used to control access to a class member in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
12. Which of the following can access private data members or member functions of a class in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
13. Which of the following type of data member can be shared by all instances of its class in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
14. Which of the following also known as an instance of a class in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
15. Constructor in C++ is executed when | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
16. Which of the following statements about virtual base classes in C++ is correct? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
17. Which of the following statements is correct in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
18. Which of the following can be overloaded in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
19. Which of the following is the only technical difference between structures and classes in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
20. Which of the following function / type of function cannot be overloaded in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
21. Which of the following function / types of function cannot have default parameters in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
22. A constructor that accepts __________ parameters is called the default constructor in C++. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
23. What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
24. Destructor has the same name as the constructor in C++ and it is preceded by ______ . | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
25. Which constructor function is designed to copy objects of the same class type in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
26. When are the Global objects destroyed in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
27. Copy constructor in C++ must receive its arguments by __________ . | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
28. A function in C++ with the same name as the class, but preceded with a tilde character (~) is called __________ of that class. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
29. A union in C++ that has no constructor can be initialized with another union of __________ type. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
30. Which of the following gets called when an object goes out of scope in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
31. Which of the following statement is correct in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
32. __________ used to make a copy of one class object from another class object of the same class type in C++. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
33. Constructors __________ to allow different approaches of object construction in C++. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
34. Which of the following cannot be declared as virtual in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
35. If the copy constructor in C++ receives its arguments by value, the copy constructor would | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
36. It is a __________ error to pass arguments to a destructor in C++. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
37. If the programmer does not explicitly provide a destructor, then which of the following creates an empty destructor in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
38. A __________ is a constructor that either has no parameters, or if it has parameters, all the parameters have default values in C++. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
39. How many default constructors per class are possible in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
40. Which of the following statement is correct about destructors in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
41. Which of the following statement is correct in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
42. Which of the following implicitly creates a default constructor when the programmer does not explicitly define at least one constructor for a class in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
43. Destructor calls are made in which order of the corresponding constructor calls in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
44. Which of the following never requires any arguments in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
45. A class's __________ is called when an object is destroyed in C++. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
46. Which of the following statements are correct in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
47. How many times a constructor is called in the life-time of an object in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
48. Which of the following gets called when an object is being created in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
49. Which of the following statement is correct about constructors in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
50. Which of the following statement is correct whenever an object goes out of scope in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
No comments:
Post a Comment
Your Feedback is hearty Requested to make the MCQs Collection better.