www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS201 All Current Final Term Papers Fall 2012 (20 February to 03 March 2013) at one Place

CS201 All Current Final Term Papers Fall 2012 (20 February to 03 March 2013) at one Place

From 20 February to 03 March 2013 Fall 2012

Current Final Term Papers Fall 2012 Papers, Feb 2013 Final Term Papers, Solved Final Term Papers, Solved Papers, Solved Past Papers, Solved MCQs

Please Share your Current Papers Questions/Pattern here to help each other. Thanks

Views: 5673

### Replies to This Discussion

plz explain can,t understand

My Today's Cs201 Paper!!!

Attachments:

SaMra BaToOL thanks for sharing ur paeper to help other

Note for All Members: You don’t need to go any other site for current Final Term papers fall 2012, Because All discussed data/sharing of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

MY CS201 Current Paper:

20-2-2013

Total 52 Qs

40 mcqs …..only 20%  were from past papers:

Subjective Qs were almost 90% from  past papers … Some Qs which I  remember

1)       What happens when we use new and delete operator? (from past papers)

2)       Question: Suppose an object of class A is declared as data member of class B.

(i) The constructor of which class will be called first? Answer A

(ii) The destructor of which class will be called first? Answer B(from past papers)

3) Write a program which defines five variables which store the salaries of five employees, using setw and setfill manipulators to display all these salaries in a column. Note: Display all data with in a particular width and the empty space should be filled with character x Output should be displayed as given below: (from past papers)

xxxxxx1000

xxxxxx1500

xxxxx20000

xxxxx30000

xxxxx60000

4)Overflow condition is used in repetition structure at which point it oocurs?

5)Is it possible to overlad operation for primitive data types.justify yor ans

6) Let we have a class,

class String

{

private: char  buf[25];

}; Write code for assignment (=) operator function which assign one String object to other object. Your code should also avoid self assignment(from past paper)

7)What happen when an object is assigned to another object without overloading an assignment operator?

8)Write function name sum which accepts an integer as a argument in the function use a static variable to add the value passed to it as argument with each function call is the endl display the sum of value pass an argument:

9) Question No: 40    ( Marks: 10 )  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..(from Past Papers.

Paper 20,21,22 ka cancel ho gy thy ab na kb r kdr dea?

paksitan ma cancel huhay thay oversea students k cancel nai huhay thay ..announcement ku ghur say dekhna tha

naheeeeee

Malik sahb ap bandy k munh py marty hn batchi ny poch lea tu jawab to mar nei payir sy dyn  na

AAshi zona ya jawab i think ma nay sab ku 100 say zayada bar diha hai islihay phir thora sa kihana parha

10 marks ka to koi question nai hota tariq malik sb

Samra Batool docx file hy ye tu  :(

Today Final Term Paper Fall 2012
On 21 Feb 2013

Total Questions: 52

Total Marks: 80

Total MCQs: 40 (Each of 1 Mark)
Total Short Questions: 4 (Each of 2 Mark)
Total Short Questions: 4 (Each of 3 Mark)
Total Long Questions: 4 (Each of 5 Mark)

CS201

Q1: (Marks 5) Write a program that defines a Template function named Add () which adds two numbers returns Sum. Define two variables of int type in the main and then call Add () function on that.
Output should be like this:

Adding numbers (don’t remember here what was written)
Enter first number:
12
Enter second number:
25
Sum=37

Q2: (Marks 5) Find the error in the program and then remove this. (Don’t remember the coding)

Q3: (Marks 5) Given the class Data

main()
{
class Date
{
private:
int day, month, year;
public:
day=01;
month=10;
year=2010
}
……………..Dont remember the lines
……………..
……………..

}

Use the dynamically allocation (don’t remember what)
In the last also free memory allocation.

Q4: (Marks 3) Why goto is not recommended to use in programmes?
Q5: (Marks 2) Write two types of data conversions used for used defined data types.
Q6: (Marks 2) Write the following using logical operators:
1. number is both multiple of 4 and 6
2. number is even but not 8
3. answer is either N or n
4. don’t remember this

Q7: (Marks 3) Write the output of the following if “int 5” is passed to the variable:
Template <class T);
T reciprocal (T x);
{
return (1/x);
}
(it was like something. Don’t remember exactly)

Q8: (Marks 3): How can we determine that dynamically memory allocation has been set successfully or not is C++ using the new operator?

1

2

3

4

5

## Latest Activity

10 minutes ago
PatrickMontgomery, DamianTyson and ai con joined Virtual University of Pakistan
13 minutes ago
16 minutes ago
DamianTyson joined + M.Tariq Malik's group

### PSY101 Introduction to Psychology

16 minutes ago
Ifra updated their profile
8 hours ago
10 hours ago
Terry Brown replied to MEHMOOD QADIR's discussion Research Paper
11 hours ago
11 hours ago