Question 37

Assume the values of X, Y and Z variables are assigned with values as −10, 20 and −30 respectively find out, which of following expression will evaluate to…

Assume the values of X, Y and Z variables are assigned with values as −10, 20 and −30 respectively find out, which of following expression will evaluate to true ?
  1. AX > Z and Y >= Z
  2. BX > Y and X <= Z
  3. CX >= Z and Z <= Y
  4. DY <= X and Z <= Y
Show answerHide answer

Correct answer: (A) X > Z and Y >= Z

Explanation

Answer as per the book's key (a). Note that option (c) also evaluates to true for these values.

From DSSSB TGT Computer Science Practice Set 4

This is question 37 of DSSSB TGT Computer Science Practice Set 4. 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.