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

Can anyone answer these?????
Solve 3(x-3) = 0???????
Define the term personal development plan.
Please help and explain please !!!!!!
Which of the following is not a stage of aerobic cellular respiration? a. fermentation b. electron transport c. glycolysis d. krebs cycle
Why do you think macbeth is so quick to take the witches’ predictions seriously?
How did the population of india change during the period 1951-2001?
A fission example is the combining of hydrogen isotopes. true or false
A​ 150-pound person uses 5.1 calories per minute when walking at a speed of 4 mph. How long must a person walk at this speed to use at least 180 ​calories? A p
What is a benefit on which you pay no taxes?