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

Current Final Term Papers Spring 2012 Date: 16-July-2012 to 27-July-2012

Current Final Term Papers Spring 2012 Papers, July 2012, Solved Final Term Papers, Solved Papers, Solved Past Papers, Solved MCQs

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

.

+ 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

Please Share your Current Papers Questions/Pattern here to help each other. Thanks

 

Current Final Term papers of this subject will be shared here During Exam.

80 num ka paper 

40 obj most from mast paper specially moaaz 

subjective tuff tha 5 programs or kch ko 5 ai the 

jin me se 3 me ne uper likh die 

aik friend function ko class me declare ker ker bahar us function se cout kerwana tha 

class bani hoe the jst put kerna tha 

1 sawal template ka tha program related wo mjhe ata nhe islie sawal yad nhe 

4 2 num 

3 3 num 

4 5 num ke questions ai 

baqi 40 objec total khair 80 ka tha 

CS201 FINAL TERM PAPER

 DATE: 16-JULY-2012          TIMING : 11 AM TO 1 PM

 

Classes defined inside other classes are called ________ classes

       ► looped

       nested

       ► overloaded

       ► none of the given options.

When the compiler overloads the assignment (=) operator by default then __________

       compiler does member wise assignment.

       ► compiler does not allow default overload of assignment (=) operator

       ► member of the class are not assigned properly

       ► None of the given options

YA QUESTION ESKSI AUR TARHAN POCHA THA JS KA JAWAB THA MEMBER WISE ASSIGNMENT

  MCQ/Q:         Copy constructor       KY BOHAT QUESTION THAY ES KI CONCEPT CLEAR   HONY CHAIN

  MCQ:           stream insertion and stream extraction operators

 

 

   MCQ:           Unary and binary operators

    Q: 2/ 3 number ka tha             

     How many bytes will the pointer iPtr of type hexadecimal aur sath mai value dee hoi thee

        (x—ff51) and jump to the next position and what is the address  iPtr += 4 ;

 

   Which programming tool is helpful in tracing the logical errors?

            Debugger

A template function must have at least ---------- generic data type

        ► Zero

        One

        ► Two

        ► Three

 

  • Dynamic memory allocation ky ab kuch question thay MCQ b aur 2 number ki b

 

  • Constructor enclose the other constructor and tells the how’s destructor call

 

  • For non-member operator function, object on left side of the operator may be

        ► Object of operator class

        ► Object of different class

        Built-in data type

        ► All of the given options

 

           The operator function will be implemented as _____, if obj1 drive the - operator whereas obj2 is

             passed as arguments to - operator in the statement given below.

              obj3   =   obj1 -   obj2;

      Member function

      ► Non-member function

       ► Friend function

       ► None of the given options



          Which one of the following is the declaration of overloaded pre-increment operator implemented as

         member function?

 

       ► Class-name operator +() ;

        ► Class-name operator +(int) ;

        ► Class-name operator ++() ;

        Class-name operator ++(int) ;check from book please


The static data members of a class are initialized _______

       at file scope

        ► within class definition

        ► within member function

        ► within main function

 

life time of static variable?

 

 

  • Es tarhan ka question tha lakin values change thee

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

template <class T>

T reciprocal(T x)

{

return (1/x);

}

Answer:-

0

The output will zero as 1/5 and its .05 but conversion to int make it

zero

Above is prototype of template class so assume passing an int and

  • Post increment and pre increment k syntax btana thay(2 marks)

Answer:

Classname operator ++(); ---- pre increment

Classname operator ++(int) ---- post increment

 

 

  • Es ka pocha tha copy constructor  or assignment

 

Matrix m1 = m2;

 

  • How many arguments a Unary Operator take? Can we make a binary operator as unary operator?

Answer:-

Unary operator takes only one arguments like i++ or i-- (Post increment or post decrement operators for

integers) or ++i,--i (Pre increment or pre decrement operators for integers) ,we can not make Unary

operator as binary or binary as Unary operator.

 

  • Simple function and class function explain

 

  • 5 mark ka ak question tha

 

To calculate the tax 5%  and 7 % to deduct the salary using the switch statement

Full concept of Midterm aur ya question book mai hay kafi ziyda milta hay lakin values change thee lakin idea same tha

 

5 marks ka 2nd question 

-Class String

-Delete pointer

-New sy allocate memory

-Strcpy(s2,s1)

 

Main()

   -String  s, *sptr

 

   Kuch assignment ki hoi thee baki yad nahi Kai problem kahn thee aur ya likha hoa tah kai bad

   programming hay ap khud program lkihoo

   And program mai sy error findout kerny thay aur khud program batana tha kai consi technique  

   bather hhay

 

 

  • *this ponter ka pocha tha

wish you all the best

Nasia Aslam

mera bhi subha paper hay aj to english ka tha acha hogya

mujhe ye 3 sawal ai he as it is 

Write a program which defines five variables which store the salaries of five employees, using setw and setfill manipulators to display all these salaries in a column.

Note: Display all data with in a particular width and the empty space should be filled with character x

