131. The mechanism that binds code and data together and
keeps them secure from outside world is known as
___________________
A. Abstraction
B. Encapsulation
C. Inheritance
D. Polymorphism
ANSWER: B
132. Function overloading, operator overloading and virtual
functions are the means for implementing _______________.
A. Abstraction
B. Encapsulation
C. Inheritance
D. Polymorphism
ANSWER: D
133. To overload an operator_________________ keyword must
be used along with the operator to be overloaded.
A. Over
B. Overload
C. void
D. Operator
ANSWER: D
134. The first index number in an array starts with
_______________ and the index number of an array of size n will be
_____________.
A. 0, n-1
B. 1, n-1
C. 0, n
D. 1, n
ANSWER: A
135. What is the output of the program
#include<iostream.h> void main() { int n=1;
cout<<endl<<"The numbers
are;"<<endl; do { cout
<<n<<"\t"; n++; } while (n<=100); cout <<endl; }
A. Printsnumbers 0 to 99
B. Prints numbers 1 to 99
C. Prints numbers 0 to 100
D. Print numbers 1 to 100
ANSWER: D
136. Which of the following is not a keyword?
A. inherit
B. auto
C. extern
D. void
ANSWER: A
137. The expression 5/2 in c++ is evaluated to ____________.
A. 2
B. 3
C. 2.5
D. 0
ANSWER: A
138. The result of the expression 15%3 in c++ is
___________.
A. 5
B. 3
C. 0
D. error
ANSWER: C
139. Which of the following is not a bitwise operator?
A. `
B. >>
C. &
D. *
ANSWER: D
140. _____________ is a scope resolution operator.
A. :
B. ::
C. :=
D. =:
ANSWER: B
No comments:
Post a Comment