We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

0zuhg2li6sifq

Please Share your Current Final Paper of CS201 Introduction to Programming Spring 2013 (20 Jul 2013 TO 31 Jul 2013)

Please Share your Current

Final Paper of CS201

Introduction to Programming

Spring 2013

(20 Jul 2013 TO 31 Jul 2013)

<   CS201 Current Final Papers >>>

  

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


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


Views: 1408

Replies to This Discussion

Aray bhai aap ne kitnay paper diye hai these all paper belong to current paper????????????????????????? ya past paper copy kar diye hai 

Current discussion already started follow the link

http://vustudents.ning.com/group/cs201introductiontoprogramming/for...

Yes 

Dear Fellows,

All of you are requested, Please post Only One Discussion For Current Final Term papers Spring 2013 and everyone reply/share/discussed his/her data on that same discussion, so that all members get data & discuss easily on Current Final Term papers Spring 2013.

So please don’t post two or more discussions for one Current Final Term papers Spring 2013, hope you’ll understand and cooperate with us.

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

1.write down the meanings of given below line of code, where m is an  object of the  

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

2. write input and output streams for the following

get(), put(), getline(), putline()

3.write sequence wise the overloading of assignment operator 5marks.

4. array has 10 numbers (i forgot the exact question m sry)

5. write the general syntax of allocation memory dynamically to an array using new operator?
6. write operators used for operands.

7. 

Matrix::Matrix(const Matrix &m)
{
numRows = m.numRows;
numCols = m.numCols;
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] = m.elements[i][j];
}
}

8. 

class matrix                      (5 marks)

{

private:

int Elements [3][3];

};

Write the operator function of insertion to this clss.


9. recursive call wala b koi question thaa :(

Date: 20-7-2013

Time: 7:00 am

Subjective:

Question 1) 

class matrix                      (5 marks)

{

private:

int Elements [3][3];

};

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.

my today paper of acc501 total question 64

56 mcqs

4 question 3 marks 

4 question 5 marks

total 87 marks

mcqs 40 % from past pappers 

subjective questions are 

numerical 

inventory turn over and inventory period find karay value di hui thi same ques as handouts

earning per share find karay

systematic and unsystematic risk ki example dain.

rate of return ka question tha p1/p0 +g aesa kar k tha value put karni thi

optimal credit policy

define carring cost and restocking cost

aik numerical tha bond k chapter say



Read more: ACC501 All Current Final Term Papers Spring 2013 (20 Jul 2013 ~ 31 ... http://vustudents.ning.com/group/acc501businessfinance/forum/topics...

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?

           

CS201_Current_Final_term_Paper_Spring_2013_21_07_2013_10AM_

Attachments:

mera aaj cs201 ka paper tha.

about 50% mcqs from past papers and remaining new mcqs...
long questions....
Q.....Date class was given,,,,i needed to display its objects.
Q.....Template class mn int and double k liye conversion bnani ti
Q.....THIS pointer ka question tha.
Q.....aik switch statment ka question tha,,,v simple and easy.
Q.....manipulator ka ik question tha......**** k liye manipulator bnana tha and then Virtual****University display krna tha...
Q....new and delete operators pe likhna tha kuch.
bas or bhi the paryad ni hain....
plz remember in prayers



faisal dar konsa paper upload kr rha ha yeh page to sirf current papers ka ha 

CS201 Final Paper 21 July 2013 --  MCQS

Attachments:

RSS

Looking For Something? Search Here

Latest Activity

Zoey D replied to +!!! Alan Walker!!!'s discussion Dosri shaadi....Mani bro soch lo:-P
17 minutes ago
Zoey D replied to Zoey D's discussion * Aks paani men*...!!!!
22 minutes ago
Zoey D replied to Zoey D's discussion Udaas q ho..????
25 minutes ago
Zoey D replied to Zoey D's discussion Udaas q ho..????
25 minutes ago
Zoey D replied to Zoey D's discussion Behtar Hei.....!!!
26 minutes ago
Zoey D liked Zoey D's discussion *¨*• ♡ Kia bht zarori hei.. ♡ •*¨*??
32 minutes ago
Zoey D liked Zoey D's discussion Hath khali hen tery shehr sei jaty jaty ... !!
32 minutes ago
Zoey D liked Zoey D's discussion * Aks paani men*...!!!!
32 minutes ago

HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

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

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

.