Professional Documents
Culture Documents
Oop Paper
Oop Paper
______________
Q.1 Answer any seven out of ten. દશમ ાંથી કોઇપણ સ તન જવ બ આપો. 14
1. Describe the use of scope resolution operator.
૧. સ્કોપ રેઝોલ્યુશન ઓપરેટરનો ઉપયોગ જણ વો.
2. What is ‘this’ pointer?
૨. ‘this’ પોઈન્ટર શુાં છે ?
3. Define inline function.
૩. ઇનલ ઇન ફાંક્શન વ્ય ખ્ય યયત કરો.
4. Explain base class and derived class.
૪. બેઝ ક્લ સ અને ડીર ઈવ ક્લ સ સમજાવો.
5. What is abstract class?
૫. એબ્સ્ટસ્રેક્ટ ક્લ સ શુાં છે ?
6. Define: Encapsulation, Polymorphism
૬. વ્ય ખ્ય આપો: એનકેપ્સસ્યુલેશન, પોલીમોફીઝમ
7. Explain the working of << operator with cout.
૭. cout સ થે << ઓપરેટરનુાં ક યય સમજાવો.
8. Provide the name of two header files used in C++ and not in C.
૮. જે C++ મ ાં જ ઉપયોગી હોય અને C મ ાં ન હોય તેવી બે હેડર ફ ઈલ જણ વો.
9. What is the use of file stream class?
૯. ફ ઈલ સ્રીમ ક્લ સનો શુાં ઉપયોગ છે ?
10. Show the use of “endl” with example.
૧૦. “endl” નો ઉપયોગ ઉદ હરણ સ થે દશ યવો.
(c) Define a class Distance with data members: meter and centimeter in integer. 07
2/3
Define default, parameterized and copy constructor for the class. Write an
appropriate main( ) to test the class.
(ક) જે ન ડેટ મેમ્બર meter અને centimeter ઈન્ટીજરમ ાં હોય તેવો એક ક્લ સ વ્ય ખ્ય યયત કરો. તે ૦૭
ક્લ સ મ ટે ડીફોલ્ટ, પેર મીટર ઈઝ અને કોપી કન્સ્રક્ટર વ્ય ખ્ય યયત કરો. ક્લ સનુાં પરરક્ષણ કરવ
સુયોર્ગય main( ) લખો.
Q.5 (a) Describe the characteristics of a friend function. 04
પ્રશ્ન. ૫ (અ) ફ્રેન્ડ ફાંક્શનની લ ક્ષયણકત ઓ જણ વો. ૦૪
(b) Give the differences between object oriented programming and procedure 04
oriented programming.
(બ) ઓબ્સ્ટજેક્ટ લક્ષી પ્રોગ્ર મમાંગ અને પ્રોસીજર લક્ષી પ્રોગ્ર મમાંગન તફ વતો આપો. ૦૪
(c) Explain the functions: width( ), precision( ), fill( ). 03
(ક) width( ), precision( ), fill( ) ફાંક્શન સમજાવો. ૦૩
(d) Which are the types of polymorphism? Explain any one. 03
(ડ) પોલીમોફીઝમન પ્રક રો કય કય છે ? કોઈ એક સમજાવો. ૦૩
************
3/3