0% found this document useful (0 votes)
48 views2 pages

(B) Attempt Any 4 Questions From Part-B. Each of The Questions Carries 10 Marks

The document discusses key concepts in C++ programming such as data types, functions, classes, constructors, operator overloading, function overloading, inheritance, polymorphism, files and pointers. It provides a 3 hour exam on these topics with multiple choice and long answer questions. Some questions ask students to explain concepts like friend functions, virtual functions, destructors and function overloading in detail. Other questions involve writing simple programs to demonstrate day of the week calculation and basic banking transactions using classes.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views2 pages

(B) Attempt Any 4 Questions From Part-B. Each of The Questions Carries 10 Marks

The document discusses key concepts in C++ programming such as data types, functions, classes, constructors, operator overloading, function overloading, inheritance, polymorphism, files and pointers. It provides a 3 hour exam on these topics with multiple choice and long answer questions. Some questions ask students to explain concepts like friend functions, virtual functions, destructors and function overloading in detail. Other questions involve writing simple programs to demonstrate day of the week calculation and basic banking transactions using classes.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

PROGRAMMING IN C++ Time Allowed: 3Hrs Maximum Marks: 60

Note: (a) Attempt all parts in Part-A. Each part carries 2 marks. (b) Attempt any 4 questions from Part- . Each of the questions carries !" marks. PART-A Q1.(a) " a# is da#a idi$g% (b) (c) (d) (e) (f) (g) ( ) (i) (!) +. (a) (b) 3. &x'lai$ i$'u# a$d ou#'u# s#reams. &x'lai$ sco'e resolu#io$ o'era#or. " a# are des#ruc#ors% (i)e exam'le. " a# is o'era#or o)erloadi$g% *iffere$#ia#e be#wee$ si$gle a$d mul#i'le i$ eri#a$ces. " a# are base a$d deri)ed classes% " a# are )arious me# ods #o #ra)erse a #ree% &x'lai$ # e co$ce'# of a class. " a# is a frie$d fu$c#io$% PART-B *iffere$#ia#e be#wee$ ,rocedural A$al-sis a$d .b!ec# orie$#ed a$al-sis. *a#a e$ca'sula#io$ a$d *a#a /$ eri#a$ce. " a# is fu$c#io$ .)erloadi$g% " a# are s-$#ac#ic rules go)er$i$g # e defi$i#io$ of a fu$c#io$ o)erloadi$g% 0is# meri#s a$d demeri#s of fu$c#io$ o)erloadi$g o)er 1. # e co$)e$#io$al fu$c#io$al usages. " a# is a co$s#ruc#or% /s i# ma$da#or- #o use co$s#ruc#or i$ a 233 class% 2a$ we a)e more # a$ o$e co$s#ruc#or i$ a 233 class% /f -es4 ex'lai$ # e $eed for suc a 5. 6. si#ua#io$. *is#i$guis be#wee$ fu$c#io$ a$d o'era#or o)erloadi$g. (i)e a$ illus#ra#i)e exam'le of eac . " a# are )ir#ual fu$c#io$s% " a# are # e rules for )ir#ual fu$c#io$s% " a# are # e ad)a$#ages of declari$g a )ir#ual fu$c#io$ i$ a 'rogram% " a# are 6. 'ure )ir#ual fu$c#io$s% &x'lai$ *iscuss # e 'ri$ci'les of ob!ec#7orie$#ed 'rogrammi$g.

BS-205: PROGRAMMING IN C++ Time Allowed: 3Hrs Maximum Marks: 60

Note: (a) Attempt all parts in Part-A. Each part carries 2 marks. (b) Attempt any 4 questions from Part- . Each of the questions carries !" marks. PART-A Q1.(a) " a# is 'oi$#er ari# me#ic% (b) (c) (d) (e) (f) (g) ( ) (i) (!) +. " a# are arra-s% " a# are i$li$e member fu$c#io$s% " a# is a frie$d fu$c#io$% " a# is # e mai$ ad)a$#age of recursio$% " a# is mul#i'le i$ eri#a$ce% " a# is fu$c#io$ o)erloadi$g% " a# is earl- bi$di$g% " a# are # e #-'es of files su''or#ed b- 233% 8ame # e )arious bi$ar- file o'era#io$s PART-B &x'lai$ # e followi$g #-'es of fu$c#io$s i$ de#ail: (i) 0ocal or 'ri)a#e fu$c#io$s (ii) Member fu$c#io$s (iii) 9rie$d fu$c#io$s 3. 1. 5. (i)) /$7li$e fu$c#io$s ()) 2o$s#ruc#or fu$c#io$s "ri#e a 'rogram #o fi$d # e da- of # e week usi$g sim'le if a$d swi#c s#a#eme$#s. " a# is # e role of file 'oi$#er i$ a 233 'rogram% *efi$e a class :A22.;8T:. /$clude Amou$#. Member 9u$c#io$: To assig$ i$i#ial )alues4 de'osi# amou$#4 wi# 'rogram for 10 cus#omers. " a# is fu$c#io$ o)erloadi$g% "ri#e a 'rogram i$ c33 w ic draw af#er c ecki$g bala$ce4 To dis'la- $ame a$d bala$ce. "ri#e mai$ ,rogram #o #es# # e 6. as a 9u$c#io$ add

followi$g

members:

*a#a Members: 8ame of *e'osi#or4 Accou$# 8o.4 T-'e of Accou$#4 <ala$ce

# a# is able #o co$ca#e$a#e #wo s#ri$gs4 if )alues 'assed are s#ri$gs a$d ca$ 6. 'erform addi#io$4 if )alues are $umbers " a# is a co$s#ruc#or% " a# are # e rules for defi$i$g a co$s#ruc#or%

You might also like