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 files as you receive in your LMS, So it can be discussed/solved timely. Files Upload Here.

# Cs201 All Current Final Term Papers Spring 2013 (20 Jul 2013 ~ 31 Jul 2013)

All Current Final Term Papers Spring 2013

From 20 Jul , 2013 to 31 Jul 2013 Spring 2013

PLZ Share Ur Papers Files Also where u Study + 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: 1482

.

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

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

### Replies to This Discussion

Please Share your Current Papers Final Term Papers Spring 2013 Questions/Pattern here to help each other.

Share your today final term paper here in reply of this discussion

Share Your Current Final Term Papers (Questions/Pattern) from 20 July 2013 to 31 July 2013 to help each other.

cs201 final term papers 200 + pages

CS201_Solved_Final_Papers_249_Pages_File

Attachments:

CS201 Today’s Paper on 20th July 2013

Total Questions                     = 52                 Total Marks    = 80

Total 1 Mark MCQ     = 40                 Total 2 Marks Short Questions = 4

Total 3 Marks Short Questions = 4 Total 5 Marks Long Questions = 4

today's paper!

total questions 52

mcq's 40

subjective 12

1.Suppose an object has a pointer type as data member.    (5 marks)

a) What happen when we assign that object to nother object using default assignment operator?

b)What hppens if we delete one object in the above situation?

2. Write a progrm whhich will open a file named "this.txt" and then using write() function, writes the string "Introduction to programming"         (5)

3. class matrix                      (5 marks)

{

private:

int Elements ;

};

Write the operator function of insertion to this clss.

4. what happens when e use new and delete operators>?     (2 marks)

cs201 paper today at 7 am

totalmarks 80

total questions 52

40 mcqs
subjective two questions 2,2 marks
3 questions 3,3 marks program coding
3 questions 5,5 marks
2 program class sa and 2 program matrix sa 5 marks waly
only one question of two marks is without program and coding

and midd sa kuch nae aaya

MY Long question:

Q1: What are two types of conversion for user-define datatype?

Q2: What will be the output of temple if pass value 5 of integer type

template < class T>

T reciprocal (T x ) {
return 1 / x;
}

Q2: If a structure is passed to function what will default calling conversion (by value or by reference)

Q3:  Write program to print floatg point 1.234 in a 9 digit with precidiog zero

Q4: What is out put of the program

Char msg = “Yaqoob”;

strncat(msg,name,3);

Q5 : write simple program that use getline() of cin obj for reading string of 30 char from keyboard when press enter to output;

Q7 : output of the program

int  n = -77;

cou.width(6);

cout right n endl;

cout.width(6);

cout left n endl;

Q6 : use templeate function square and find the number then return define variable type double in main function…

Q8: conweight into pound forumul give using function solve quesioin

Q9: write program that declar 5 int and display the output following

xxxxxx1000

etc

mcqs

in _______ first pointer store the address of the some other pointer which contain the address of any variable

when call to fuction statement is encountered ____________

to avoid dangling pointer always return ________________

Ali Raza Marchal BSCS[Hon] 2nd thanks keep it up & best of luck for ur result Attention Related Final Term papers Spring 2013: All Fellows You don’t need to go at any other site for current Final Term papers Spring  2013, 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.

Question 1:

Identify each of the following as system software and application  software.

LINUX, DISK CLEANUPWORD PROCESSORWINDOWSSTUDENT  INFORMATION (mark 5)

Q2:

Write the explanation of this program. See program from book pg no534.  (mark5)

Q3: Write a program which defines three variables of type double which  store three different values including decimal points, using set precision

manipulators to print all these values with different numbers of digits  after the decimal number.(5)

Q4 define static variable also explain life time of static variable? (3)

Q5 what do you know about run time error? (3)

Q6 what are limitation of the friendship between classes? (3)

Q7: read the code and explain the functionality of this program? See  page 535 for cod (3)

Q8: write down the meanings of given below line of code, where m is an  object of the class matrix. If (& m = this) (2)

Q9: write the general syntax for the definition of the user defined  function? (2)

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

Q11: write the general syntax of allocation memory dynamically to an  array using new operator? (2)

1.what is diffrent between pointer and variable?

2.What is difference between Unary and binary operators and how they  can be overloaded?

3.how many types of templates?

4.What will be the output of following function if we call this function by  passing int 5?

template T reciprocal(T x) {return (1/x); }

5. Identify the errors in the following member operator function and also  correct them.

math * operator(math m);  math * operator (math m)

