Ask Question
25 February, 23:19

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

+3
Answers (1)
  1. 26 February, 00:18
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers