21. |
If there are 5 classes, E is derived from D, D from C, C from B and B from A. Which class constructor will be called first if the object of E or D is created? (જો 5 classes હોય, તો class E એ class D માંથી, class C માંથી class D, class C માંથી class B અને class A માંથી class B derived કરવામાં આવે છે, E અથવા D ના object બનાવવામાં આવે તો કયા class ના constructor પહેલા call થશે?)
|
||||||||
Answer:
Option (a) |
22. |
What is the minimum number of levels for a implementing multilevel inheritance? (multilevel inheritance ના implementation માટે levels ની minimum સંખ્યા કેટલી છે?)
|
||||||||
Answer:
Option (c) |
23. |
In multilevel inheritance one class inherits _______________ (multilevel inheritance માં એક class _______________ class ને inherit કરે છે)
|
||||||||
Answer:
Option (a) |
24. |
All the classes must have all the members declared private to implement multilevel inheritance. (બધા classes માં multilevel inheritance ને implement માં મૂકવા માટે બધા members ને private declare કર્યા હોવા જોઈએ.)
|
||||
Answer:
Option (b) |
25. |
If all the classes used parameterized constructors and no default constructor then ___________ (જો બધા classes એ parameterized constructors નો ઉપયોગ કરે અને ડિફોલ્ટ કન્સ્ટ્રક્ટર નહીં તો ___________થાય છે.)
|
||||||||
Answer:
Option (b) |
26. |
Multiple inheritance is ____________________ (Multiple inheritance ____________________ છે)
|
||||||||
Answer:
Option (b) |
27. |
Which among the following best defines the hybrid inheritance? (નીચેનામાંથી કયા hybrid inheritance ને best રીતે defines કરે છે?)
|
||||||||
Answer:
Option (a) |
28. |
Virtual functions are mainly used to achieve _____________ (Virtual functions મોટે ભાગે _____________ પ્રાપ્ત કરવા માટે વપરાય છે.)
|
||||||||
Answer:
Option (c) |
29. |
Which keyword is used to declare virtual functions? (virtual functions declare કરવા માટે કયા કી વર્ડનો ઉપયોગ થાય છે?)
|
||||||||
Answer:
Option (a) |
30. |
Where the virtual function should be defined? (વર્ચુઅલ ફંક્શન ને ક્યાં define કરવું જોઈએ?)
|
||||||||
Answer:
Option (d) |