Question 10

Which of the following can be considered as a unary as well as a binary operator ?

  1. A−
  2. B*
  3. C/
  4. D%
Show answerHide answer

Correct answer: (B) *

Explanation

Answer as per the book's key (b): * is binary multiplication and unary dereference. Note that − is also both unary and binary.

From DSSSB TGT Computer Science Practice Set 2

This is question 10 of DSSSB TGT Computer Science Practice Set 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.