{

math temp;

temp.number= number * number;

The errors are in the arguments of the member operation function and  also in the body of operator member function.

Correct function should be  math *operator(math *m);

math *operator (math *m)  {

math temp;  temp = m;

temp.number= number * number;  return temp.number;

Q# 6 what are limitation of the friendship between classes? (marks3)  Q# 7 Read the code and explain the functionality of this program? See page  535

for cod (marks3]

Q# 8 write down the meanings of given below line of code, where m is an  object of

the class matrix. If (& m = this) (marks 2)  Q# 9

write the general syntax for the definition of the user defined function?  (marks2)

Q# 10

what is the source and destination of cin?(marks2  Q# 11

write the general syntax of allocation memory dynamically to an array  using new

operator? (marks2)

Q3: Write a program which defines three variables of type double which  store three

different values including decimal points, using set precision  manipulators to print all

these values with different numbers of digits after the decimal  number.(5)

Q4 define static variable also explain life time of static variable? (3)  Q5 what do you know about run time error? (3)

Q6 what are limitation of the friendship between classes? (3)

Q7: read the code and explain the functionality of this program? See  page 535 for cod (3)

Q8: write down the meanings of given below line of code, where m is an  object of the

class matrix. If (& m = this) (2)

Q9: write the general syntax for the definition of the user defined  function? (2)

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

Q11: write the general syntax of allocation memory dynamically to an  array using new

operator? (2)

Q: define buffer?explain its usage? 5 MARKS

Q: why binary search algorithm is efficient than linear search algorithm?

5 marks

Q: perator function ka syntex(3 marks)

Q: post increment and pre increment k syntex btana thay(2 marks)

Q:what is language translator?(2 marks)

Q: write somethiing something about testing in designing program? 3  MARKS

Q: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?

1) Matrix m1 (m2);  2) Matrix m1, m2;

m1 = m2;

3) Matrix m1 = m2;

CS201 Current Final Paper........!!!

Question 1:

Identify each of the following as system software and application software.

LINUX, DISK CLEANUP, WORD PROCESSOR, WINDOWS, STUDENT INFORMATION (mark 5)

Q2:

Write the explanation of this program. See program from book pg no534. (mark5)

Q3: Write a program which defines three variables of type double which store three different values including decimal points, using set precision manipulators to print all these values with different numbers of digits after the decimal number.(5)

Q4 define static variable also explain life time of static variable? (3)

Q5 what do you know about run time error? (3)

Q6 what are limitation of the friendship between classes? (3)

Q7: read the code and explain the functionality of this program? See page 535 for cod (3)

Q8: write down the meanings of given below line of code, where m is an object of the class matrix. If (& m = this) (2)

Q9: write the general syntax for the definition of the user defined function? (2)

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

Q11: write the general syntax of allocation memory dynamically to an array using new operator? (2)

1. Suppose an object has a pointer type as data member. (5 marks)
a) What happen when we assign that object to another object using default assignment operator?
b) What happens if we delete one object in the above situation?
2. given a class date.define a class person having name,address and date of birth.name and address of character type. (5 marks)
3. how new and delete operators can be overloaded?
4. write prog to write a floating point number in 9-digit width preceding zero like number 12.34

Date: 20-7-2013

Time: 7:00 am

Subjective:

Question 1)

class matrix                      (5 marks)

{

private:

int Elements ;

};

write insertion operator for this class..

Question 2) Create an array of 15 elements which take input from getline function till the delimiter 'comma'.

Question 3) Working of the copy constructor mentioned in the matrix which was the test subject for the last 3 lectures of cs201.

Question 4) main() {

int x= 5;

{

int x =10;

coutx;

}

coutx;

System("pause");

}

Describe the output of this program.

Question 5) main(){

int x =3, y = 4;

char b = 1, i = 0;

if ( x,y,b,i)

{

cout"Exams";

}

}

Describe the output.

Question 6) Then there was a code with a error and we had to identify and remove the error. I can not remember the code but it was regarding dangling pointers.

CS201 Final Term paper Spring 2013 Today 21-07-2013 10 AM

Q41:      What will be the output of following code snippet? (2 Marks)

Q42:      Write down the general syntax for unary operator function? (2 Marks)

Q43:      Why it is meaningless to declare a static variable inside main () function? (2 Marks)

Q44:      Read the given code and explain the code functionality? (2 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

Q45:    Write equivalent template function for the given function? (3 Marks)

Float Celsius (float Fahrenheit)

{

Float Celsius = 0.0;

Celsius = ((Fahrenheit – 32)*5/9;

Return Celsius

}

Q46:    Which one of the given two methods is better to read from a file and why? (3 Marks)

1. Using stream insertion operator>>
2. Using get() function

Q47:    Identify the errors in following member operator function and also correct them? (3 Marks)

math * operator (math m)

{

math temp;

temp.number= number * number;.2

return number;

Q48:    Which one (copy constructor or assignment constructor) will be called in each of the following code segment? (3 Marks)

1) Matrix m1 (m2);

2) Matrix m1, m2;

m1 = m2;

3) Matrix m1 = m2;

Q49:    Write a program using do-while loop to compute and display the product of all integers from 1 to 10? (5 Marks)

Q50:    Write the main function in which you have to add three integer elements in template class queue, and then call print function. After that, remove two elements from the queue.(5 Marks)

Iss ke baad ik lengthy program or code likha hoa tha due to shortage of time I can’t wrote it.

Q51:    Given is the code of Date Class. (5 Marks)

Class Date

{

Private:

Int Day;

Int month;

Int year;

Public:

Date ()

{

Day = 01;

Month = 01;

Year = 2000;

}

};

Write the code for a class person which contain three data number name, and DOB, where Name and Address are char pointer while DOB (Date of Birth) is an object of type Date. This class should also contain a default constructor to initialize all its data members using same default values.

Q52:    Suppose an object has a pointer type as its data member. (5 Marks)

1. What happen when we assign that object using default assignment operator?
2. What happen if we use delete one object in the above mentioned situation?