CS304 Final Term Current Paper

Mostly MCQs moaaz past papers sy thy… moaaz ke past papers aik baar zrur read kr ke jana

SHORT QUESTIONS

1- aik template class ko dusri template class ka friend declare krna tha code likh ke.

2- Iterators ki three types likhni thi jo STL mein define ki gai hein

3- aik inheritance ki hierarchy di hui thi uss mein sy btana tha base class konsi hai aur derived konsi hai.

Also Read:  CS610 Current paper Final Exam

4- aik base class mein pure virtual function dia hua tha jisko derived class mein override nhi kia hua tha.. error btana tha konsa aur kiyu aye ga.

5- doo problems di hui thi btana tha ke dono problems ko solve krny ke liye templates use hongy ya overloading.

6- aik inheritance hierarchy di hui thi shape aur rectangle classes ke drmiyan… error find krna tha agr error nhi hai tw output btani thi

Also Read:  CS304 IMPORTANT MCQ'S FINAL TERM 23/24

LONG QUESTIOINS

1- Exceptions ki inheritance hierarchy ko explain krna tha aik example code likh ke.

2- doo classes ki aik inheritance hierarchy thi… derived class protected inherit hui v thi aik dono classes mein different member functions thy private, protected aur public. aik table mein btana tha ke derived class ke pointer se kon konsy functions outside of class access kiye ja skty hein.

Also Read:  ZOO630 Final Term Past Paper

3- aik template function of aik template class ka friend declare kia hua tha.. error btana tha aur code thik kr ke likhna tha

4- aik Question yaad nhi   :/

Note: Inheritance aur templates wala portion achy se revise kr ke jana

Leave a Comment