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

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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

■CS201 All current final term paper Spring 2015 at one place from 22nd August to 2nd September■

CS201 All current final term paper Spring 2015 at one place from 22nd August to 2nd September.

 

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

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 3229

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

40 mcqs and 12 subjctive questions...
maximum paper was from operatoe overloading topic... so prepare that topic almost 80% paper will cover it

 Jazak Allah.

aoa .today my paper is:

Q:what is the source and destination of cin?(2)

Answer:

For cin, the source is normally keyboard and the destination can be an ordinary variable i.e. native-data type

Variable

Q:Suppose a program has a math class having only one data member number.

Write the declaration and definition of operator function to overload + operator for the statements of main

function.

math obj1, obj2;

obj2= 10 + obj1 ;

Answer:-

#include <iostream.h>

math

{

mth operator + (obj1,obj2)

mth operator + (obj1,obj2)

{

mth operator + (obj1,obj2)

mth operator + (obj1,obj2)

}

}

Q:What is the this pointer? Give an example of its use

Answer:-

This pointer is use to points to the current object in programming.

In a C++ program, if you create object A of class X, you can then obtain the address of A by using the

"this" pointer. The address is available as a local variable in the non-static member functions of X, and its

type is const X*. The "this" pointer works because C++ creates instances of its data members, and it keeps

one copy of each member function.

Q:Write a program which consists of two classes, Date and Person.

Date class should contain three data members day, month, year and setter and getter function for these data

members. Date class should also contain showdate() member function to display date.

Person class should contain three data members Name, Address, and Bday, where Name and Address are

char pointer while Bday(Date of birth) is of type Date, Person class should further contain two member

functions Display() and setdate().

In main program Create an object of Class person and call the member functions with it.

ANSWER:

#include <stdio.h>

#include <iostream>

#include <cstring>

using namespace std;

class Date

{

public:

int day;

int month;

int year;

public:

Date()

{

day=0;

month=0;

year=0;

}

void setDay(int);

void setMonth (int);

void setYear(int);

int getDay();

int getMonth();

int getYear();

void showDate();

};

void Date: :setDay(int d)

{

if{d<1 | | d>31)

cout"Invalid month Renter it";

cin>>d;

}

day=d;

}

void Date: :setMonth (int m)

{

if(m<1 | | m>12)

{

cout"Invalid month Renter it";

cin>>m;

}

month=m;

}

void Date: :setYear (int y)

{

year=y;

int Date: :getDay()

{

return day;

}

int Date: :getMonth()

{

return month:

}

int Date: :getYear()

{

return year;

}

void Date: :showDate()

{

coutday"-"month"-"yearend1;

}

Class Person

{

public:

char *Name;

char *Address

Date Bday;

16

return day;

}

int Date: :getMonth()

{

return month:

}

int Date: :getYear()

{

return year;

}

void Date: :showDate()

{

coutday"-"month"-"yearend1;

}

Class Person

{

public:

char *Name;

char *Address

Date Bday;

public:

Student()

{

Name=new char[20];

Address=new char[10];

cin.getline(Name,20);

cout"Enter Address:";

cin.getline(Address,10);

}

void setDate()

{

cout"Enter Day:";

cin>>Ad_date.day;

cout"Enter month:";

cin>>Ad_date.month;

cout"Enter Year:";

cin>>Ad_date.year;

}

void Display()

{

cout"Name: "end1;

cout"Address: "Addressend1;

cout"Date of Birth: ";

Ad-date.showDate();

}

};

void main()

{

Person object;

object.setDate();

object.Display();

system("pause");

}

BAKI CODE DIY THY OUTPUT BTANA THA.

Dieheart thanks for sharing

my pleasure

MCQ's jo past paer sy thy..............

1-Which one of the following is the declaration of overloaded pre-increment operator implemented as

member function?

► Class-name operator +() ;

► Class-name operator +(int) ;

► Class-name operator ++() ; (Page 389)

► Class-name operator ++(int) ;

2-The stream insertion and stream extraction operators are already overloaded for ______.

User-defined data types

► Built-in data types http://www.sstutor.com/cpp/stream1.htm

User-defined and built-in data types

None of the given options

3-Friend function of a class is ______________ .

Member function

► Non-member function (Page 348)

Private function

Public function

4-A pointer variable can be,

Decremented

Incremented

Multiplied

► Both Iecremented and Decremented (Page 366)

5-When an array is passed to a function then default way of passing this array is,

By data

► By reference (Page 154)

► By value

By data type

6-Friend functions are _____ of a class.

Member functions

Public member functions

Private member functions

► Non-member functions (Page 346)

7-The programs, in which we allocate static memory, run essentially on ________

Heap

System Cache

None of the given options

► Stack (Page 280)

8-What should be the return type of the constructor?

void pointer

int

same as object type

► constructors do not return any thing (Page 313)

9-Which of the following is a valid class declaration?

Ø class A { int x; };

Ø class B { }

Ø public class A { }

Ø object A { int x; };

10-What will be the output of the following statement?

cout setbase(16) 52 ;

Ø 74

Ø 52

Ø 34

Ø 64

11-With user-defined data type variables (Objects), self assignment can produce __________.

Ø Syntax error

Ø Logical error

Ø Link error

Ø Non of the given options

where is download link

RSS

Today Top Members 

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

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

.