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 card is chosen from a well- shuffled deck of 52 cards. What is the probability that the card will be: 1. an even card OR a red card?
Find each sum or difference 10 1/8 + 3 3/4
What is the Square root of 69?
For breakfast, a customer can choose two different items from the following list: eggs pancakes waffles oatmeal bacon or muffin. How many different breakfast me
The sum of two consecutive even integers is -134 . What are the two numbers?
what is 19/20 as a decimal
which five major colonial cities were occupied by the British
I need to know the steps to do two step equations
one fourth of the opposite of the difference of five and a number is less than 20
What is 50/100 in decimal