.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

CS304 ALL Current Mid Term Papers Spring 2016 & Past Mid Term Papers at One Place from 28 May 2016 to 04 June 2016

CS304 ALL Current Mid Term Papers Spring 2016 & Past Mid Term Papers at One Place from 28 May 2016 to 04 June 2016 

 

You Can Download Solved Mid Term Papers, Short Notes, Lecture Wise Questions Answers Files, Solved MCQs, Solved Quizzes , Solved Mid Term Subjective Papers , Solved Mid Term Objective Papers From This Discussion For Preparation Mid Term Papers of Fall 2014

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

You Can download papers by a simple click on file. All the uploaded filed are in Zip file or PDF format So Install Adobe Reader and Winrar Software’s to open these Files

Note: If you download files with Internet Download Manager (IDM), you would face problem of damage files. All files are correct and no damage file, If you face this problem, Open IDM > Click on Options > Click on File Types > Remove PDF and ZIP from files types and save. After it download again files, files will work properly.OR Press alt+click the file ...

Thanks and Regards,

VU Students.ning Social Network.

This Content Originally Published by a member of VU Students.

Views: 1409

See Your Saved Posts Timeline

Replies to This Discussion

Share Your Current Mid Term Papers (Questions/Pattern) 28 May 2016 to 04 June 2016 to help each other. Thanks

Solved Mid Terms Papers By MOAAZ & Other Students

 

Click On the below link to download

 

Solved Mid Term Papers

 

Note: (This is Featured Discussion)

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

&

.•°How to Download past papers from study groups°•.

CS304 (30-5-2016) (10:30 PKST)
Q#1: (5 marks)
Consider the following code:
class Tutor{
int id;
char * name;
public:
Tutor(int, char*){
-------
-------
}
Tutor(const Tutor & obj){
------
------
}
};
Implement copy constructor for the Tutor class by shallow copy and by deep copy.
Q#2 (5 marks)
Consider the following code segment:
class Complex{
private:
double real, img;
public:
// declaration of overloaded subtraction operator
// declaration of overloaded multiplication operator
};
// Implementation of overloaded subtraction operator
// Implementation of overloaded multiplication operator
Give the declarations and implementations of each overloaded operator.
Q#3 (3 marks)
What will be output after executing following lines of code, (suppose there is no error and code will be executed correctly), justify your answer as well.
class Student{
static int noOfStudents;
int rollNo;
public:
Student::Student(){
noOfStudents++;
}
Student::~Student(){
noOfStudents--;
}
static int getTotalStudent(){
return noOfStudents;
}
};
int Student::noOfStudents = 0;
int main(){
Student obj1,obj2;
{
Student obj3;
}
cout/p>

Today’s (30-05-16) CS304 Paper
Subjective
1- Give the list of two operands which can’t be overloaded. (02)
2- Assign the value correctly in the given code. (02)
3- Given the class code of array of objects and justify if wrong or right. (03)
4- Identify the technique of OOP from the given code. (03)
5- Given the starting code of complex number we have to write the methods of Subtraction overloading multiplication overloading and also their implementations. (05)
6- Correct the errors from the given exam code. (05)
Objective
1-which of the following is the example of accessor function
(a) Getter for getting data members
(b) Copy constructor for creating new objects from existing object
2- A static member function can’t have access to ……………… pointer
(a)- Dangling (b)- This ©- Reference (d)- Null
3- Inheritance can be implemented by
(a) Function overloading (b) Function Overriding © Operator overloading (d) Operator overriding 
4- C1=C1 is the example of
(a) Assignment (b) Self assignment © Compound assignment (d) Multiple assignment
5-Constructor with a different signature , the default constructor is
(a) Overloaded constructor (b) Overloaded function ©Overridden constructor (d)overriding constructor
6-Derived class and base class is behaviorally incompatible with
(a)sub-typing (b) inheritance © extension (d) none
7- Classes are the representations of 
(a)- Model (b)- Object ©- Relation (d)- Inheritance
8- Which of the following function can’t be overloaded?
(a)- ?: (b)- * ©- / (d)- #

Please give me the solutions of Questions...
kal mera paper hai plzz rply fast

By +''_Dua_''+

My Paper MCQs
- Please choose one
___________, which means if A declares B as its friend it does NOT mean that A can access private data
of B. It only means that B can access all data of A.
► Friendship is one way only
► Friendship is two way only
► NO Friendship between classes
► Any kind of friendship
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); (Page 145)
► Rational_number operator+(Rational_number &obj, double& num);
► operator+(double& obj);

Which operator can not be overloaded?
► The relation operator ( >= )
► Assignment operator ( = )
► Script operator ( [] )
► Conditional operator (? : ) 
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); (Page 145)
► Rational_number operator+(Rational_number &obj, double& num);
► operator+(double& obj);

The ________ relationship indicates that an object contains other objects.
► None of given (Page 53)
► ‘has-a’
► ‘is-a’
► ‘be

Which operator can not be overloaded?
 ►The relation operator ( >= )
 ►Assignment operator ( = )
 ►Script operator ( [] )
 ►Conditional operator (? : ) 
Which one of the following terms best represents the statement given below,
” Hiding details of an object from the other parts of a program”
► Obfustication.
► Data Mining.
► Compilation.
► Encapsulation 
Subjective :_____________________________
Q:Friend Fn 2 marks 
Q:constructor k baray may zayada Q thay 
Q:Over loading ka tha 
Q:class k baray may code tha explain karna tha
Consider the class given below explain the order in which variables e,f and g 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)
{

}
Answer:-
The value will give in the way which they are defined in the class.
E=10,f=30 and g=20
overall it was vvvv easy 
best of luck

 

By +''_Dua_''+

Q#1: (5 marks)
Consider the following code:
class Tutor{
int id;
char * name;
public:
Tutor(int, char*){
-------
-------
}
Tutor(const Tutor & obj){
------
------
}
};
Implement copy constructor for the Tutor class by shallow copy and by deep copy.
Q#2 (5 marks)
Consider the following code segment:
class Complex{
private:
double real, img;
public:
// declaration of overloaded subtraction operator 
// declaration of overloaded multiplication operator 
};
// Implementation of overloaded subtraction operator
// Implementation of overloaded multiplication operator
Give the declarations and implementations of each overloaded operator.
Q#3 (3 marks)
What will be output after executing following lines of code, (suppose there is no error and code will be executed correctly), justify your answer as well.
class Student{
static int noOfStudents;
int rollNo;
public:
Student::Student(){
noOfStudents++;
}
Student::~Student(){
noOfStudents--;
}
static int getTotalStudent(){
return noOfStudents;
}
};
int Student::noOfStudents = 0;
int main(){
Student obj1,obj2;
{
Student obj3;
}
cout/p>

Thnks Bro....
#Tahir Siddiqui

RSS

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

+ More Categorizes

© 2017   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service