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: 882

.

+ 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 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 [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.

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



Check this out frndz!!!

I hope it will help you!

Attachments:

My Today CS201 FINAL PAPER (22-7-2013)

Total Questions: 52

40 MCQ’S : 40 Marks                        4 Questions: 2 Marks

4 Questions: 3 Marks                          4 Questions: 5 Marks

(5-7)MCQ’s are from Moaz objective file

 Some MCQ’S are:

 

  • Result of mathematical operation 6+27/3*3 is:

 45               9                 33                30

 

  • Result of the expression z=x%y if x=19 and y=4?

2                 3                 4                 5

  • A precise sequence of steps to solve a problem is:

Program                Utility          Routine                 Statement

 

  • The member function of the class occupy ______ region in memory for ________ objects of class.

Separate, each                 Common, all                   Different, each                 Different, all

 

  • Automatic variable are created on __________

Heap           Free store              Static storage                  Stack

 

  • Templates provide way of abstracting ____ information.

Type                     Data            Method                 Access

 

  • The code is written to _______ a program.

Implement             Design                   Analysis                Test

 

  • ANSI stands for____________
  • STL stands for _______________

 

  • At the time of linking, library functions are available in the__________ form.

Compiled              Text             Run able                Code

 

  • Assignment operator is __________ associated.

Left             Right           Binary                   Unary

 

 

 

 

 

 

Subjective:

 

2 MARKS:

 

  • What is return by new operator?

 

  • What is the equivalent C expression for following algebraic expression?

ax3ay2 + bax2y + abcx

 

  • Write down piece of code that will declare a matrix of 3x3. And initialize all its locations with 0;

Answer:-

int matrix [3] [3] ;

matrix [0] [0] = 0;

matrix [0] [1] = 0;

matrix [0] [2] = 0;

matrix [1] [0] = 0;

matrix [1] [2] = 0;

matrix [1] [2] = 0;

matrix [2] [0] = 0;

matrix [2] [1] = 0;

matrix [2] [2] = 0;

Another answer:-

we can also do it as given below

int matrix [3][3] = { 0 }; //all elements 0

 

  • How can we initialize an object which is declared as constant data member in another class?

 

3 MARKS:

 

  • Write the output of the given code:

 

#include<iostream.h>

Main()

{

          int num [3][2]={12,51,34,54,12,55}

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

cout*(*(num+j)+1)endl;

return 0;

}

 

  • Write simple program that use getline() of cin obj for reading string of 30 char from keyboard when press enter to output;
  • Describe each in one line:

 

Matrix (int =0, int=0);

Matrix (const Matrix&);

≈Matrix();

 

  • Given is the code for nested classes:

Class First

{

Public:

class Second

{

Public:

          Second()

{

          fValue=20;

}

Void Display();

Private:

          Int fValue;

};

};

 

Write these code to define Display() member function of class outside the body of outer class. The function Display() will display the value of data member fValue of class First.

 

 

5MARKS:

 

  • Suppose you want to develop a payroll system of a company having permanent, contract and hourly based employees. Which type of activities would you follow to program this system efficiently?

 

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

 

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

 

  • Template class queue

Class Weight()

{

Private:

          int Kilograms, grams;

Public:

Weight()

{

          Kilograms=0;

          Grams=0;

}

Weight (int k, int g)

{

          Kilograms=k;

Grams=g;

}

};

 

You are required to write the > operator overloading function for comparing the objects of type weight such that if first weight object is greater than second, the function must return true otherwise it should return false.

 

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

 

Answer:-

#include

#include

int main ()

{

double x1 = 12345624.72345

double x2 = 987654.12345

double x3 = 1985.23456

cout setprecision (3) x1 endl;

cout setprecision (4) x2 endl;

cout setprecision (5) x3 endl;

return 0;

}

yr koi upper wale mcqs ko toh solve kardo plzzz ??? :( 

 Shafaq Shafique thanks a lot for sharing ur paper ..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. (Other sites Admins/mods Copy from here & posted at their sites with fake IDs or original name: p). you can judge this at other sites yourself. So don’t waste your precious time with different links.

Today my paper was about multticasting, NAT and ip addreses
Aik q tha error detection scheme jo k size n information k hisab se sab se ziada useful oo konsi hai? Parity aye ga isme
2. Server computers client computer se kaisay different hain 3 features
3Name two networks of by mobility
Fixed an mobile networks ata tha isme
4. Konsi multicasting methodology organization me use hoti hai write complete name of it?
5.Private computers global metwork se kaisay interact karty hain?
6. Aik organiztion ipv6 adopt karna chahti hai to uskay liay konsi motation use oo gi?
7. Ipv4 or ipv6 me kia differneces hain? Detail se btain?
8. Multicasting methodoligy small no of computers and scattered computers k liay konsi use hogi?
9. Yad ni raha

sadaf noreen thanks for sharing ur paper.best of luck 

RSS

Latest Activity

+ !!!R❤G liked + !!!R❤G's discussion Ikhalaq ki ahmiyat
1 hour ago
+ !!!R❤G posted a discussion
1 hour ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
1 hour ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
1 hour ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion How Can You Get Secured of Being Banned On Ning
1 hour ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
1 hour ago
+ !!!R❤G liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
1 hour ago
+ !!!R❤G liked +! ! ! "Asнтαℓғαн's discussion Happy wala Birthday tashy patashy ❤ (Tasha)
1 hour ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion Don't Look for Perfection........ LOVE lies in imperfection
1 hour ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion If you have sOmething stupid to saY............
1 hour ago
+ !!!R❤G liked Waseem Khan's discussion Edu 402 Assinment No. 1 Solution
1 hour ago
+ !!!R❤G liked Moji's discussion MCM301 assignment no 1
1 hour ago
+ !!!R❤G liked + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
1 hour ago
+ !!!R❤G and + ! ! ! ! ! ! ! ! ! AG are now friends
1 hour ago
Zain Arshad replied to + M.Tariq Malik's discussion ENG201 Business and Technical English Writing Assignment No 01 Fall 2019 Solution & Discussion in the group ENG201 Business and Technical English Writing
1 hour ago
Muhammad Rashid liked + M.Tariq Malik's discussion ACC501 GDB Fall 2019 Solution & Discussion
2 hours ago
Sucana Shafiq liked + M.Tariq Malik's discussion CS101 Mid Term Papers Spring 2019 & All Solved Past Papers, Solved MCQs & Helping Material
2 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS302 Digital Logic Design Assignment No 02 Fall 2019 Solution & Discussion in the group CS302 Digital Logic Design
2 hours ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS302 Digital Logic Design Assignment No 02 Fall 2019 Solution & Discussion
2 hours ago
+ ! ! ! ! ! ! ! ! CuTe DrAmA updated their profile
2 hours ago

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

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