it-304-object-oriented-programming-and-methodology-jun-2020 (1)
it-304-object-oriented-programming-and-methodology-jun-2020 (1)
com
Roll No ..................................
IT-304-CBGS
B.Tech., III Semester
Examination, June 2020
Choice Based Grading System (CBGS)
Object Oriented Programming and Methodology
Time : Three Hours
Maximum Marks : 70
Note: i) Attempt any five questions.
{H$Ýht nm±M àíZm| H$mo hb H$s{OE&
ii) All questions carry equal marks.
g^r àíZm| Ho$ g_mZ A§H$ h¢&
iii) In case of any doubt or dispute the English version
question should be treated as final.
{H$gr ^r àH$ma Ho$ g§Xho AWdm {ddmX H$s pñW{V ‘| A§JO
o« r ^mfm
Ho$ àíZ H$mo A§{V‘ ‘mZm Om¶oJm&
IT-304-CBGS PTO
https://www.rgpvonline.com
https://www.rgpvonline.com
[2]
IT-304-CBGS PTO
Contd...
https://www.rgpvonline.com
https://www.rgpvonline.com
[3]
4. a) What are the inline functions and what are the benefits of
declaring any function as inline? How any function is made
inline? Give its syntax.
Inline functions ³¶m h¢? {H$gr function H$mo inline Kmo{fV
H$aZo go ³¶m ’$m¶Xo h¢? {H$gr function H$mo inline H¡$go ~Zm¶m
OmVm h¡? BgHo$ {dݶmg H$mo {bI|&
b) Discuss the term ‘polymorphism’ in detail. What are the
different ways to implement polymorphism in C++?
Explain them in brief. Differentiate between compile
time and run time polymorphism.
Polymorphism nX H$mo {dñV¥V ê$n go ~VmB¶o& Polymorphism
H$mo C++ ‘| bmJw H$aZo Ho$ {d{^Þ VarHo$ H$m¡Z-H$m¡Z go h¢? BZ g^r
H$r g§jon ‘| ì¶m»¶m H$a|& Compile time Ed§ Run time
Polymorphism Ho$ ‘ܶ A§Va ~VmB¶o&
IT-304-CBGS PTO
https://www.rgpvonline.com
https://www.rgpvonline.com
[4]
IT-304-CBGS PTO
Contd...
https://www.rgpvonline.com
https://www.rgpvonline.com
[5]
IT-304-CBGS PTO
https://www.rgpvonline.com
https://www.rgpvonline.com
[6]
******
IT-304-CBGS PTO
https://www.rgpvonline.com