Home About Contact
vustudents.org
Connect with Facebook



CS304 CS304 Object Oriented Programming Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….

Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….
Reply
  #1  
Old 11-26-2011, 11:05 PM
lubna lolo's Avatar
Senior Member
 
Join Date: Nov 2011
Posts: 325
Default cs304 final term 2011 paper

1) Fill in the blanks below with public, protected or private keyword.

a. Public members of base class are __________ members of derived class
b. Protected members of base class are __________members of derived class.

Q2) Can a constructor throw an exception? How to handle the error when the constructor fails?

Q3) What is the difference (if any) between the two types of function declarations?

template function_declaration;
template function_declaration;

Q4) State any two reasons why the virtual methods can not be static?

Q5) Give three advantages that Iterators provide over Cursors.

Q6) Consider the code given below explain what kind of association exists between class A and class B. Justify your answer as well.

class A{

private:
int a,b,c;

public:
….
};

class B{

private:
int d,e,f;
A obj1;

public:
….
};

Q7) If we declare a function as friend of a template class will it be a friend for a particular data type or for all data types of that class.

Q8) Is it possible to have Virtual Constructor? Justify your answer.

Q9) Explain the difference between static member variables with Non-static member variables of a class with the help of example.
Q10) There are some errors in the code given below, you have to
1. Indicate the line no. with error/s
2. Give the reason for error/s
3. Correct the error/s.

1. #include (header extension is missing
2. #include

3. using namespace std;
4. template
5. class MyClass{
6. public:
7. MyClass(){
8. cout"This is class1"endl;
9. }
10. };
11. template
12. class MyClass{
13. public:
14. MyClass(){
15. cout"This is class2"endl;
16. }
17. };
18. int main(int argc, char *argv[])
19. {
20. MyClass c1;
21. MyClass c2;
22. system("PAUSE");
23. return 0;
}

Q11) What is a container class? What are the types of container classes?

Q12) What is a Virtual Destructor? Why we use Virtual Destructors.
Attached Files
File Type: pdf FINALPAPERCS03414FEB2011.pdf (345.5 KB, 15 views)
File Type: docx 1.docx (12.2 KB, 2 views)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fresh final term paper cs 609 um abdullah CS609 1 02-13-2012 05:57 PM
Eco404 final term paper um abdullah ECO404 0 11-26-2011 06:28 PM
cs 301 questions for final term paper um abdullah CS301 0 11-19-2011 02:35 PM
Final Term Papers Spring 2011 um abdullah CS101 2 11-17-2011 03:00 PM
BNK603 Mid Term Papers May 2011, (Spring 2011) um abdullah BNK603 0 11-16-2011 09:54 PM


All times are GMT +5. The time now is 02:57 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

 

Gravatar as Default Avatar by 1e2.it