Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

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

Views: 4416

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 


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


Classes defined inside other classes are called ________ classes

       ► looped


       ► 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



  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?


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

        ► Zero


        ► 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);




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


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

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


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?


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




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












       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>


                       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;
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();

Q5. Write output pf the given code   (2)

a=10 b=5 c=0



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


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 


Looking For Something? Search Below

Latest Activity

VIP Member Badge & Others

How to Get This Badge at Your Profile DP


Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

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

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