KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD
KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD
KING'S IT WORLD
Would you like to react to this message? Create an account in a few clicks or log in to continue.

KING'S IT WORLD


 
HomeHome  GalleryGallery  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
kings it world text ad
KINGSITWORLD CALENDAR
Follow me on G+
KINGSITWORLD WEATHER
Latest topics
» QURAN MAJEED KE TAFSEER
CS304 MIDTERM FALL 2010 Icon_minitimeMon Aug 20, 2012 2:59 am by YOUSUFHALI

» PHY301 CIRCUIT THEORY REFERENCE BOOK
CS304 MIDTERM FALL 2010 Icon_minitimeWed Jul 25, 2012 11:36 am by shabbir1915

» MTH202 ASSIGNMENT NO 3 SOLUVED
CS304 MIDTERM FALL 2010 Icon_minitimeMon Jun 11, 2012 9:51 am by jaffarhussain

» Retrieve the DTC In the Jewel Module of 1995 Ford
CS304 MIDTERM FALL 2010 Icon_minitimeThu May 31, 2012 11:51 am by obd2tool

» How you can Obvious the Check Engine Light on the
CS304 MIDTERM FALL 2010 Icon_minitimeThu May 31, 2012 11:43 am by obd2tool

» send free sms and send free sms update on facebook
CS304 MIDTERM FALL 2010 Icon_minitimeTue May 15, 2012 8:33 pm by rizwan269

» United Bank Limited (UBL) - Fee Deposit
CS304 MIDTERM FALL 2010 Icon_minitimeThu May 10, 2012 3:33 pm by irumnaz

» PHOTO MIXER SOFTWARE
CS304 MIDTERM FALL 2010 Icon_minitimeFri Apr 20, 2012 10:02 am by sacredwkb

» Entrepreneurship Survey
CS304 MIDTERM FALL 2010 Icon_minitimeThu Mar 08, 2012 2:20 pm by Admin

» Fall 2011 Semester Result Announced
CS304 MIDTERM FALL 2010 Icon_minitimeThu Mar 08, 2012 2:19 pm by Admin

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
kings it world text ad
Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website
visitors counter
CS304 MIDTERM FALL 2010 Image
Powered by website analytics technology.
Keywords
HRM611 final term MGT502 assignment paper 2011 MGMT611 2010
kings it world text ad
FLAG COUNTER
free counters
LIVE TRAFFIC

 

 CS304 MIDTERM FALL 2010

Go down 
AuthorMessage
Admin
Admin
Admin


Scorpio
Posts : 638
Points : 2155
Reputation : 19
Join date : 2010-05-15
Age : 36
Location : islamabad

CS304 MIDTERM FALL 2010 Empty
PostSubject: CS304 MIDTERM FALL 2010   CS304 MIDTERM FALL 2010 Icon_minitimeThu Dec 02, 2010 8:28 pm

CS304 MID FALL 2010



We can get only one unique value which can be used by all the objects of that class by the use of,

static variables
dynamic variables
instance variables
data members


A member function having the same name as that of a class and a ~ sign with it is called,

Constructor
Getter
Setter
Destructor


Using encapsulation we can achieve
Information hiding
Least interdependencies among modules
Implementation independence
All of given options

Inheritance is a way to

make general classes into more specific classes.
pass arguments to objects of classes.
improve data hiding and encapsulation.
providing class growth through natural selection.

Static variable can be initialized more than once.
True
False

For classes with common behavior, you can save effort by placing the common behavior in a __________.
Derived Class
Base class
Deprived Class
Named class



Which of the following are an advantage of OOP?

OOP makes it easy to re-use the code
It provides an ability to create one user defined data type by extending the other
It provides the facility of defining Abstract data types through which real world entities can be defined better
All of the given options



The >= operator can be overloaded.

True
False



A static member function cannot be declared.
Static
Implicit
Explicit
Virtual


Static variables act like a global variable in the context or scope of the class.

True
False

The compiler won’t object if you overload the * operator to perform division.


True
False

We can use "this" pointer in the constructor in the body and even in the initialization list of any class if we are careful,

TRUE
False



A C++ class is similar to --------------------

Structure
Header File
Library File
None of the given




Which operator can not be overloaded?
The relation operator ( >= )
Assignment operator ( = )
Script operator ( [] )
Conditional operator (? : )



An overloaded operator always requires one less argument than its number of operands.
True
False




A generalization-specialization relation between classes are implemented using

data hiding
friend classes
encapsulation
inheritance



In OOP a class is an example of _____
Data Type
Abstract Type
User Defined Type
None of the given

Identify which of the following overloaded operator function’s declaration is appropriate for the given call?
Rational_number_1 + 2.325
Where Rational_number_1 is an object of user defined class Rational_number.
Rational_number operator+( Rational_number & obj);
Rational_number operator+(double& obj);
Rational_number operator+(Rational_number &obj, double& num);
operator+(double& obj);


A class can be identified from a statement by -------------
Noun
Pronoun
Verb
Adverb




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

Private member
Data Member
Public Member
Static




Q.
What is difference between simple association and composition?

Q.
Friend functions minimize "Encapsulation", What is your opinion?

Q.
Write three important properties of constructors?
1. Tell the reason why we can not overload the following four operators in c++
. , .* , :: , ?:
2. Considering the complex number class can we subtract two complex numbers by overloading plus “+ “Operator. Justify your answer as well.


Q.
How we resolve the following problems in overloading of assignment operator in string class, (explain with the help of c++ code)

a. Self referencing
b. Assigning a string value to more than one strings in a single line like, stringobject1 = string object2 = stringobject3 = stringobject4

Q.
Consider the class given below explain the order in which variables x,y and z will be initialized after creating object of this class,

class XYZ{
int e;
int f;
int g;
public:
XYZ ();
};

XYZ:: XYZ ():g(30),e(10),f(20)
{

}







Back to top Go down
 
CS304 MIDTERM FALL 2010
Back to top 
Page 1 of 1
 Similar topics
-
» MTH301 MIDTERM FALL 2010
» CS402 MIDTERM FALL 2010
» CS614 MIDTERM FALL 2010
» MKT621 MIDTERM FALL 2010
» MGT602 MIDTERM FALL 2010

Permissions in this forum:You cannot reply to topics in this forum
KING'S IT WORLD :: EDUCATION :: PAPERS :: MIDTERM FALL 2010 PAPERS(NEW)-
Jump to: