libertebenallly6529 libertebenallly6529
  • 23-08-2019
  • Computers and Technology
contestada

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

Respuesta :

Mustela Mustela
  • 26-08-2019

Answer:

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".

Answer Link

Otras preguntas

Leon tried to solve an equation. What is his mistake?
Ugh I hate functions for me it’s hard I wasn’t taught on how to do functions I’m sorry Guys.
Find the sum of 3x - 5 and -5x + 3 a. 8x - 2 b. -8x + 2 C. -2x - 2 d. -2x + 2
Does anyone mind helping?
The meaning of the “To cash (Tax paid)” entry posted in the Provision for taxation account is(a) Last year taxation is paid through the current year provision(b
1. A man's income is increased in the ratio 47:40. Find the increase percentage​
1) Which of the following statements about gases is false? A) Gases are highly compressible. B) Distances between molecules of gas are very large compared to bo
Simplify the expression below: If x= 84x+8/2​
a. Gwen chooses two cards from the pile to make a two-digit number. She uses the first card as the first digit in the number and the second card as the second d
- Which expression is equivalent to (8x - 7) - (4x - 1)? A 12x - 8 В B 12x - 6 С 4x - 8 D 4x - 6 - PLEASE SHOW HOW YOU GOT YOUR ANSWER