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-27-2011, 12:33 AM
lubna lolo's Avatar
Senior Member
 
Join Date: Nov 2011
Posts: 325
Default cs304 midterm 2010 papers

Question No: 5 ( Marks: 1 ) - Please choose one
A static member function cannot be declared.
► Static
► Implicit
► Explicit
► Virtual

Question No: 11 ( Marks: 1 ) - Please choose one
Assume a class C with objects obj1, obj2, and obj3. For the statement obj3 = obj1 - obj2 to work correctly, if the overloaded - operator must
► take two arguments.
► return a value.
► create a named temporary object.
► take four arguments

Question No: 12 ( Marks: 1 ) - Please choose one
Which operator can not be overloaded?
► The relation operator ( >= )
► Assignment operator ( = )
► Script operator ( [] ) wrong answer
► Conditional operator (? : ) Correct answer.
See handout’s page # 141

Question No: 21 ( Marks: 3 )
Explain what type of copy the default assignment operator "=" does when applied to objects. (shallow copy or deep copy)

Question: How we can use the concept of overloading to convert a type according to our own requirements? Give one example.

Question: The members of a class that can be accessed without creating the object of the class is called

Question: Differentiate between Simple association and Aggregation?

Question: Friend function minimizes “Encapsulation”. Describe in your own wordings?

Question: program about constant member function. See page # 100

Question: can binary operators overloaded, how can they overload give an example for any one operator.
CS304 -- Fall 2010 Papers (Latest)
Paper # 01

1) Explain what type of copy the default assignment operator "=" does when applied to objects. (shallow copy or deep copy)

2) How we can use the concept of overloading to convert a type according to our own requirements? Give one example.

3) Give the name of two cases where you MUST use initialization list as opposed to assignment in constructors.

4) Can we create an array of objects for a class having user defined constructor? Justify your answer.

5) Fill in the blanks below with public, protected or private keyword.
Public members of base class are __________ members of derived class
Protected members of base class are __________members of derived class.

6) What is simple association? Explain it with the help of an example.

7) The members of a class that can be accessed without creating the object of the class is called.

8) The >= operator can be overloaded.

9) Which of the following operators can not be overloaded?

The relation operator ( > )
(>>)
()
(:J

Today 05-12-2010 My CS304 paper.

Q:1 Explain what type of copy the default assignment operator "=" does when applied to objects. (shallow copy or deep copy)



Q:2 How we can use the concept of overloading to convert a type according to our own requirements? Give one example.



Q:3 Give the name of two cases where you MUST use initialization list as opposed to assignment in constructors.




Q:4 Can we create an array of objects for a class having user defined constructor? Justify your answer.


Q:5 Fill in the blanks below with public, protected or private keyword.

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


Q:6 What is simple association? Explain it with the help of an example.


Q:7 The members of a class that can be accessed without creating the object of the class is called


Q: 8 The >= operator can be overloaded.
Q:9 Which of the following operators can not be overloaded?
The relation operator ( > )
(>>)
()
(:

Q:10 A static member function cannot have access to the _____ pointer of the class.
dangling
this
refrence
null
Attached Files
File Type: pdf OOPfreshppr2010.pdf (86.8 KB, 11 views)
File Type: pdf mytodaypaper.pdf (266.5 KB, 9 views)
File Type: pdf CS304MIDFALL2010-1.pdf (192.1 KB, 8 views)
File Type: pdf CS304MIDFALL2010.pdf (192.9 KB, 8 views)
File Type: pdf CS304_MID-1.pdf (548.6 KB, 13 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
cs304 final term 2010 papers lubna lolo CS304 0 11-27-2011 12:19 AM
cs304 recent papers for midterm lubna lolo CS304 0 11-27-2011 12:07 AM
cs304 midterm material preparation lubna lolo CS304 0 11-26-2011 11:59 PM
cs304 midterm preparation lubna lolo CS304 0 11-26-2011 11:42 PM
CS201 Midterm 2010 spring um abdullah CS201 1 11-26-2011 06:47 AM


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

 

Gravatar as Default Avatar by 1e2.it