Ask Question
20 August, 18:41

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

+2
Answers (1)
  1. 20 August, 21:03
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers