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

A carefully constructed garment will look better if you press as you sew. True False
In 24 weeks Amanda earned $4,924 selling cars. She earns the same amount of money each week. Let “n” stand for the amount she earned each week. How much money d
What is the imagery?
Rewrite the equation 2x + 6y = 7 in slope-intercept form. y = -(2/3)x + 1 1/3 6y= -2x +7 y = -2x + 1 1/6 y = -(1/3)x + 1 1/6
What is the scale factor?
plz help asap!! Lee y escoge la opción que contesta la pregunta. Read, and choose the option that answers the question. Los críticos han reconocido al Barroco c
Famed stunt pilot, Cleonvia Thread, pulls out rapidly from a dive. He is traveling at 222 mi/h at the bottom of his trajectory, and at that instant is traveling
Find the area of the circle
How long did Gatsby and Daisy know each other back when they met in 1917? -a few days -one month -none of the above -one week exactly
Find the value of r, if P(5, r) = 2P(6, r-1) answer choices: a. 3 b.5 c.8 d.11