All Questions
Question

What is the role of file ( ) function? When do we use this function?

Subject Object Oriented Programming
NU Year 2015
Question

Explain the error handling functions for file operation.

Subject Object Oriented Programming
NU Year 2015
Question

what is an exception? How is an exception handled in C++?

Subject Object Oriented Programming
NU Year 2015
Question

What do you mean by object-oriented programming? Describe the main features of object-oriented programming?

Subject Object Oriented Programming
NU Year 2014
Question

What do you mean by dynamic binding? How is it useful in object-oriented programming?

Subject Object Oriented Programming
NU Year 2014
Question

Write the difference between the following terms:-

(i) Data abstraction and data encapsulation

(ii) Objects and classes.

Subject Object Oriented Programming
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?

Subject Object Oriented Programming
NU Year 2014
Question

Describe memory allocation for objects.

Subject Object Oriented Programming
NU Year 2014
Question

"Encapsulation reduce the complexity"-Justify your position.

Subject Object Oriented Programming
NU Year 2014
Question

Write a C++ program to overload +, -, 1, * operator to add, subtract, divide and multiply two float type objects.

Subject Object Oriented Programming
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 {//.......}

Subject Object Oriented Programming
NU Year 2014 2012 2011
Question

Describe the visibility chart for inheritance.

Subject Object Oriented Programming
NU Year 2014
Question What is virtual base class? When do we make a class virtual?
Subject Object Oriented Programming
NU Year 2014 2012
Question Write a sample program to introduce multiple inheritance.
Subject Object Oriented Programming
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.

Subject Object Oriented Programming
NU Year 2014
Question

Compare and contrast dynamic memory allocation and deallocation operators new, new [ ], delete, delete[ ]

Subject Object Oriented Programming
NU Year 2014
Question

Explain the notion of friendship in C++ with an example.

Subject Object Oriented Programming
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?

Subject Object Oriented Programming
NU Year 2014
Question

Explain the multiple meaning of the operator << and >> in C++.

Subject Object Oriented Programming
NU Year 2014
Question

Explain with an example the relationship between base classes and derived classes in C++.

Subject Object Oriented Programming
NU Year 2014
Question

What are virtual functions? Describe a circumstance in which virtual functions would be appropriate

Subject Object Oriented Programming
NU Year 2014
Question

How does polymorphism promote extensibility?

Subject Object Oriented Programming
NU Year 2014
Question

Write a C++ program that inputs a string from the keyboard and determines the length of the string.

Subject Object Oriented Programming
NU Year 2014
Question

List five common examples of exceptions. What happens if an exception is thrown outside a try block?

Subject Object Oriented Programming
NU Year 2014
Question

Describe briefly the features of I/O system in C++.

Subject Object Oriented Programming
NU Year 2014
Question

What is JVM? Why is Java called the platform independent 2 programming language?

Subject Object Oriented Programming
NU Year 2014
Question

What is function overriding and overloading in Java?

Subject Object Oriented Programming
NU Year 2014
Question

What is abstract data type? Discuss about the organization of data and function in OOP

Subject Object Oriented Programming
NU Year 2013
Question

How does object-oriented approach differ from object-based approach?

Subject Object Oriented Programming
NU Year 2013 2011
Question

How do the following statements differ?
(1) Char * const P
(2) Char const * P

Subject Object Oriented Programming
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 to
test the function.

Subject Object Oriented Programming
NU Year 2013
Question

With examples, explain the use of unary and tenary operator.

Subject Object Oriented Programming
NU Year 2013
Question

Differentiate between function overloading and function over-riding.

Subject Object Oriented Programming
NU Year 2013
Question

What do you understand by constructor and destructor?

Subject Object Oriented Programming
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.

Subject Object Oriented Programming
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.

Subject Object Oriented Programming
NU Year 2013
Question

What do you mean by default argument? Describe about ambiguity in case of default argument with example

Subject Object Oriented Programming
NU Year 2013
Question

Describe the mechanism of accessing data members and member functions in the following cases

Subject Object Oriented Programming
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.

Subject Object Oriented Programming
NU Year 2013 2010
Question

Write a C++ program that introduces the. use of static data member and member function.

Subject Object Oriented Programming
NU Year 2013
Question

What is polymorphism?

Subject Object Oriented Programming
NU Year 2013
Question

Explain the concept of early and late binding.

Subject Object Oriented Programming
NU Year 2013
Question

Define abstract base class.

Subject Object Oriented Programming
NU Year 2013
Question

Write a program in C++ that finds the area of different shapes using function overloading.

Subject Object Oriented Programming
NU Year 2013
Question

What is a friend function? Show with suitable code segment how friend function can be defined.

Subject Object Oriented Programming
NU Year 2013
Question

State the importance of virtual function.

Subject Object Oriented Programming
NU Year 2013
Question

What is a copy constructor? Show the use of copy constructor with an example

Subject Object Oriented Programming
NU Year 2013
Question

Mention the application of "this" pointer.

Subject Object Oriented Programming
NU Year 2013
Question

When do we make a class virtual? Discuss with example.

Subject Object Oriented Programming
NU Year 2013
Question

What is a file mode? Describe the various file mode available.

Subject Object Oriented Programming
NU Year 2013
Question

Describe the various approaches by which we can detect the end-of-file condition successfully.

Subject Object Oriented Programming
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.

Subject Object Oriented Programming
NU Year 2013
Question

What are the main purposes of streams in C++? What is reusability?

Subject Object Oriented Programming
NU Year 2013
Question

What do you mean by object-oriented programming? What are the striking features of object-oriented programming

Subject Object Oriented Programming
NU Year 2012
Question

What is the difference between procedure oriented programming and object oriented programming?

Subject Object Oriented Programming
NU Year 2012
Question

What is the role of scope resolution operator? Explain with example.

Subject Object Oriented Programming
NU Year 2012
Question

What is operator overloading? How operator overloading  resembles with function overloading?

Subject Object Oriented Programming
NU Year 2012
Question

What are the rules of binary operator overloading and unary operator overloading?

Subject Object Oriented Programming
NU Year 2012
Question

What happen when friend function is used in operator overloading?

Subject Object Oriented Programming
NU Year 2012
Question

Write a simple program using copy constructor

Subject Object Oriented Programming
NU Year 2012
Question

Encapsulation reduce the complexity-Justify your position.

Subject Object Oriented Programming
NU Year 2012
Question

Write a C++ program showing multilevel inheritance.

Subject Object Oriented Programming
NU Year 2012
Question

Define polymorphism and compile time polymorphism.

Subject Object Oriented Programming
NU Year 2012 2011
Question

What do you mean by multiple inheritance? Explain with simple program

Subject Object Oriented Programming
NU Year 2012
Question

Give a visibility chart for inheritance

Subject Object Oriented Programming
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

Subject Object Oriented Programming
NU Year 2012
Question

What is late binding? Differentiate early binding with late binding.

Subject Object Oriented Programming
NU Year 2012
Question

Why virtual function is important?

Subject Object Oriented Programming
NU Year 2012
Question

Write a C++ program to find out the area of different shape using function overloading.

Subject Object Oriented Programming
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.

Subject Object Oriented Programming
NU Year 2012
Question

Define system design. Explain briefly the steps involved in object-oriented design (OOD) approach.

Subject Object Oriented Programming
NU Year 2012
Question

Why do you need RTII? Suggest some cases where we need to use RTII

Subject Object Oriented Programming
NU Year 2012
Question

What is meant by default argument and volatile function?

Subject Object Oriented Programming
NU Year 2012
Question

Write down the name of two memory management operators.

Subject Object Oriented Programming
NU Year 2012
Question

Distinguish between the following terms
(i) Data abstraction and Data encapsulation
(ii) Object and classes.

Subject Object Oriented Programming
NU Year 2011
Question

Describe about memory management operators used in C++

Subject Object Oriented Programming
NU Year 2011
Question

Explain about inline function and normal function.

Subject Object Oriented Programming
NU Year 2011
Question

What is friend function? What are the drawbacks of friend function?

Subject Object Oriented Programming
NU Year 2011 2009
Question

What are the differences between constructor and destructor?

Subject Object Oriented Programming
NU Year 2011
Question

List the different types of operator used in C++ language and state their purposes.

Subject Object Oriented Programming
NU Year 2011
Question

What are the characteristics of a member functions? 

Subject Object Oriented Programming
NU Year 2011
Question

What do you mean by function overloading and operator overloading ? Slate the rules for Operator overloading.

Subject Object Oriented Programming
NU Year 2011
Question

What is local class? Explain with example

Subject Object Oriented Programming
NU Year 2011 2009
Question

Describe about memory allocation for objects in C++

Subject Object Oriented Programming
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

Subject Object Oriented Programming
NU Year 2011
Question

What is class? How does it accomplish data hiding?

Subject Object Oriented Programming
NU Year 2011
Question

Write a C++ program to overloaded '+' , '-' , '/' and '*' operators to add , subtract , divide and multiply two float type objects 

Subject Object Oriented Programming
NU Year 2011
Question

What does inheritance mean in c++ ? Write down the importance of inheritance

Subject Object Oriented Programming
NU Year 2011
Question

Explain virtual base class? What is the difference between private and protected visibility modifier?

Subject Object Oriented Programming
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. 


Subject Object Oriented Programming
NU Year 2011
Question

Write C++ program to generate Fibonacci series using copy constructor.

Subject Object Oriented Programming
NU Year 2011
Question

What is exception handling and how is it treated is C++?

Subject Object Oriented Programming
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

Subject Object Oriented Programming
NU Year 2011
Question

What is reusability? How do you achieve this in C++?

Subject Object Oriented Programming
NU Year 2011
Question What do you mean by object-oriented programming?
Subject Object Oriented Programming
NU Year 2011 2009
Question

State the features of object-oriented programming

Subject Object Oriented Programming
NU Year 2011
Question

State relation between class and object with example

Subject Object Oriented Programming
NU Year 2011 2009
Question

Explain the data type of C++

Subject Object Oriented Programming
NU Year 2010
Question

How data and functions are organized?

Subject Object Oriented Programming
Question

How data and functions are organized in object-oriented programming ?

Subject Object Oriented Programming
NU Year 2010
Search By
Sort By Marks
Sort By Marks
Check For Filter