Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Multiple choice questions in C++ (Set-XV)

Multiple choice questions in C++ (Set-XV)

August 23, 2013 Comments Off on Multiple choice questions in C++ (Set-XV) By admin
Multiple Choice Questions in C++




Multiple choice questions in C++ (With answers)

141. A static automatic variable is used to
a) make a variable visible to several function
b) make a variable visible only to one function
c) converse memory when a function is not executing
d) retain a value when a function is not executing

142. The stacks data structure are based on
a) LIFO
b) FILO
c) FIFO
d) None of the above

143. Queues are based on
a) LIFO
b) FILO
c) FIFO
d) None of the above

144. & operator is
a) indirection operator
b) Logical AND
c) address operator
d) none of the above

145. int *ptr[10]; is
a) an array of 10 int pointers
b) a pointer of 10 int elements
c) an array of 10 elements returning an int value
d) none of the above

146. A structure that refers to itself is a
a) nested structure
b) recursive structure
c) self-referential structure
d) none of the above

147. With in …….scope class member may be referenced simply by their names
a) class’s
b) object’s
c) program
d) none of the above

148. To point to the address of any pointer variable cast the pointer to
a) char *
b) int *
c) void *
d) none of the above

149. Destructors are called
a) in the same order of constructor calls
b) in the reverse order of constructor calls
c) in any random order
d) none of the above

150. The advantage of declaring a virtual function as pure is
a) you can avoid making the class an abstract class
b) you force any derived class to define its own implementation
c) programs runs faster
d) early binding can be achieved




Solution Set to Multiple Choice Questions

(141)      C          (142)      A          (143)      C          (144)      C

(145)      A          (146)      C          (147)      A          (148)      C

(149)      B          (150)      B



Comments are closed
x Close

Like Us On Facebook

You cannot copy content of this page.