Friday 10 October 2014

OOP IMP QUESTIONS



  1.    Explain the Key concepts of Object Oriented Programming?
  2.    Difference between c and c++, disadvantages of conventional programming, programming paradigms.
  3.    a) Explain Memory Management Operators?
  b)  Explain user defined data types? 
4.   a) Explain parts of a function?
 b) Explain the following?
i) Call by values ii) Call by reference..   

Thursday 9 October 2014

#include<iostream.h>
#include<conio.h>
int main()
{
     unsigned long int fact(int);
     unsigned long int f;
     int x;
     cout<<"Enter a Number: ";
     cin>>x;
     f=fact(x);
     cout<<"Factorial of  "<<x<<"  is  "<<f;
     return 0;
}
unsigned long int fact(int a)
{
    unsigned long int factorial;
    if(a==1)
              return 1;
   else
              factorial=a*fact(a-1);
   return factorial;
}