Professional Documents
Culture Documents
two bytes
zero bytes
four bytes
16 bytes
2.What is the meaning of prototype of a function?
A.
B.
C.
D.
Implementation Of Function
Declaration Of a Function
None
Both
3.What will be output if you will compile and execute the following c code?
void main(){
int huge*p=(int huge*)0XC0563331;
int huge*q=(int huge*)0xC2551341;
*p=200;
printf("%d",*q);
}
A.
B.
C.
D.
E.
0
Garbage value
null
200
Compiler error
4.Recursive data structures are almost always implemented with memory from the ________
A.
B.
C.
D.
-stack
-heap
-processor
-RAM
5. What function should be used to free the memory allocated by calloc() ?
A.
B.
C.
D.
-dealloc();
-malloc(variable_name, 0)
-free();
-memalloc(variable_name, 0)
A)4 bytes
B)2 bytes
C)0 bytes
D)1 bytes
7.______ is a default access specifier for members of class in C++.
A.
B.
C.
D.
protected
public
private
default
8.The static member variable is initialized to?
A.
B.
C.
D.
0
1
2
-1
9. ______ is the mechanism which allows a class A to inherit properties of a class B.
A.
B.
C.
D.
Data abstraction
Encapsulation
Inheritance
Polymorphism
10.What features make C++ so powerful?
A.
B.
C.
D.
Easy implementation
Code reusability
Easy memory management
All the above
11.Which of the following statement is correct?
A.
B.
C.
D.
A.
B.
C.
D.
Stack
Heap
Both a & b
None of the mentioned
14.How does the strings are stored in the memory?
A.
B.
C.
D.
Contiguous
Non-contiguous
Null
All of the mentioned
15.C++ actually supports the following two complete dynamic systems?
A.
B.
C.
D.
A.
B.
C.
D.
A.
B.
C.
D.
A.
B.
C.
D.