Ask Question
27 February, 17:49

Suppose variables roll1 = 3 and roll2 = 4, which of the following will be evaluated as true?

roll1>3 || roll2 > 3

roll1>3 && roll2 > 3

! (roll1==3)

roll1>3 || roll2 < 3

+4
Answers (1)
  1. 27 February, 18:12
    0
    The correct answer for the given question is " roll1>3 || roll2 > 3 "

    Explanation:

    In option A, there are two conditions separated by OR. In OR, if any condition is true then it will return TRUE. There second condition is TRUE in the statement that is why the whole expression return TRUE.

    Thats why the correct answer is "roll1>3 || roll2 > 3".
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Suppose variables roll1 = 3 and roll2 = 4, which of the following will be evaluated as true? roll1>3 || roll2 > 3 roll1>3 && roll2 > 3 ! ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers