1. A default catch block in C++ catches | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
2. To expose a data member to the program in C++, you must declare the data member in the _____ section of the class | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
3. Which of the following are valid characters in C++ for a numeric literal constant? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
4. When the compiler cannot differentiate between two overloaded constructors in C++, they are called | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
5. If you design a class in C++ that needs special initialization tasks, you will want to design a(n) _____ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
6. To be called object-oriented, a programming language must allow | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
7. A function in C++ that is called automatically each time an object is destroyed is a | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
8. Which of the following statements in C++ allows the user to enter data at the keyboard? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
9. Paying attention in C++ to the important properties while ignoring inessential details is known as________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
10. Redirection redirects | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
11. To use either an input or output file in C++, the program must include the _________ header file | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
12. A base class in C++ may also be called a | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
13. When you omit parameters from a C++ function call, values can be provided by | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
14. Variables declared outside a block in C++ are called ___________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
15. The compiler converts your C++ instructions into _____ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
16. The return type you code for all constructors in C++ is _____ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
17. When an object-oriented program detects an error within a function in C++, the function _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
18. Using a statement at the wrong time or with an inappropriate object in C++ creates a | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
19. When you create a derived class in C++ and instantiate an object _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
20. A constructor in C++ always has | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
21. A normal C++ operator that acts in special ways on newly defined data types is said to be | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
22. A function in a C++ derived class that has the same name as a function in the parent class | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
23. In which statements, does a 'continue' statements cause the control to go directly to the test condition and then continue the looping process? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
24. In a class specifier, data or functions designated private are accessible | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
25. When a function includes a throw statement for errors, the call to the potentially offending function should be placed within a ________ block | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
26. The scope resolution operator in C++ is | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
27. The items listed in the function header are called _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
28. The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is__________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
29. When an argument is passed by reference, | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
30. The process of extracting the relevant attributes of an object is known as | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
31. If you want to override constructor | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
32. Errors in a program are called | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
33. If a derived class uses the public access specifier, then __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
34. The operator in C++ that releases previously allocated memory is _____ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
35. When a language has the capability to produce new data types, it is said to be | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
36. The preprocessor directive always starts with the symbol | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
37. The base class for most stream classes is the _________ class | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
38. Which of the following can be used to declare the main function in C++? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
39. The highest level of cohesion is | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
40. You separate a derived class name from its access specifier with | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
41. The last statement in a function is often a(n) ________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
42. The two statements that can be used to change the flow of control are | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
43. If p and q are assigned the values 2 and 3 respectively then the statement p = q++ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
44. Which of the following is the insertion operator? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
45. If you want only one memory location to be reserved for a class variable, no matter how many objects are instantiated, you should declare the variable as | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
46. To use a template class member function in C++, use the __________ with the instantiation | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
47. If you assign a default value to any variable in a function prototype's parameter list, then __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
48. The feature that allows you to use the same function name for separate functions that have different argument lists is called _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
No comments:
Post a Comment
Your Feedback is hearty Requested to make the MCQs Collection better.