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

www.vustudents.ning.com

 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

# final past paper.....85 % in paper inshallah...

best of luck...

+ 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?

Views: 1952

.

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

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

Attachments:

### Replies to This Discussion

best of luck...

Attachments:

Thnxx for sharing

cs201 final term papers

Attachments:

cs201 final term papers

Attachments:

cs201 final term papers

Attachments:

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.

Today’s my papr

Of cs 201

Muje bs itney he yad hain dosto               REMEMBR ME IN PRAYERS

Which of the following is NOT a preprocessor directive?

#error

#define

#line

► #ndefine

The appropriate data type to store the number of rows and colums of the matrix is____________.

float

► int (Not sure)

char

none of the given options

Friend function of a class is ______________ .

Member function

► Non-member function

Private function

Public function

The normal source of cin object is,

File

Disk

► Keyboard

RAM

The first parameter of operator function for operator,

Must be passed by value

► Must be passed by reference

Can be passed by value or reference

Must be object of clas

While calling function, the arguments are assigned to the parameters from _____________.

► left to right.

right to left

no specific order is followed

none of the given options

Pointer is a variable which store,

Data

Data Type

Values

All preprocessor directives are started with the symbol______.

*

+

@

► #

Within the statement obj1=obj2; obj1 will call the assignment operator function and obj2 will be passed as an argument to function.

True

False\

What is the sequence of event(s) when deallocating memory using delete operator?

Only block of memory is deallocated for objects

Only destructor is called for objects

Memory is deallocated first before calling destructor

► Destructor is called first before deallocating memory

Unary operator implemented as member function takes ____ arguments whereas non-member function

takes _____ arguments.

One, zero

► Zero, one

One, two

Two, one

The first parameter of overloaded stream insertion operator is _________ where second parameter is

_______

input stream, object of class

object of class, output stream

output stream, object of class

object of class, input stream

While calling function, the arguments are assigned to the parameters from _____________.

► left to right.

right to left

no specific order is followed

none of the given options

The return type of the operator function for operator is __________.

► class for which we overload operator

reference of ostream class (ostream&)

reference of istream class (istream&)

void

The statement cin.get (); is used to,

► Read a character from keyboard

NULL value has been defined in ______ and _________ header files.

strings.h and iostream.h

ctype.h and conio.c

conio.c and conio.h

► stdlib.h and stddef.h (

For cin, the source is normally a ________ and destination can be ______.

File, native data type

Disk, user-define type

► Keyboard, variable

# Subjective

Read the given below code and explain what task is being performed by this function 5 MARKS

Matrix :: Matrix ( int row , int col )

{

numRows = row ;

numCols = col ;

elements = new ( double * ) [ numRows ] ;

for ( int i = 0 ; i < numRows ; i ++ )

{

elements [ i ] = new double [ numCols ] ;

for ( int j = 0 ; j < numCols ; j ++ )

elements [ i ] [ j ] = 0.0 ;

}

}

Hint : This function belong to a matrix class, having

Number of Rows = numRows

Number of Columns = numCols

Which one (copy constructor or assignment operator) will be

called in each of the following code segment?

In this code the matrix function is defined, it get the number of rows from the user and create the row of matrix and then get the columns from the user and create the columns. The New is showing for creating

more array space for the data which user enters.

Q.  Is it possible to define two functions as given below? Justify your answer. 3 marks

func(int x, int y)

func(int &x, int &y)

Q.   Suppose an object of class A is declared as data member of class B. 3marks

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

(ii) The destructor of which class will be called first?

Naeem Awan thanx,,,,,

thankyew so much for sharing files. its very mch helpul and my most of the paper was from these files so fellows inko must stdy kar laina achy se. its also useful in clearing concepts.

Naeem Awan  sb Thanks

CS201-Introduction to Programming.. Todays Paper(01/03/2014)..

1) Write a simplest program using getline functions of an object to read a sentence from the keyboard and then print it on the screen. (2)

2)In how many ways a many a unary operator can be overloaded for a class. write down the decription of each way.(2)

4)Write down the piece of code that will declare a matrix of 3*3 and initialize all its elements with 0. (2)

5)Write the c++ code for declaration of overloaded stream exertion >> and stream insertion operator for the object d of type date.(3)

6) Friendship in classes or functions is granted or taken. How it is granted or taken.(3)

7)Which array operator is used to determine the size of a data type or a variable in the memory (3)

8)How name mangling technique is used by compiler and for what purpose it is used.? (5)

9) Write a program that defines a Tempelate function named Square() which finds the square of a number and then return it. Define one veriable of type float in main function and then call square function on that. Program output should look like this. (5)

" Enter a float value to find its square: 12.3 "

" Square of float numbers is: 151.29 "

10) Given is the code for class myClass (5)

{

private:

int x,y;

public:

myclass()

{

x=0;

y-0;

}

};

You are requierd to performfollowing task in the main() function.

• Prompt the user to enter the number of objects to be created.
• Dynamicaly allocate memory to objects according to the size entered by the user.
• Deallocates memory that was allocated to objects.

11) code of date class (5)

class Date

{

private:

int day, month year;

public:

Date()

{

day=01;

month=01;

year=2000;

}

void display()

{

coutdaymonthyear;

}

};

write the code for dynamicaly creating the array of 10 objects of type Date (using default contructer) and then using loop , call the diplay() function for each of the using loop, call the display() function for each of the objects , In the end , deallocates the memory allocated in objects..... (5)

Rao Umair Waheed  thanks for sharing .best of luck for ur result

Attention Students: You don’t need to go any other site for current papers pattern & questions. Because all sharing data related to current Final term papers of our members 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. Just keep visiting http://vustudents.ning.com/ for all latest updates.

## Latest Activity

M. Saqlain and Sunshine are now friends
8 minutes ago
+ ! ! ! ❣ maho ❣ ! + liked + ! ! ! Ayesha ! +'s discussion important key
24 minutes ago
+ ! ! ! ❣ maho ❣ ! + liked + ! ! ! Ayesha ! +'s discussion important key
24 minutes ago
+ ! ! ! ❣ maho ❣ ! + liked + ! ! ! Ayesha ! +'s discussion What is success?
24 minutes ago
25 minutes ago
25 minutes ago
25 minutes ago
26 minutes ago
26 minutes ago
26 minutes ago
26 minutes ago
26 minutes ago

1

2

3