| 1. |
Default constructor has ____ arguments. (ડીફોલ્ટ કન્સ્ટ્રક્ટર પાસે ____ arguments હોઈ છે.)
|
||||||||
|
Answer:
Option (a) |
| 2. |
Constructors are used to ____________ (કન્સ્ટ્રકટર બધા____________ માટે વપરાય છે.)
|
||||||||
|
Answer:
Option (b) |
| 3. |
What is the role of a constructor in classes? (કલાસ માં કન્સ્ટ્રક્ટર નો role શું છે?)
|
||||||||
|
Answer:
Option (c) |
| 4. |
What is a copy constructor? (copy કન્સ્ટ્રક્ટર શું છે?)
|
||||||||
|
Answer:
Option (b) |
| 5. |
How many parameters does a default constructor require? (default કન્સ્ટ્રક્ટર ને કેટલા parameters ની જરૂર હોય છે?)
|
||||||||
|
Answer:
Option (c) |
| 6. |
How constructors are different from other member functions of the class? (કન્સ્ટ્રકટર્સ class ના member functions થી કેવી રીતે અલગ છે?)
|
||||||||
|
Answer:
Option (d) |
| 7. |
How many types of constructors are there in C++? (C++ માં કેટલા પ્રકાર ના constructors આવેલા છે?)
|
||||||||
|
Answer:
Option (c) |
| 8. |
What will be the output of the following C++ code?
નીચે આપેલા c++ code નું output શું થશે?
|
||||||||
|
Answer:
Option (b) |
| 9. |
What is the role of destructors in Classes? (Class માં destructors નો role શું છે?)
|
||||||||
|
Answer:
Option (b) |
| 10. |
What is syntax of defining a destructor of class A? (class A ના ડિસ્ટ્રક્ટર ની syntax શું છે?)
|
||||||||
|
Answer:
Option (b) |