

MCQOPTIONS
Saved Bookmarks
This section includes 65 Mcqs, each offering curated multiple-choice questions to sharpen your Technology knowledge and support exam preparation. Choose a topic below to get started.
51. |
The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is |
A. | int **fun(float**, char**) |
B. | int *fun(float*, char*) |
C. | int ***fun(float*, char**) |
D. | int ***fun(*float, **char) |
Answer» D. int ***fun(*float, **char) | |
52. |
Pick out the correct method in the c++ standard library algorithm. |
A. | mismatch |
B. | maximum |
C. | minimum |
D. | None of these |
Answer» B. maximum | |
53. |
In tree construction which is the suitable efficient data structure? |
A. | Array |
B. | Linked list |
C. | Stack |
D. | Queue |
Answer» C. Stack | |
54. |
In an AVL tree the balancing is to be done when the pivotal value is in range of |
A. | greater than 1 and less than -1 |
B. | greater than -1 and less than 1 |
C. | greater than 1 |
D. | less than -1 |
Answer» B. greater than -1 and less than 1 | |
55. |
How to handle error in the destructor? |
A. | throwing |
B. | terminate |
C. | both a & b |
D. | none of the mentioned |
Answer» C. both a & b | |
56. |
How the member functions in the container can be accessed? |
A. | Iterator |
B. | Indirect |
C. | Both a & b |
D. | None of these |
Answer» B. Indirect | |
57. |
How many ways of reusing are there in class hierarchy? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» C. 3 | |
58. |
How many ways are there to initialize int with a constant? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» C. 3 | |
59. |
How many types of modularization are there in c++? |
A. | 4 |
B. | 3 |
C. | 1 |
D. | none of these |
Answer» E. | |
60. |
How many types of constructor are there in C++? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» D. 4 | |
61. |
How many kinds of entities are directly parameterized in c++? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» D. 4 | |
62. |
How do define the user-defined exceptions? |
A. | inheriting and overriding exception class functionality. |
B. | overriding class functioality. |
C. | inheriting class functionality |
D. | none of the mentioned |
Answer» B. overriding class functioality. | |
63. |
A special member function of a class, which is invoked automatically whenever an object goes out of the scope is called |
A. | Constructor |
B. | Destructor |
C. | Friend function |
D. | None of the above |
Answer» C. Friend function | |
64. |
Default constructor accepts how many arguments? |
A. | one |
B. | two |
C. | three |
D. | None |
Answer» E. | |
65. |
A binary tree with 7 nodes will have how many null branches? |
A. | 6 |
B. | 7 |
C. | 8 |
D. | 5 |
Answer» D. 5 | |