Tuesday, January 12, 2010

UNIT I
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


22) On compilation, of C++ source code we get ____ file.
a) . CPP b) .EXE c) .OBJ d) None

23) On linking, of C++ source code we get ____ file.
a) . CPP b) .EXE c) .OBJ d) None

24) ________ functions saves memory space as the code is not repeatedly compiled.
a) Normal b) Inline c) Static d) None

25) The local variables are stored in ______
a) Data segment b) Stack Segment c) Hash Segment d) None

26) The static and global variables are stored in ______
a) Data segment b) Stack Segment c) Hash Segment d) None

27) The “ #include” is said to be a ___________
a) Empty statement b) preprocessor directive c) Pragma d) None

28) ____ is the object used to display information on standard output device.
a) cin b) printf c) cout d) None

29) >> is said to be _____ operator.
a) Insertion b) Extraction c) Put d) None

30) << is said to be _____ operator.
a) Insertion b) Extraction c) get d) None

31) ______ is the manipulator.
a) endl b) setw c) Both a & b d) None

32) _____ is the maximum number of characters in a variable name.
a) 5 b) 32 c) 256 d) 1024

33) ________ is a fixed value throughout the program.
a) Variables b) Constants c) Both a & b d) None


34) ____ is exponent form
a) –14E-2 b) –14-E+2 c) –14-E2 d) None

35) ________ specifies what the variable name is and what type it will hold.
a) Data Type b) Data Declaration c) Both a & b d) None

36) An array is collection of _____ data.
a) Homogeneous b) Heterogeneous c) Both d) None

37) The position in array is represented by ____
a) Subscript b) Indicator c) Both d) None

38) The index of an array starts with __
a) 1 b) 0 c) –1 d) None

39) The maximum number of dimensions depends on ____.
a) Interpreter b) Compiler c) Operating system d) None

40) ________ defines the set of all names that will be permissible values of the type.
a) Structures b) Enum c) Both d) None

41) ______ is a datatype which is used to define heterogeneous set of data types.
a) Structures b) enum c) Array d) None

42) The assignment statement is called ____ statement.
a) Static b) Dynamic c) Put d) None

43) ____ is modulus operator.
a) / b) ^ c) % d) &

44) Type _____ is implicitly done.
a) Casting b) Conversion c) Both a& b d) None

45) Type _____ is explicitly done.
a) Casting b) Conversion c) Both a & b d) None

46) The conditional operators return _____
a) true, false b) 0, 1 c) yes, no d) None

47) The set of compound statements enclosed within { } is said to be _____.
a) Group b) Block c) Stack d) Heap

48) ____ is said to be statement terminator.
a) . b) ; c) : d) –

49) _____ is said to be unconditional branching.
a) If b) Switch c) Goto d) None

50) The loops perform the task until expression evaluates to ______.
a) true b) false

51) In ____ loop , the statements are to be executed atleast once for condition to be verified.
a) While b) DO.. WHILE c) For d) None

52) The functions associated with a class are called.
a) functions b) procedure c) methods d) All

53) The _____ feature ties data and procedures logically together.
a) data hiding b) data encapsulation c) Both d) None

54) The ____ feature is that the data is concealed within a class.
a) Data Hiding b) Data Abstraction c) Both d) None

55) The ____ refers to calls to member functions.
a) Messages b) Overloading c) Both a & b d) None

56) The default access specifier for structures is _____
a) Public b) Private c) Protected d) None

57) The default access specifier for class is ___
a) public b) private c) friendly d) None

58) Automatic initialization is carried out using a special member function called the ____.
a) Starter b) Initialiser c) constructor d) None

59) _______ is invoked when the compiler returns to the calling function.
a) Constructor b) Destructor c) Both a & b d) None

60) _____ is said to be scope resolution operator.
a) : b) :: c) ?: d) None

61) _____ is said to be scope conditional operator.
a) : b) :: c) ?: d) None

62) If a data item in a class is defined as ____, then only one such item is created for entire class.
a) Private b) Static c) Extern d) None


Key for One mark

1 d 2 a 3 b 4 b 5 c
6 b 7 b 8 c 9 b 10 a
11 b 12 a 13 b 14 a 15 b
16 c 17 a 18 b 19 c 20 a
21 b 22 c 23 b 24 b 25 b
26 a 27 b 28 c 29 b 30 a
31 c 32 b 33 b 34 a 35 b
36 a 37 a 38 b 39 b 40 b
41 a 42 b 43 c 44 b 45 a
46 b 47 b 48 b 49 c 50 a
51 b 52 c 53 b 54 a 55 a
56 a 57 b 58 c 59 b 60 b