PART-A
- A sequence of instruction that a computer can
interpret and execute to complete task is called ____ ?
(A) Computer
program (B) Assembly language
(C) System program (D)
Instruction set
- ________ stands for a sequence of commands or
statement which modify data which is program.
(A) Main program (B)
Class
(C) Sub program (D)
None of these
- _____ were adopted for better understanding of
the program.
(A)
Subroutine (B)
Structure
(C) Pointers (D)
Header files.
- Structured programming also known.
(A) System oriented program (B)
Calling oriented program
(C)
Procedure oriented program (D)
Data oriented program
- _________ use to invoke the procedure?
(A) Object (B)
Preprocessor
(C) Class (D) System call
- _______ is responsible to pass data to individual
calls.
(A) Class (B) Main program
(C) Object (D)
Sub routine
- In a modular procedure of a common functionality
are grouped to gather into separate ______
(A) Function (B) Module
(C) Object (D)
None of these
- An object is a self contained unit or module of
______
(A) Data (B) Data & code
(C) Code (D)
None of these
- object help partion complex problem into simpler
one that are ______
(A) Easier to implement (B) Shorter to application testing
(C) Easier to isolating & correcting bugs (D) All of these
- _________ a feature with all object oriented
language make it possible to change the data structure of an object
without affecting the operation of the program.
(A) Inheritance (B)
Polymorphism
(C) Encapsulation (D) Data hiding
- The state of an object is the
(A)
Condition of the object (B)
Location of the object
(C) Method of an object (D) Data value of an object
- If object is capable of spontaneously changing
its own state, we refer to its as____
(A) Object with change (B)
Variable object
(C) Object
with life (D)
State switching
- A _______ is a class whose in status them selves
are classes.
(A) Parameterized class (B) Meta
class
(C) Templates (D)
Non-class
- A _____ is can be viewed as a “fill in the
blanks” version of a class.
(A) Meta class (B)
Non-class
(C) Object (D) Parameterized class
- _______ are “block boxes”
(A) Object (B)
Class
(C) Interfaces (D)
None of these
- The process of creating a new object form two or
more other object is called.
(A) Factory method (B)
Object initialization
(C)
Aggregation (D)
Specialization
- The process of defining a new object based on a
more narrow definition of an existing object.
(A) Aggregation (B)
Reusability
(C)
Specialization (D)
Generalization
- ____ can be defined as the process where by one
object acquire characteristics from one or more other object.
(A) Data hiding (B) Inheritance
(C) Encapsulation (D)
polymorphism
- The concept of ______ provide are important
extension to the idea of reusability.
(A) Inheritance
(B)
Data hiding
(C) Encapsulation (D)
Polymorphism.
- Once a class has been written, created and
debugged, It can be distributed to other program for use in their own
program, this is called.
(A) Encapsulation (B)
Data abstraction
(C) Interface (D) Reusability
- Which of the following is not ignored by
compiler?
(A) Carriage returns
(B)
Line feeds
(C)
Identifiers (D)
All of these
- _________ are a part of ‘C++’ , which have a pre
defined meaning and can not be changed.
(A) Auto (B)
Do
(C) Static (D)
Size of
- _____ enables the programmer’s to assign and
manipulate data using symbolic name.
(A) Identifier (B)
Keyword
(C)
Variables (D)
Operators
- In C++, usually ______ is the maximum length of
the variable.
(A) 8 (B) 32 (C)
16 (D)
128
- Which of the following is not an integer
constant?
(A) 14 (B)
-32 (C)
0 (D) +14
- In a 16-bit word length machine the integer
values lie between.
(A) 0-65535 (B)
-32767-32768
(C) -32768-32767 (D)
-65535-0
- Short int. represents fairly small integer values
and requires _____ the amount of storage as a normal int uses.
(A) Same (B)
Twise
(C) Half (D)
One-fourth
- In C++, a 16 bit machine the range of unsigned
integer is _________
(A) 0-65,535 (B)
0-32767 (C)
-32768-32767 (D)
-32767-32768
- Long double data type variable occupy-byte in
memory.
(A) 4 (B) 8 (C)
10 (D)
12
- >> is the _______ operator.
(A)
Extraction (B)
Insertion
(C) Size of (D)
Conditional
- Enum days-week {sum=1, man, tue, wed, = 1, thur,
fri, sat, } the value of thur is
(A) 0 (B)
5 (C) 2 (D)
4
- Functions associated with a class are called
______
(A) Base function (B)
Class function
(C) Methods (D)
Encapsulation
- ______ have the syntax of variable definitions
and specify the representation of the class objects.
(A) Data
members (B) Class (C)
Object (D)
None of these.
- _____ have the syntax of function prototypes and
specify the class operation also called the class interface.
(A) Member
function (B)
Data member
(C) Both A & B (D)
None
- _____ member can be amused by member and objects
of the class.
(A) Public (B)
Private (C)
Protected (D) None
of these
- Automatic initialization of object is carried out
using special member functions called the:
(A) Annotation (B)
Private member
(C)
Constructors (D)
None of these
- ______ is activated when the object is destroyed
automatically when the program ends.
(A) Constructors (B)
Static object
(C)
Deconstructions (D)
Destructor
- A destructor has the same name as the class
proceeded by
(A) ~ (B)
! (C)
< > (D)
;
- If an object is used as a local variable in a
function, the ______ is invoked when the compiler returns to the calling
procedure.
(A) Constructor (B)
Destructor (C)
Member function (D) Arguments
- A class can allow non-member function and other
classes to avers its own private data, by making them as:
(A) Friends (B)
Overloading (C)
Static (D)
None of these
- Is C++ a char data type is promoted to _____ data
type.
(A) Varchar (B) Int (C)
Float (D)
String s
- Modulus operator (%) only work for _
(A) Char (B) Int (C)
Float (D)
Spring
- In C++ the presidency of ‘division &
multiplication’ is _______ than addition & subtraction.
(A) Higher (B) Lower (C)
Same(equal) (D) Both A
& C
- The integer value is automatically converted to
type float for calculation. Such automatic conversion are known _______.
(A) Explicit (B) Forcefully (C) implicit (D) Structured
- Which of the following is not an relational
operator.
(A) && (B)
11 (C)
! (D) !=
- When the program code refers to a variable, the
compiler generate _________
(A) Assembly (B) Machine (C) Low level (D) High levels
- _____ variable is a global variable which is only
accessible with in its local scope.
(A) Auto (B)
Extern (C) Static (D) Locals
- Static local variables are automatically
initialized to ________
(A) 0 (B)
9 (C)
Garbage (D) Null
- _____ inform the compiler that size is actually
defined some where.
(A) Auto (B) extern (C) Static (D) local
- ______ can be defined as just a symbol that tells
the compiler to perform certain mathematical or logical manipulation.
(A) Identifiers (B)
Manipulator (C)
Separate (D) Operator
- The integer value is automatically converted to
type float for the calculation, such automatic conversions are known as
_______ conversion.
(A) Explicit (B) Implicit (C) Forcefully (D) None of these
- Which of the following in not an relational
operator.
(A) ! = (B) ! (C)
> = (D)
= =
- ____ operator are symbols that are used to
combine expression containing relational operator.
(A) Assignment (B)
Conditional (C)
Bitwise (D) Logical
- The label placed ________ go to statement. s
(A) Before (B)
After (C) Either before or after (D) Between
- Which the following is exit-controlled loop
(A) For (B)
While (C) Do-while (D) Both B & C
- Which of the following is a correct for loop
system.
(A) For (initialization, test condition; expression);
(B) For (test condition :metallization :modifier
expression
(C) For(test condition; initialization; modifier
expression
(D)
For(initialization; test condition; modifier expression)
- While loop is an ___ loop.
(A) Entry
restricted (B) Exit restricted (C)
Both A & B (D) None
of these
- In a do-while loop, the statement must execute at
least ____ time.
(A) 0 (B) 1 (C)
2 (D)
3
- Continue statement causes the loop to be
continued, with the ______
iteration after updating the control variables, without executing
the rest of the statement in the loop.
(A) First (B)
Last (C) Next (D) Previous
- The term ______ mean providing multiple
definition
(A) Friend function (B)
Encapsulation (C) Overloading (D) Static class
- Casting provides explicit conversion between:-
(A) Variables (B)
Constant (C)
Object (D) Data types
- _________ make it possible to define a variation
of class with out redefining the new class from scratch.
(A) Aggregation (B)
Encapsulation (C) Inheritance (D) All of these
- A derived class is like on ordinary class except
that its definition is based on one or more existing classes called.
(A) Base
classes (B) Inherit classes (C) Member classes (D) Child classes
- A class can be derived form more than one base
class. This is called
(A) Multi-level
inheritance (B) Multiple inheritance
(C) Hybrid inheritance (D)
None of these
- A _________ is simply the address of a memory
location and provides an indirect way of accessing data in memory.
(A) Operator (B) Pointer (C) Structure s (D) Class
- The symbol of address operator is
(A) & (B)
* (C)
: : (D)
:
- The _____ operator takes a type as argument and
allocated a memory block for on object of that type.
(A) New (B)
Create (C)
Delete (D)
Free
- The ______ pointer is used as a pointer to the
class object instance by the member function.
(A) This (B)
Super (C)
Final (D)
None
- Using ______ you can create new objects that
perform the same function as the object but which perform one or more of
these function in a different way.
(A) Inheritance (B) Encapsulation (C) Abstraction (D) Pointer
- A ______ is an abstract idea that can be
represented with data structures and functions.
(A) Class (B)
Object (C)
Pointer (D)
Structure
- ______ gives you the opportunity to redefine the
C++ operator. Within a class.
(A) Data overloading (B)
Function overloading
(C) Operator
overloading (D)
class overloading
- The ______ combines data and function into a
single programming unit
(A) Structure (B) Class (C) Object (D) instance
- Functions associated with a class are called
________
(A) Variables (B)
Return type (C)
Arguments (D) Methods
- ____ tied data and procedure are tied together
logically.
(A)
Encapsulation (B) Inheritance (C)
Polymorphism (D) Abstraction
- In C++ which of following not a access
permission.
(A) Public (B)
Private (C)
Protected (D) Private-protected.
- This library function must be executed before any
other graphics mode function can be used.
(A) Graphic
.h (B)
Stdio.h (C)
Conio.h (D)
Math.h
- On a 640X.200 resolution screen get max x( )
return.
(A) 639 (B)
199 (C)
640 (D)
200
- Syntax of line ( ) function is ______
(A) Line (start _ col, Start _ row, end _ col, end _
row)
(B) Line (start _col, start _row, end_col, end_row);
(C) Line (start _col, end_col, start_col, end_row)
(D) Line(start_ col, end_col, start_row , end_col );
- __________ function must be used when no more graphics routine are to be used.
(A) Close graph ( ); (B)
Free ( ); (C) Clear device ( ); (D) None of theses
- This function is used to specify the font,
direction and character size to be used for subsequent text output I
graphics mode.
(A) Out text ( ) (B)
Out text xy ( ) (C) Set text style ( ) (D) Flood fill ( )
PART-B
- State true or false _
(A) Fixed list can not be empty
(B) Fixed list can contain maximum no. of element
(a) TT (b)
FF (c)
TF (d) FT
- An exception will continue to be sent to higher
levels of application untill
(A) Turned off
(B) Application ceases to function.
(a) TT (b) FF (c)
TF (d)
FT
- T/F
(A) Error code con not be ignored
(B)
Exception can be ignored
(a) TT (b) FF (c)
TF (d)
FT
- State true or false _
(A) After compiling. Obj. created.
(B) After linking.exe. file created.s
(a) TT (b)
FF (c)
TF (d)
FT
- (A) The return type of main function.
(B) Return type can appear before or after the
function name. s
(a) TT (b)
FF (c) TF (d)
FT
- State true or false _
(A) Program execution always begins from main.
(B) A stream is an object of print stream class.
(a) TT (b)
FF (c) TF (d)
FT
- Which is following is correct sequence for
“<<,>>”
(A) Output
operator, input operator.
(B) Input operator, output operator.
(C) Input streams, output streams
(D) Output streams, i/p streams
- State true or false _
(A) In a linking process the object file select like
from the compile menu.
(B) During linking OBJ file will be combined with the
one or more library files.
(a) TF (b)
FT (c) TT (d)
FF
- The class combines _______ and ________ into a
single programming unit
(i) Data (ii)
Function (iii)
Operator (iv)
Header
(a) i, ii (b)
ii, iii (c)
iii, iv (d)
iv, i
- An encapsulation _____ & _____ are tied together logically.
(i) Data (ii)
Procedures (iii)
Object (iv)
Class
(a) i, ii (b)
ii, iii (c)
iii, iv (d)
None
- A class definition consists of two parts:-
(i) Header (ii)
Object (iii)
Class (iv)
Body
(a) I, ii (b)
ii, iii (c)
iii, iv (d) I, iv
- ____ & _____ are two types of protection
available within a class.
(A) Public (B)
Private (C)
Constructor
(a) I, ii (b)
ii, iii (c)
iii, i (d)
None
- Public member can be accessed by _____ and _____
of the class.
(i) Member (ii)
Class (iii)
Object
(a) i, ii (b)
ii, iii (c) I, iii (d) All
- State True/False according to constructors.
(A) A constructor is a member function that is
executed automatically when ever an object is created.
(B) a constructor always has the different name as the
class itself
(a) TT (b) TF (c)
FT (d)
FF
- State true/false
(A) Destructor have no return value.
(B) Destructor take no arguments.
(a) FF (b)
FT (c)
TF (d) TT
- If a data item is class is defined as _____ then
one suet item is created for the entire class no matter how many objects
there
(A) Static (B)
Dynamic (C)
Constructor (D)
Destructor
- State true/false according to destructor:-
(A) This is also a member function of class (B)
Destructors work just like a constructor
(a) FF (b) TF (c)
FT (d)
FF
- The conversion between ______ and ______ needs a
separate routine to define the conversion.
(i) Variables (ii)
Keywords (iii)
Object (iv)
Data types
(a) i, ii (b)
ii, iii (c) iii, iv (d) i, i
- Syntax for drive class is
(A) Class : public/pribate/proteded base-class name
(B) Class derived class name : public/private/protected base_class_name.
(C) Class base-class-name : public/private/protected (D) None of these
- State true/false
(A) The new operator used in destructor. (B) The
delete operator used as constructor.
(a) TT (b)
TF (c)
FT (d) FF
- C++ provides two kinds templates-
(i) Function templates (ii)
Operator templates (C)
Class templates
(a) i, ii (b)
ii, iii (c) i, iii (d) All
- State T/F
(i) Function templates are implemented like regular
functions except they are post fixed
(ii) A class template definition looks a regular class
definition, except it is prefixed by the keyword template.
(a) TT (b)
TF (c) FT (d)
FF
- State True/False
(A) This pointer is not counted for calculating the
size of the object.
(B) This pointer are not modifiable.
(a) TT (b)
TF (c)
FT (d)
FF
- Function are called as:-
(i) Subroutines (ii)
Sub program (iii)
Procedures
(a) i, ii (b)
ii, iii (c)
I, iii (d) All
- Dividing a program into functions is called _____
or ____.
(i) Object program (ii)
Structured programming (iii)
Procedure oriented program
(a) i, ii (b) ii, iii (c) I, iii (d) None of
these
- The syntax of creating or declaring is :
(A) Data type & reference name = variable name; (B) Data type &
reference name = variable name
(C) Reference name & data types = variable name ; (D) Data types & variable
name = reference name
- Polymorphism is supported by C++ both at ______
and at ______
(i) Compile time (ii)
Variable declaration time (iii)
Run time (iv)
Object creation time
(a) i, ii (b)
ii, iii (c)
iii, iv (d) i, iii
- Run-time polymorphism is accomplished by using
_______ and _______
(i) Inheritance (ii)
Virtual function (iii)
Static binding
(a) i, ii (b)
ii, iii (c)
I, iii (d)
None of these
- The expression, a=7/22*(3.14+2)*3/5 evaluates to
(A) 8.28 (B)
6.28 (C)
3.14 (D) 0
- Match the following
(A) Class header (i) Name
(B) Class body (ii) Base
Class
(iii) Data member
(iv)
Member function
(a) A-i, ii (b)
A-i, iv (c)
A-ii, iii (d)
A-iii, iv
B-iii,
iv B-ii, iii B-I, iv B-i, iv
- (A) Data member (i)
Syntax of class
(B) Member function (ii) Base class
(iii) Data member
(iv) Member function
(a) A-I, ii (b)
A-i, iv (c) A-ii, iii (d) A-ii, iii
B-iii, iv
B-ii, iii B-I,
iv B-I, ii
- ________ that is the data is concealed within a class, so
that it can not be accessed mistaken by function out side the _________
(A) Abstraction, Sub class (B) Data hiding, class
(C) Inheritance, super class (D)
None
- A virtual function that is declared but not
define in a base class is referred to as a _____
(A) Virtual function (B)
Pure virtual function (C)
Normal virtual function (D) None
- If a is a integer variable a=5/2; will return a
value
(A) 2.5 (B)
3 (C) 2 (D)
0
- State true/false:-
(A) The driver is a file with the extension BGI. (B) Each type of
hardware regular same driver
(a) TT (b)
FT (c) TF (d)
FF
- Files types are _
(A) Octal files (B)
ASCII files (C)
Binary files
(a) i, ii (b) ii, iii (c) I, iii (d) None
- State true/false
(A) ASCII files created by storing a block of memory
(B) Binary files are those files created by storing
each character.
(a) TT (b)
TF (c)
FT (d) FF
- To get the contents from the file you use the
function read while takes two argument.
(i) A pointer to the block (ii) Size of a the block
(iii) Number of variable
(a) i, ii,
iii (b)
ii, iii (c)
I, iii (d)
None
- Format specified of short is ________
(A) %d (B)
% h d (C)
% s d (D) %
- A provide a convenient way of packaging a
computational recipe.
(A) Function
(B)
Class (C)
Object (D)
Header file
PART-C
- Match the followings :-
(1)
|
Public
|
(M)
|
Members are accessible by all class users.
|
(2)
|
Private
|
(N)
|
Member are only accessible
|
(3)
|
Protected
|
(O)
|
Member are only accessible by the class members and
the member of a drived class
|
(A) 1 – M, 2
– N, 3- O (B) 1 – N, 2 – M, 3-O (C)
1– M, 2 – O, 3-N (D) None of
these
- State true/false according to inline function.
(A) Inline function is not reusable
(B) Inline function leads to a more readable program.
(C) Inline function avoid undesirable side effects
when arguments is it self an expression with side effects.
(a) TTT (b)
TFT (c) FTT (d)
TFF
- All operators can be overloaded except.
(i) . (ii) .* (iii)
: : (iv)
#
(a) i, ii, iii (b)
ii, iii, iv (c)
i, iv, v (d) All
- The syntax of overloading unary
operators:________
(A) Return
type operator unary operator (argument)
{function
body}
(B) Operator return type unary operator (argument)
(C) Unary operator return type (arguments)
{function
body}
(D) None of these
- Match the followings :-
(1)
|
Composite object
|
(A)
|
Externally discernible structure
|
(2)
|
Heterogeneous composite object
|
(B)
|
No externally discernible structure
|
(3)
|
Homogeneous composite object
|
(C)
|
Member are only accessible by the class members and
the member of a drived class
|
(4)
|
Monolithic object
|
(D)
|
Composition of same components object
|
(A) 1 – B, 2
– C, 3- D, 4 - A (B)
1 – C, 2 – B, 3-A, 4-D
(C) 1– D, 2 – A, 3-B, 4-C (D)
1 - A, 2 - C, 3 - D, 4 -B
- Once exception is activated ?
(i) Control is
transferred to a vocally defined exception handle
(ii) Handling exception (iii)
Normal execution stop
(iv) Exception propagate to higher level of the
application
(a) i, ii, iii,iv (b)
ii, I, iv, iii (c) iii, I, iv, ii (d) iii, 1, iv, ii
- Which in the following is a correct sequence of
program execution _
(A) Loading,
linking, compiling, executing (B)
Linking, loading, compiling, executing
(C) Compiling, linking, loading, executing (D) Loading, compiling, linking, executing
- Match the followings :-
(1)
|
Compile
|
(A)
|
Ctrl + F9
|
(2)
|
Run
|
(B)
|
Alt+F5
|
(3)
|
User screen from window
|
(C)
|
ESC
|
(4)
|
Return to window
|
(D)
|
Alt + f9
|
(A) 1 –D, 2
–A, 3- B, 4 -C (B) 1 – A, 2 – B, 3-C, 4-D
(C) 1– D, 2 – B, 3-A, 4-C (D) 1 - B, 2 - C, 3 - D, 4 -A
- Which in the following is a correct sequence of
program execution _
(i) # include
is a preprocessor directive (ii)
iostream.h is a standard i/p, o/p header file
(iii) A function must have one or more parameter (iv) Void is a return
type of main function
(A) TTTT (B)
TFTF (C)
TFFT (D) TTFF
- Match the followings :-
(1)
|
CPuts ( )
|
(M)
|
This function erases the text window
|
(2)
|
C\rscrc ( )
|
(N)
|
This function writes a string of text to a window
|
(3)
|
Putch ( )
|
(O)
|
This library function position the cursor with in a
text window
|
(4)
|
Gotoxy ( )
|
(A) 1 – N, 2 – O, 3- P, 4-M (B) 1 – N, 2 – M, 3-O, 4-P
(C) 1– O, 2 – N, 3-P, 4-M (D) 1 - O, 2 - P, 3 - N, 4-M
- Match the followings :-
(1)
|
Int
|
(M)
|
% hd
|
(2)
|
Long int
|
(N)
|
% e
|
(3)
|
Character
|
(O)
|
% d
|
(4)
|
Short int
|
(P)
|
% C
|
(Q)
|
% ld
|
(A) 1 – O, 2 –
Q, 3- P, 4-M (B)
1 – O, 2 – P, 3-Q, 4-M
(C) 1– O, 2 – N, 3-M, 4-P (D)
None of these
- State true/false:-
(i) The modulus
operator is represented by the %
(ii) 11 mod 2 is represented in C++ a 11%2 and result
is 5
(iii) a+ = 5 is equal to a= a+5
(A) TTT (B)
TTF (C) TFT (D)
TFF
- # include < iostream.h>
class counter
{ private
unsigned int count,
public
: counter ( ) { count = 0;}
int
get _ count ( ) { return count }
void
operator + + ( ) { count ++;}
};
Void
main ( )
{ counter C1, C2;
Cout
<< “\M C1 = << C1.get_count ( );
Cout
<< “\t C2 = << C2.get_count ( );
C1 ++;
C2 ++; ++C2;
Cout
<< “\n C1 = “ << C1.get_count ( );
Cout
<< “\t C2 = “<< C2.get_count ( )’
}
output of above program is _______
(A) C1 = 0
C2 = 0 (B) C1 = 0 C2 = 0 (C) C1 = 0 C2 = 1 (D)
None
C1 =
0 C2 =1 C1 = 1 C2 = 2
C 1= 1 C2 =2
- A ____ receive the argument passed to it and
works directly on it
(A)
Value parameter (B) Reference
parameter (C) Local
parameter (D) Function parameter
- State true/false:-
a.
Usually a break
statement may not appears inside a is-else
b.
A function
provide a convenient way of packaging a computational recipe
(A) TF (B) FT (C)
FF (D) TT
- The interface (prototype) of a function consist
of entities.
(i) Function
name (ii) Function parameter
(iii) Return type (iv)
Data type
(A) I, ii,
iii (B)
I, ii, iv (C)
I, iii, iv (D)
All of these
- State true/false
a.
A reference
parameter receive the argument passed to it and ware directly on it.
b.
Is – A
relationship describe the relationship b/w two different classes
c.
Coherent is
property of abstract class.
(A) TTF (B) TFF (C)
FTF (D)
FTT
- By using __________you can create new object that
perform the same function as the base object but which perform one or more
of these function in a different way.
(A) Inheritance
(B) Polymorphism (C) Data hiding (D) Encapsulation
- Encapsulation enables you to hide inside the
object both the _______ and _______ that acts on that data.
(i) Data filed (ii)
Method (iii)
Parameter (iv)
Arguments
(A) I, ii (B)
ii, iii (C)
I, iv (D)
iii, iv
- State true/false:-
a.
In strict object
oriented design an objects data is always public to the object
b.
Method are hidden
on the inside of an object
c.
.obj file contain
machine language instruction.
(A) TTT (B) TFT (C) FTT (D)
TTF
- State true/false
(i) C++ provide three type of inheritance by mean of
public, protected and private access type.
(ii) Member function of base classes can not be
overridden by drived class for father specialization.
(iii)
Pointer variable stores address of other variable and object.
(A) TTT (B) TFT (C)
TFF (D)
FFT
- State true/false:-
a.
Operator &
function overloading is compile type polymorphism
b.
Virtual function
is a example of runtime polymorphism
c.
Polymorphism
allow use same name (function name, operator) for different use.
(A) TTT (B) TFF (C)
FTT (D)
TTF
- # include < iostream.h>
T
max(Ta, Tb)
{
return a>b? a:b;
}
void
main ( )
{ cout << “max(10,15) =
“<<max (10, 15) << end;
}
(iii) Output of given code:
(A) 15 (B) Max (10, 15) = 15 (C) 15 = max (10,15) (D) None of these
- State true/false:-
a.
This pointer
stores the address of the class instance.
b.
This point is
counted fur calculating the size of the object.
c.
This pointer are
accessible for static member function
d.
This pointer is
not modifiable
(A) TFFT (B)
TFFF (C)
FTTF (D)
FFFF
- State true/false
a.
The binary files
can be used to store or retrieve object to and from the file
b.
To write to the
file, you use the function write ( )
c.
Write ( )
function takes two argument _a pointer to the block and the size of the block
(A) TFF (B) TTT (C)
FTF (D)
FFF
- Match the followings :-
(1)
|
In
|
(M)
|
Open for writing
|
(2)
|
Out
|
(N)
|
Open for reading
|
(3)
|
Ate
|
(O)
|
Erase file before recoding or writing
|
(4)
|
No create
|
(P)
|
Error when opening if file does not already exist.
|
(Q)
|
(A) 1 – O, 2 – P, 3- M, 4-N (B) 1
– N, 2 – M, 3-P, 4-O
(C) 1– O, 2 – M, 3-N, 4-P (D) 1 - N, 2 - M, 3 - O, 4-P
- State true/false
a.
Derived class
constructor calls the base class constructor.
b.
When an object of
a drived class constructor is applied to its fast followed by the base class
constructor
c.
When the object
is destroyed the destructor of the derived class is applied first, followed by
the base class destructor.
(A) TTF (B) TFF (C) TFT (D)
TTT
- State true/false
a.
Stack is used for
storing global variable and stock fromes for function calls
b.
The heap is used
for static allocating memory. Block during program execution.
c.
The program stack
is also called dynamic memory
(A) TFF (B) FTF (C)
TTF (D)
FTT
- Match the followings :-
(1)
|
Setw (w)
|
(M)
|
Set output or input width to w
|
(2)
|
Set fill (ch)
|
(N)
|
Fills white space in output fields with ch;
|
(3)
|
Set precision (n)
|
(O)
|
Sets the display of floating point number at
precision
|
(A) 1 – N, 2 – M, 3- O
(B)
1 – M, 2 – N, 3-O
(C) 1– O, 2 –
M, 3-N (D)
1 - O, 2 - N, 3 - M
- Setw (w) requires _______ to be include . width
(w) –a member function of the ____ classes.
(A)
<iomainps, iostream (B) <file.h>, stdio (C) Both A
& B (D) None
MODEL
ANSWER KEY
OOPS
PART A PART B PART C
1
|
A
|
41
|
B
|
1
|
d
|
1
|
A
|
|
2
|
A
|
42
|
B
|
2
|
a
|
2
|
C
|
|
3
|
A
|
43
|
A
|
3
|
a
|
3
|
D
|
|
4
|
C
|
44
|
B
|
4
|
b
|
4
|
A
|
|
5
|
D
|
45
|
D
|
5
|
a
|
5
|
A
|
|
6
|
B
|
46
|
B
|
6
|
c
|
6
|
C
|
|
7
|
B
|
47
|
C
|
7
|
c
|
7
|
D
|
|
8
|
B
|
48
|
C
|
8
|
a
|
8
|
A
|
|
9
|
D
|
49
|
B
|
9
|
c
|
9
|
D
|
|
10
|
D
|
50
|
D
|
10
|
a
|
10
|
B
|
|
11
|
A
|
51
|
B
|
11
|
d
|
11
|
A
|
|
12
|
C
|
52
|
B
|
12
|
a
|
12
|
C
|
|
13
|
B
|
53
|
D
|
13
|
c
|
13
|
C
|
|
14
|
D
|
54
|
C
|
14
|
b
|
14
|
D
|
|
15
|
A
|
55
|
C
|
15
|
d
|
15
|
D
|
|
16
|
C
|
56
|
D
|
16
|
a
|
16
|
A
|
|
17
|
C
|
57
|
A
|
17
|
b
|
17
|
D
|
|
18
|
B
|
58
|
B
|
18
|
c
|
18
|
C
|
|
19
|
A
|
59
|
C
|
19
|
b
|
19
|
A
|
|
20
|
D
|
60
|
C
|
20
|
d
|
20
|
C
|
|
21
|
C
|
61
|
D
|
21
|
c
|
21
|
B
|
|
22
|
C
|
62
|
C
|
22
|
c
|
22
|
A
|
|
23
|
C
|
63
|
A
|
23
|
a
|
23
|
B
|
|
24
|
B
|
64
|
B
|
24
|
d
|
24
|
A
|
|
25
|
D
|
65
|
B
|
25
|
b
|
25
|
B
|
|
26
|
C
|
66
|
A
|
26
|
a
|
26
|
D
|
|
27
|
C
|
67
|
A
|
27
|
d
|
27
|
C
|
|
28
|
C
|
68
|
A
|
28
|
a
|
28
|
A
|
|
29
|
D
|
69
|
B
|
29
|
d
|
29
|
B
|
|
30
|
A
|
70
|
A
|
30
|
a
|
30
|
A
|
|
31
|
C
|
71
|
C
|
31
|
b
|
|||
32
|
C
|
72
|
B
|
32
|
b
|
|||
33
|
A
|
73
|
D
|
33
|
c
|
|||
34
|
A
|
74
|
A
|
34
|
c
|
|||
35
|
A
|
75
|
D
|
35
|
c
|
|||
36
|
C
|
76
|
A
|
36
|
b
|
|||
37
|
C
|
77
|
A
|
37
|
d
|
|||
38
|
A
|
78
|
B
|
38
|
a
|
|||
39
|
A
|
79
|
C
|
39
|
B
|
|||
40
|
A
|
80
|
C
|
40
|
A
|
No comments:
Post a Comment