Object Oriented Programming Objective Questions and Answer Pdf - 2

Question: 6

The operator _____ is called the insertion operator or put to operator.

(A) >

(B) <

(C) >>

(D) <<

Ans: D

<<

Question: 7

The number of elements in a 2 dimensional array is determined by multiplying the number of _____ with number of _____

(A) row, columns

(B) row, row

(C) columns, columns

(D) rows, columns

Ans: D

rows, columns

Question: 8

_____ creates branches for multiple alternatives section of code, depending on the value of a single variable.

(A) while

(B) for

(C) if

(D) switch

Ans: D

switch

Question: 9

_____ punctuator is used to treat statements as comments.

(A) /

(B) //

(C) +

(D) *

Ans: B

//

Question: 10

The minimum value stored in an integer variable is

(A) 32780

(B) -32767

(C) 32769

(D) -32768

Ans: D

-32768

Related Questions