0% found this document useful (0 votes)
21 views

Cs 504 B Object Oriented Programming Jun 2020

The document is a past paper for the subject CS-504(B)-CBGS B.Tech., V Semester Choice Based Grading System (CBGS) Object Oriented Programming examination from RGPV Bhopal. It contains 8 questions to be attempted in 3 hours. All questions carry equal marks. The questions cover topics on object oriented programming features, type conversions, constants and variables, logical and arithmetic operators, arrays, strings functions, structures, unions, preprocessor, loops, inheritance and polymorphism. Students are instructed to attempt any 5 questions out of the 8 questions given.

Uploaded by

patelsaab94245
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Cs 504 B Object Oriented Programming Jun 2020

The document is a past paper for the subject CS-504(B)-CBGS B.Tech., V Semester Choice Based Grading System (CBGS) Object Oriented Programming examination from RGPV Bhopal. It contains 8 questions to be attempted in 3 hours. All questions carry equal marks. The questions cover topics on object oriented programming features, type conversions, constants and variables, logical and arithmetic operators, arrays, strings functions, structures, unions, preprocessor, loops, inheritance and polymorphism. Students are instructed to attempt any 5 questions out of the 8 questions given.

Uploaded by

patelsaab94245
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

https://www.rgpvonline.

com

Total No. of Questions : 8] [1] [Total No. of Printed Pages : 3

Roll No ..................................

CS-504(B)-CBGS
B.Tech., V Semester
Examination, June 2020
Choice Based Grading System (CBGS)
Object Oriented Programming
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&

1. a) State the important features of Object Oriented


Programming. Difference between procedure oriented
programming and object oriented programming. 7
Am°ãOo³Q> Amo[aE§Q>So > àmoJm« q‘J H$s ‘hÎdnwU© {deofVmE± ~VmBE& àmogrOa
Amo[aE§Q>oS> àmoJ«mq‘J Am¡a Am°ãOo³Q> Amo[aE§Q>oS> àmoJ«mq‘J Ho$ ~rM A§Va
~VmB¶o&
b) Explain with programs the various types of type
conversions. 7
àmoJ«måg Ho$ gmW {d{^Þ àH$ma Ho$ ê$nm§VaUm| H$s ì¶m»¶m H$a|&
CS-504(B)-CBGS PTO

https://www.rgpvonline.com
https://www.rgpvonline.com

[2]

2. a) Explain the term constants, variables, identifiers and


literals. 7
H$m|ñQ>|Q²>g, do[aE~ëg, AmB©S>|Q>r’$m¶g© Am¡a {bQ>aëg H$s empãXH$
ì¶m»¶m H$a|&
b) Explain Logical operators and Arithmetic operators with
example. 7
CXmhaU Ho$ gmW Vm{H©$H$ Am°naoQ>am| Am¡a A§H$J{UVr¶ Am°naoQ>am| H$mo
g‘PmBE&
3. a) Write a C++ program using increment and decrement
operators with suitable example. 7
Cn¶w³V CXmhaU Ho$ gmW BÝH«$s‘|Q> Am¡a {S>{H«$‘|Q> Am°naoQ>am| H$m
Cn¶moJ H$aHo$ EH$ C++ àmoJ«m‘ {bI|&
b) Explain Break and Continue keyword with appropriate
program. 7
C{MV àmoJ«m‘ Ho$ gmW ~«oH$ Am¡a H§${Q>ݶy H$sdS>© H$s ì¶m»¶m H$a|&

4. a) Define Array. How it is initialized? Write appropriate


program. 7
Eoao H$mo n[a^m{fV H$a|& Bgo H¡$go Ama§^ {H$¶m OmVm h¡? C{MV àmoJm« ‘
{bI|&
b) Differentiate between 2D array and Multi-dimensional
array. 7
2D Eoao Am¡a ~hþ-Am¶m‘r Eoao Ho$ ~rM A§Va H$mo g‘PmBE&

5. a) Explain the function strlen( ), strcp( ) and strcat( ) with


example. 7
CXmhaU Ho$ gmW ’§$³eZ ñQ´>boZ( ), strcp( ) Am¡a strcat( ) H$s
ì¶m»¶m H$a|&

CS-504(B)-CBGS Contd...

https://www.rgpvonline.com
https://www.rgpvonline.com

[3]

b) Define a structure that represents Fruit with properties


fruit name, fruit type, fruit color. Write a program that
accepts data of four fruits and displays the results. 7
EH$ ñQ´>³Ma H$mo n[a^m{fV H$a§o Omo ’$bm| Ho$ Zm‘, ’$b Ho$ àH$ma,
’$bm| Ho$ a§J Ho$ gmW ’$bm| H$m à{V{Z{YËd H$aVm h¡& EH$ àmoJm« ‘ {bI|
Omo Mma ’$bm| Ho$ S>oQ>m H$mo ñdrH$ma H$aVm h¡ Am¡a n[aUm‘ àX{e©V
H$aVm h¡&
6. a) Difference between Structure and Union. Explain with
example. 7
ñQ´>³Ma Am¡a ¶y{Z¶Z Ho$ ~rM A§Va CXmhaU g{hV ~VmB¶o&
b) What do you mean by Preprocessor? Explain features of
preprocessor. 7
àràmogoga go ³¶m ‘Vb~ h¡? àràmogoga H$s {deofVmE± ~VmB¶o&
7. a) Explain various types of Loops used in C++ with suitable
example. 7
Cn¶w³V CXmhaU Ho$ gmW C++ ‘| à¶w³V {d{^Þ àH$ma Ho$ bynm| H$s
ì¶m»¶m H$a|&
b) Write a C++ program to illustrate multiple inheritance. 7
‘ëQ>rnb BZho[aQ>|g H$mo Xem©Zo Ho$ {bE C++ àmoJ«m‘ {bI|&
8. a) Explain the different types of Polymorphism. 7
{d[^Þ àH$ma Ho$ nm°br‘m°a{’$ñ‘ H$s ì¶m»¶m H$s{OE&
b) Explain any five applications of oops. 7
D$ßg Ho$ {H$gr ^r nm±M AZwà¶moJm| H$mo g‘PmBE&

******

CS-504(B)-CBGS PTO
PTO

https://www.rgpvonline.com

You might also like