Object Oriented Programming
Question What is object-oriented programming? How it is different from the procedure-oriented programming?
NU Year 2015
Question List few areas of application of OOP technology.
NU Year 2015
Question Describe the major parts of a C++ program.
NU Year 2015
Question What do you mean by dynamic initialization of a variable? Give an example?
NU Year 2015
Question What are the advantages of using new operator as compared to function malloc ()
NU Year 2015
Question What do you mean by overloading of a function? When do we use this concept? Describe with an example.
NU Year 2015
Question What is friend function? When do we declare a function as friend function?
NU Year 2015
Question What do you mean by polymorphism in C++? How is polymorphism achieved at compile time and run time?
NU Year 2015
Question How memory allocated for objects?-Explain
NU Year 2015
Question Write a program that swapping private data of classes using friend function.
NU Year 2015
Question What is a constructor? How is constructor overloaded?
NU Year 2015
Question What is a class? How does it accomplish data hiding?
NU Year 2015
Question Write a program that overloads the + operator using an operator + ( ) function.
NU Year 2015
Question what are the different form of inheritance ? Give an example for each
NU Year 2015
Question We know that a private member of a basic class is not inheritable . Is it any way possible for the objects of a derived class to access the private members of the basic class? If yes how? Remember bare class can not be modified
NU Year 2015
Question How do the properties of the following two derived classes differ?(a) Class D1 private B (11-----);(b) Class D2 private B (11-----)
NU Year 2015
Question What is a virtual base class? When do we make a class virtual?
NU Year 2015
Question When do we use the protected visibility specifier to a class member?
NU Year 2015
Question What does this pointer point to? What are the applications of this pointer?
NU Year 2015 2010
Question What is a virtual function?Why do we need virtual functions?
NU Year 2015 2010
Question How do the following two statement differ in operation?(i) Cin >> C;(ii) Cin get (C).
NU Year 2015
Question Write a program that reads a text file and creates another file that is identical except that every sequence of consecutive blank spaces is replaced by a single space
NU Year 2015
Question Distinguish between Java and C+
NU Year 2015
Question What is a stream? Describe briefly the features of I/O system supported by C++
NU Year 2015
Question What is the role of file ( ) function? When do we use this function?
NU Year 2015
Question Explain the error handling functions for file operation.
NU Year 2015
Question what is an exception? How is an exception handled in C++?
NU Year 2015
Question What do you mean by object-oriented programming? Describe the main features of object-oriented programming?
NU Year 2014
Question What do you mean by dynamic binding? How is it useful in object-oriented programming?
NU Year 2014
Question Write the difference between the following terms:-(i) Data abstraction and data encapsulation(ii) Objects and classes.
NU Year 2014
Question What is a constructor ? Write down the main characteristics of constructor function. Is it mandatory to use constructors in a class?
NU Year 2014
Question Describe memory allocation for objects.
NU Year 2014
Question "Encapsulation reduce the complexity"-Justify your position.
NU Year 2014
Question Write a C++ program to overload +, -, 1, * operator to add, subtract, divide and multiply two float type objects.
NU Year 2014
Question What are the implications of the following two definitions?(i) Class A : public B, private C {//.....}(ii) Class A : public C, protected B {//.......}
NU Year 2014 2012 2011
Question Describe the visibility chart for inheritance.
NU Year 2014
Question What is virtual base class? When do we make a class virtual?
NU Year 2014 2012
Question Write a sample program to introduce multiple inheritance.
NU Year 2014
Question Compare and contrast the notions of struct and, class in C++. Provide a constructor that is capable of using the current time from the time ( ) function declared in C++ standard library header < C time > to initialize an object of the time class.
NU Year 2014
Question Compare and contrast dynamic memory allocation and deallocation operators new, new [ ], delete, delete[ ]
NU Year 2014
Question Explain the notion of friendship in C++ with an example.
NU Year 2014
Question Distinguish between the terms “function template” and “function template specialization.” Why might you choose to use a function template instead of a macro?
NU Year 2014
Question Explain the multiple meaning of the operator << and >> in C++.
NU Year 2014
Question Explain with an example the relationship between base classes and derived classes in C++.
NU Year 2014
Question What are virtual functions? Describe a circumstance in which virtual functions would be appropriate
NU Year 2014
Question How does polymorphism promote extensibility?
NU Year 2014
Question Write a C++ program that inputs a string from the keyboard and determines the length of the string.
NU Year 2014
Question List five common examples of exceptions. What happens if an exception is thrown outside a try block?
NU Year 2014
Question Describe briefly the features of I/O system in C++.
NU Year 2014
Question What is JVM? Why is Java called the platform independent 2 programming language?
NU Year 2014
Question What is function overriding and overloading in Java?
NU Year 2014
Question What is abstract data type? Discuss about the organization of data and function in OOP
NU Year 2013
Question How does object-oriented approach differ from object-based approach?
NU Year 2013 2011
Question How do the following statements differ?(1) Char * const P(2) Char const * P
NU Year 2013 2011
Question Write a function power ( ) to raise a number m to a power n. The 7 function takes a double for m and int value for n, and return the result correctly. Use a default value of 2 for n to make the function to calculate squares when this argument is omitted. Write a main ( ) that gets the values of m and n from the user totest the function.
NU Year 2013
Question With examples, explain the use of unary and tenary operator.
NU Year 2013
Question Differentiate between function overloading and function over-riding.
NU Year 2013
Question What do you understand by constructor and destructor?
NU Year 2013
Question Define the keyword “static”. Using this keyword write a program in C++ that keeps count of the number of objects that has been created.
NU Year 2013
Question What is inline function? Write down the advantage and disadvantages of inline function. Write down the situation where inline functions can not work.
NU Year 2013
Question What do you mean by default argument? Describe about ambiguity in case of default argument with example
NU Year 2013
Question Describe the mechanism of accessing data members and member functions in the following cases
Question Describe the mechanism of accessing data members and member functions in the following cases(i) Inside the main program;(ii) Inside a member function of the same class.
NU Year 2013 2010
Question Write a C++ program that introduces the. use of static data member and member function.
NU Year 2013
Question What is polymorphism?
NU Year 2013
Question Explain the concept of early and late binding.
NU Year 2013
Question Define abstract base class.
NU Year 2013
Question Write a program in C++ that finds the area of different shapes using function overloading.
NU Year 2013
Question What is a friend function? Show with suitable code segment how friend function can be defined.
NU Year 2013
Question State the importance of virtual function.
NU Year 2013
Question What is a copy constructor? Show the use of copy constructor with an example
NU Year 2013
Question Mention the application of "this" pointer.
NU Year 2013
Question When do we make a class virtual? Discuss with example.
NU Year 2013
Question What is a file mode? Describe the various file mode available.
NU Year 2013
Question Describe the various approaches by which we can detect the end-of-file condition successfully.
NU Year 2013
Question Write a C++ program to perform the deletion of white spaces such as horizontal tab, vertical tab, Space, line feed, new line and carriage return from a text file and to store the contents of the file without white spaces on another file.
NU Year 2013
Question What are the main purposes of streams in C++? What is reusability?
NU Year 2013
Question What do you mean by object-oriented programming? What are the striking features of object-oriented programming
NU Year 2012
Question What is the difference between procedure oriented programming and object oriented programming?
NU Year 2012
Question What is the role of scope resolution operator? Explain with example.
NU Year 2012
Question What is operator overloading? How operator overloading resembles with function overloading?
NU Year 2012
Question What are the rules of binary operator overloading and unary operator overloading?
NU Year 2012
Question What happen when friend function is used in operator overloading?
NU Year 2012
Question Write a simple program using copy constructor
NU Year 2012
Question Encapsulation reduce the complexity-Justify your position.
NU Year 2012
Question Write a C++ program showing multilevel inheritance.
NU Year 2012
Question Define polymorphism and compile time polymorphism.
NU Year 2012 2011
Question What do you mean by multiple inheritance? Explain with simple program
NU Year 2012
Question Give a visibility chart for inheritance
NU Year 2012
Question When one base class A derive two classes. B and C and this two classes derive one child class D. then what will happen? Is there any problem arises ? Give your solution in this case
NU Year 2012
Question What is late binding? Differentiate early binding with late binding.
NU Year 2012
Question Why virtual function is important?
NU Year 2012
Question Write a C++ program to find out the area of different shape using function overloading.
NU Year 2012
Question Write a C++ program using friend function where a friend function is used in at least three class and make them interconnected.
NU Year 2012
Question Define system design. Explain briefly the steps involved in object-oriented design (OOD) approach.
NU Year 2012
Question Why do you need RTII? Suggest some cases where we need to use RTII
NU Year 2012
Question What is meant by default argument and volatile function?
NU Year 2012
Question Write down the name of two memory management operators.
NU Year 2012
Question Distinguish between the following terms(i) Data abstraction and Data encapsulation (ii) Object and classes.
NU Year 2011
Question Describe about memory management operators used in C++
NU Year 2011
Question Explain about inline function and normal function.
NU Year 2011
Question What is friend function? What are the drawbacks of friend function?
NU Year 2011 2009
Question What are the differences between constructor and destructor?
NU Year 2011
Question List the different types of operator used in C++ language and state their purposes.
NU Year 2011
Question What are the characteristics of a member functions?
NU Year 2011
Question What do you mean by function overloading and operator overloading ? Slate the rules for Operator overloading.
NU Year 2011
Question What is local class? Explain with example
NU Year 2011 2009
Question Describe about memory allocation for objects in C++
NU Year 2011
Question In what sequence constructor and destructor functions are called when you create mute than one object? Explain with an example using both global object and local object
NU Year 2011
Question What is class? How does it accomplish data hiding?
NU Year 2011
Question Write a C++ program to overloaded '+' , '-' , '/' and '*' operators to add , subtract , divide and multiply two float type objects
NU Year 2011
Question What does inheritance mean in c++ ? Write down the importance of inheritance
NU Year 2011
Question Explain virtual base class? What is the difference between private and protected visibility modifier?
NU Year 2011
Question Given the following base class :-Class area_cl{ public : double height; double weight;};Create three derived classes called 'rectangle' isosceles triangle and 'cylinder' that inherit 'area_cl' . Have each class include a function 'area( )' that returns the area of a rectangle isosceles triangle and 'cylinder', as appropriate. Use parameterized constructors to initialize height and width. Write the complete C++ program.
NU Year 2011
Question Write C++ program to generate Fibonacci series using copy constructor.
NU Year 2011
Question What is exception handling and how is it treated is C++?
NU Year 2011
Question Write a C++ program to use base class pointer to point an object of derived class without the need for type casting
NU Year 2011
Question What is reusability? How do you achieve this in C++?
NU Year 2011
Question What do you mean by object-oriented programming?
NU Year 2011 2009
Question State the features of object-oriented programming
NU Year 2011
Question State relation between class and object with example
NU Year 2011 2009
Question Explain the data type of C++
NU Year 2010
Question How data and functions are organized?
Question How data and functions are organized in object-oriented programming ?
NU Year 2010
Question What are the advantages of functions prototypes in C++?
NU Year 2010
Question Differentiate between constructor and destructor?
NU Year 2010 2009
Question Write a C++ program that introduces the use of static data member and static member function
NU Year 2010
Question When do you declare member of a class static? Explain with example
NU Year 2010
Question How are the objects created its memory?
NU Year 2010
Question Write a class to represent time that includes the member function to perform the following:-- Take input for time and hours and minutes- Multiply time by scalar value- Add two times- Display the time in the form hours : minutes
NU Year 2010 2009
Question Write the differences between overloading and operator overloading.
NU Year 2010 2009
Question Explain about inline function.
NU Year 2010 2009
Question When a friend function is compulsory? Explain with example
NU Year 2010 2009
Question Explain with example, how an object of a class contains objects of other classes created?
NU Year 2010
Question What does polymorphism means in C++ language? Now as polymorphism achieved at(i)compile time and (ii) run time?
NU Year 2010
Question When do we make virtual function “pure"? What are the implications of making a function a pure virtual function?
NU Year 2010
Question Create a base class called ‘shape'. Use this class to store two, ‘double'. type values that could be used to compute the area of figures. Derive two specific classes called ‘triangle' and ‘rectangle' from the base ‘shape’. Add to the base class, a member function 'getdata( )'; to, initialize base class data members and another member function 'display-area ( )' to compute and 'display the area of figures. Make 'display-area ( )' as s virtual function and redefine this function in the derived classes to suit their requirements.
NU Year 2010
Question What is file mode?Describe various file mode available
NU Year 2010
Question Write a C++ program to manipulate a stack where push and pop functions are used to help this manipulation.
NU Year 2010 2009
Question Write a simple C++ program to show the use of copy constructor
NU Year 2010 2009
Question What are the striking features of object-oriented programming?
NU Year 2009
Question Write the differences between object-oriented language and object-based language?
NU Year 2009
Question Distinguish between arrays within a class and arrays of objects?
NU Year 2009
Question What is forward declaration of object? When do we need forward declaration?
NU Year 2009
Question How ambiguous situation arised at function overloading? Explain with appropriate example
NU Year 2009
Question What do you mean by dynamic memory allocation? How can you differ 'new' and 'delete' operator with malloc ( ) and free ( ) function on behalf of dynamic memory allocation?
NU Year 2009
Question Can you use the same function name for a member function of a class and an outside (non member ) function in the same program file? If yes how are they distinguished? If no give reasons
NU Year 2009
Question When a base class is inherited as public by the derived class? What happens to its public members? What happens to its private members? If the base has inherited as private by the derived class. What happens to it public and private member?
NU Year 2009
Question What do you mean by virtual function? How does a virtual function help to achieve run time plymorphism?
NU Year 2009
Question Distinguish between water-fall model and fountain model?
NU Year 2009
Question When an operator is overloaded ? Does it lose any of its original functionality?
NU Year 2009
Question Write the output of the following code :include<iostream.h>int x = 50;Void main (void){ int x = 100; { int y = x; int y = 75; count<<y<<endl<<x<<endl<<::x<<endl; } count<<x<<endl<<::x; }
NU Year 2009
Question Distinguish between default constructor and default value constructor? When do you need default value constructor?
NU Year 2009
Question what is oparating system?
NU Year 2018
Question what is object oriented programming?
Institute Ahsanullah Institute of Information and Communication Technology 2018
Question What Is Polymorphism?What Are Instance Variables?
Institute North South University 2013
Question Describe the memory management operators, introduced in C++.
NU Year 2016
Question Why is an array called a dirived data type?
NU Year 2016
Question What is object-oriented programming? How it is different from the procedure-oriented programming?
NU Year 2015
Question What is a class? Ans: A class is simply a representation of a type of object. It is the blueprint/ plan/ template that describes the details of an object.
NU Year 2015