Output should be displayed as given below:

xxxxxx1000

xxxxxx1500

xxxxx20000

xxxxx30000

xxxxx60000

 

Answer:

 

#include

#include

main(){

       int sal1 =1000;

       int sal2 =1500;

       int sal3 =20000;

       int sal4 =30000;

       int sal5 =60000;

            

       

cout setfill ('x') setw (10);

cout sal1/p>

cout setfill ('x') setw (10);

cout sal2/p>

cout setfill ('x') setw (10);

cout sal3/p>

cout setfill ('x') setw (10);

cout sal4/p>

cout setfill ('x') setw (10);

cout sal5/p>

                                      CS201

                       Intrtoduction to Programming

 

Q.1. Let we have a class,

class String

{

char buf [25];

};

Write code for assignment (=) operator function which assign one String object to other object. Your code should also avoid self assignment.

 

Q2. Write a program which uses setflag function of cout to display hexadecimal and octal representation of number.

Q3: Write a program that defines a Template function named Square () which finds the square of a number and then return it. Define one variable of type int in main function and then call Square function on that.

Program output should look like this:

Enter an integer value to find its Square: 6
Square of integer number is: 36

Q4: What is the output of following code snippet.  (2)

// class templates
#include <iostream>
using namespace std;

template <class T>
class mypair {
T a, b;
public:
mypair (T first, T second)
{a=first; b=second;}
T getmax ();
};

template <class T>
T mypair<T>::getmax ()
{
T retval;
retval = a>b? a : b;
return retval;
}
int main () {
mypair <int> myobject (100, 75);
cout myobject.getmax();
system("pause");
}

Q5. Write output pf the given code   (2)

a=10 b=5 c=0

a+(2*5)+c/2

 

Q6.Can we call new operator inside constructor function?

Q7. We comment our program liberally. How comment help us? Also tell is they affect the performance.

Q8. what is the source and destination of cin stream?

Q9 and Q10:

 2 question thay jin mai code diya hua tha aur us ka output daina tha. Aik template wala tha aur dusara string wala.

 

MCQ’s zayada tar past papers mai se thay…

                                                                 Remember me in ur prayers

GOOD LUCK

THanks Yamna but kya ap mujey is questions k answer ki koi file send kar sakti hen plz 

 YAMNA  gud & keep it up & keep sharing 

thnx yamna and pray for all of them keep it up

Subjective files upload kar sakte hen jin me se ap ko lagta ho k us files me se question aye the ziyada tar plz wo files upload kar dijiye thanks :)

yar moooaz wale he us me se kerlo 

bht had tak hojae g subj or obj bhe 

RSS

Latest Activity

m.tahir joined + M.Tariq Malik's group
12 minutes ago
MUDASAR SHAKIL liked ♦_"Tooba"_♦'s photo
24 minutes ago
MUDASAR SHAKIL liked jiya's profile
25 minutes ago
Ikra butt posted a status
41 minutes ago
Ikra butt posted a status
"https://www.youtube.com/channel/UCVnIaKstaSmXBwF5-8rTGTw Its YOUTUBE CHANNEL for all solution GDB, ASSIGNMENTS, QUIZZ"
41 minutes ago
+ !♛EMAN FATIMA! joined + M.Tariq Malik's group
43 minutes ago
Shakir Siddiqui posted a status
"Design of FANETs as an Application of Remote Virtual Health Assistant"
45 minutes ago
Ikra butt joined + M.Tariq Malik's group
49 minutes ago
ϝ ι ყ α liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Hamesha sath rehne ki aadat kuch nahin hoti
1 hour ago
+ Iuuoɔǝut + posted discussions
1 hour ago
+ ! ! ! ! ! ! ! ! ! AG replied to + "J ɨ y ą ⋆'s discussion Mohabat
1 hour ago
+ ! ! ! ! ! ! ! ! ! AG liked + "J ɨ y ą ⋆'s discussion Hona chahy tha.......
1 hour ago
+ ! ! ! ! ! ! ! ! ! AG liked + "J ɨ y ą ⋆'s discussion Mohabat
1 hour ago
Aqsa batool liked + M.Tariq Malik's discussion MTH202 Discrete Mathematics Assignment No 01 Fall 2019 Solution & Discussion
1 hour ago
Muhammad Azam liked + M.Tariq Malik's group MTH401 Differential Equations
1 hour ago
Mezab-E-Rehmat liked + Iuuoɔǝut +'s discussion ENG101-Midterm -MCQS- and Subjective Solved With-References By Moaaz 2011
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH631 - Real Analysis II Assignment No 01 Fall 2019 Solution & Discussion in the group MTH631 - Real Analysis II
1 hour ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MTH631 - Real Analysis II Assignment No 01 Fall 2019 Solution & Discussion
1 hour ago
+ M.Tariq Malik added a discussion to the group MTH631 - Real Analysis II
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion PSY101 Introduction to Psychology Assignment No 01 Fall 2019 Solution & Discussion in the group PSY101 Introduction to Psychology
1 hour ago

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

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