1. Many programmers separate a class in C++ into two files: _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
2. Files whose names end in .h are called __________ files | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
3. When accessing a structure member, the identifier to the left of the dot operator is the name of | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
4. Inheritance occurs when a class adopts all the traits of _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
5. Template classes that have already been written to perform common class tasks are called __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
6. You declare a function with a function _____________, which is typically entered at the beginning of the program, below the #include directives | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
7. The most common operation used in constructors is | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
8. If two types of errors may be thrown, you should write __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
9. Which of the following is not a programming control structure? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
10. The bitwise OR operator is a | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
11. The continue statement should be written only | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
12. A major advantage of inheritance is | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
13. When a variable exists or is accessible, it is said to be __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
14. The feature that allows the same operations to be carried out differently depending on the object is __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
15. Which of the following is a C++ class? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
16. Precedence determines which operator | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
17. When using the standard files that come with the C++ compiler, you should surround the header file name with __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
18. The loop condition in a flowchart is represented by a(n) __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
19. Inheritance is the principle that | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
20. If no exception is thrown ____________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
21. A program that predicts the exact sequence in which events will take place is said to be _____________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
22. A blueprint for creating an object in C++ is called _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
23. The prototype for a derived class constructor may include arguments for | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
24. Overloading involves writing two or more functions with ___________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
25. One way pointers are useful to refer to a memory address that has no _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
26. Two access specifiers in C++ are | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
27. Within parentheses, catch blocks can have __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
28. The while loop is referred to as a(n) _________ loop because the loop condition is tested at the beginning of the loop. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
29. The word | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
30. The statement int num[2][3]={ {3,8,6}, {9,4,7}}; | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
31. Private data can be accessed by | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
32. The store of memory available to programs is the __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
33. When a function performs tasks based on a decision, it has __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
34. To create a template class in C++, you begin with ____________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
35. Which of the following is a C++ object? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
36. A function in C++ can | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
37. The statement float values[]={3.14, -7.86, 36.96, 4.87}; | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
38. A constructor initialization list in C++ is preceded by ________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
39. When the compiler places a copy of a small function's statements directly into a program, the function is said to be | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
40. To send output to a file, you need to include the __________ header file in your C++ program | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
41. A difference, between reference variables and pointers is that | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
42. A 'C | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
43. __________ variables remain in memory until the program ends. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
44. The outline or the definition of a function is called its | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
45. A variable's ___________ indicates which portions of the program can use the variable. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
46. _________ variables are declared outside of any statement block. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
47. The end of string is recognized by | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
48. Variable names known only to the procedure in which they are declared are __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
No comments:
Post a Comment
Your Feedback is hearty Requested to make the MCQs Collection better.