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

How did Russian government change under Lenin
Describe the location of the Tang and Song Dynasties relative to two oceans.
a trapezoid is not a type of parallelogram true or false​
Which are the best tools for researching the author and the historical and cultural context of a work of short fiction? OA. validated websites and books of lite
Triangle ABC has the following vertices: · A(1,9) B(11, -7) C(-9,3) Is triangle ABC a right triangle, and why?
Who wrote The Code of Hammurabi?
Which of the following statements about phylogenetic trees is not true? A. They can show which groups of organisms are most closely related. B. They can show wh
Jacob has a budget of $29 to buy juice for his team how many whole gallons of juice can he buy
A shirt was sold for sh 1054 after a 15% discount . what was the discount given
What is the largest country in Central and Southwest Asia?A. EnglandB. MacedoniaC. KazakhstanD. Uzbekistan​