Professional Documents
Culture Documents
Tructured System Analysis Design
Tructured System Analysis Design
Compile Time
Run Time
Both A and B
Infinity
-1
Ans d
What is the notation used to place block of statements in a looping
structure in C++?
% %
( )
{ }
&
*
Ans b
Using pointers to call a function is called as
call by value
call by reference
call by address
pointer
arrays
unions
Ans a
Inheritance in C++ have default access specifier as
private
public
protected
Ans a
infinity
isalpha
isdigits
isspace
% exforsys[]
& exforsys[]
* exforsys[]
Ans c
@ exforsys[]
main()
scanf()
system()
Global Variables
Local Variables
Both A and B
Ans b
ifstream
ofstream
Both A and B
int exforsys(10);
float exforsys[5][5];
int exforsys[5];
Ans b
private
public
protected
iomanip.h
manip.h
ifstream.h
conio.h
math.h
iostream.h
static variables
register variables
global variables
Ans c
&
?:
%
Ans b
Which of the following denote stream classes in C++?
ios
fstream
ostream
Ans d
has no body
&
~
Ans d
Which of the following denote newline character in C++ program?
'/nc'
'nc'
'/n'
'\n'
Ans d
A function in a C++ program can be called
Only Once
Ans c
Ans c
In a C++ program each statement is ended with the character
:
Ans b
Which of the following denote insertion operator in C++?
&
<
<<
!
Ans c (important)
Which of the following denotes feature of OOPS?
Inheritance
Encapsulation
Polymorphism
Compiler
Linker
Both A and B
do-while
while
Both A and B
Precondition
Post-condition
Both A and B
Ans b
Comments in C++ program is written by using
/ /
//
/* /*
* *
Ans b
>>
<
<<
>
Ans a
Which of the following denote C++ looping statement?
while
do-while
for
assign
malloc
new
Ans c
Infinity
X==Y
X=Y
X!=Y
X equals Y
Ans a
Which of the following statements are TRUE?
Both A) and B)
put
get
write
Pointer Variable
Subscripted variable
Index Variable
Real Variable
Ans b
In C++ the function that is used to release the block of memory already
used is
release
deallocate
delete
real
double
float
int
Ans a
Which of the following functions are used in dynamic memory handling in C+
+?
new
delete
Both A and B
Ans c
Positive Integer
Negative Integer
Both A and B
Float
Ans a
The isolation of data from direct access by a C+ program is called as
Data Hiding
Data Isolation
Data Encapsulation
Arrays
Structures
Both A and B
&
Ans d
If an array in C++ is declared as exforsys[10] then exforsys is equal to
&exforsys[0]
&exforsys[9]
*exforsys[0]
No Value Returned
-1
0
Ans d
Which of the following is used to group a set of global classes, objects
and functions under a name?
Area named
Namearea
Namespaces
Ans c
The class with name exforsys and having integer data x in its have
constructor name as
exforsys
any name
double
int
float
C++
Java
C#
Ans d
global
static
volatile
Ans c
simple constructor
copy constructor
Both A and B
51
49
50
Ans d
The actual implementation is present in
declaration
definition
Both A and B
Ans b
Inline
Macros
Both A and B
Ans a
warning occurs
Encapsulation
Data Hiding
Operator Overloading
Both A and B
Member Function
Class Function
Object Function
Cannot be inherited
Virtual function
Function overloading
Operator Overloading
Ans d
Class
Object
Method
&&
^&
!&
&
Ans a
Which of the following denotes growable array?
Vector
ArrayList
Both A and B
Ans c
Virtual Function
Namespaces
copy constructor
zero
NULL
one
No Entry in vtable
Ans b
Class that reads and writes to an array in memory is
ostream
ifstream
strstream
Ans c
Both A and B
Ans c (imp)
The member functions of a class can be defined outside the class using
Extraction Operator
Insertion Operator
behavior
state
Both A and B
sizeof
::
:?
4
Ans b
Assignment operator
Copy constructor
Both A) and B)
Ans b
RAiI stands for
virtual destructor
virtual constructor
Both A and B
Explicit Instantiation
Implicit instantiation
Both A and B
Ans c (imp)
The inserting of the code of a called function at the point where the
function gets called is achieved by using
Inline functions
virtual functions
Both A and B
Both A and B
delete
realloc
Both A and B
Ans a
Extensibility
Both A and B
overloaded
Overriding
Both A and B
Ans a
<<
Ans d
The notation of scope resolution operator is
::
Ans c
Derived class
Base class
Both A and B
private
public
protected
Class
Object
Both A and B
new operator
operator new
Both A and B
(imp)
Encapsulation
Polymorphism
Inheritance
Ans c
When object of the first class is instantiated then which of the following
is called?
Destructor
Constructor
Both A and B
Ans b
The overriding method must have the which of the following same as that of
the method in the super class definition
same identifier
same signature
Both A and B
Ans c (imp)
One
Zero
Two
conditional statement
assignment statement
looping statement
code reusability
Both A and B
If a function in C++ does not return a value then its return type is
denoted as
float
void
int
Java
C++
Simula
Ans c