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.

AJ k paper ma kiya kiya aya  

Share kren

+ 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: 914

.

+ 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

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

Mcq's were mostlly related to classess, templates, operator overloading and functions.

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 [3][3];

};

Write the operator function of insertion to this clss.

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

bus ye yad hy!

thanks for sharing 

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

How many mcq's were from the past papers?

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 name[10] = “Asad”;

Char msg[10] = “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

Q10:  question from operator overloading date ke overloading krne the…

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.

Thanks for sharing

In my paper

MCQs were 80% from the file of moaz

and othe 20% were from static vaiable

long queestions were 40% from moaz file 

Identify the errors in the following member operator function= 3 marks


and also correct them.
math * operator(math m);
math * operator (math m)
{
math temp;
temp.number= number * number;
return number;
}

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 ;
}
}

Read the given below code and explain what task is being performed by
this function
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 ;
}
}

sea thanks  

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;  

return number;  Answer:   

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;  




RSS

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

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

.