Monday, October 15, 2012

Introduction To OOP


Introduction To OOP

1)     Functions are also called as __________.
a) Subroutines                       b) subprograms                     c) Procedures                       d) All      

2)     POP stands for _______
a) Procedure Oriented Programs                                        b) Program oriented procedure          
c) Procedural oriented programs                                        d) None

3)     OOP stands for _______
a) Object oriental programming                                         b) Object oriented programming
c) Optical Object programs                                                  d) None

4)     ____ is  a feature which we can change the data structure of an object without affecting the
operation of the program.
a) Data encapsulation           b) Data abstraction/hiding    c) Reusability                         d) None

5)     _________ is generally shorter because objects are small and contain independent code.
a) Application debug            b) Application implementation             c) Application testing          d) None

6)     C++ was developed by _________.
a) Denis Ritchie                     b) Bjarne Stroustrup             c) James Gosling                  d) None

7)     It was developed in which year ____
a) 1980                                    b) 1986                                   c) 2000                                    d) 1886

8)     ______ was the first release of C++.
a) 1.0                                       b) 1.1                                       c) 1.2                                       d) 2.0

9)     It was released by ________ company.
a) Microsoft                            b) AT&T                                  c) IBM                                     d) Oracle

10)   C++ is superset of _____.
a) C                                         b)  Java                                   c) VB                                       d) None

11)   _____ is said to be an instance of a class.
a) Variable                              b) Object                                 c) Both a & b                          d) none

12)   ______ is single unit of data and functions that operate on the data.
a) Object                                 b) Class                                  c) Both a & b                          d) None

13)   ________ describes the data and its behavior or functionality.
a) Object                                 b) Class                                  c) Both a & b                          d) None

14)   The method of ________ is the process of dividing into subclasses.
a) Inheritance                        b) Polymorphism                   c) Both a & b                          d) None

15)   A _______ is a data type defined by user describing the data it represents.
a) Object                                 b) Class                                 c) Both a & b                          d) None

16)   In inheritance  the main class is said to be ____
a) Parent class                       b) super class                        c) Base class                        d) None

17)   The concept of _____ provides an important extension to the idea of reusability.
a) Inheritance                        b) Polymorphism                   c) Both a & b                          d) None

18)   ______ allows to create multiple definitions for operators and functions and at run – time depending on the context a particular definition will be used.
a) Inheritance                        b) Polymorphism                   c) Both a & b                          d) None

19)   ___________ is a kind of polymorphism.
a)Overloading                       b) Overriding                         c) Both a & b                          d) None

20)   _____ is a feature by which the operators +,-,etc., can be made to work with our class.
a) Operator overloading      b) Function overloading      c) Both a & b                         d) None

21)   The extension of C++ is _____.
a) C                                         b) CPP                                    c) .CP                                      d) None