Raven1791 Raven1791
  • 03-07-2019
  • Computers and Technology
contestada

if (quotaAmt > 100 || sales > 100 && productCode == "C")
bonusAmt = 50;

When the above code is executed, which operator is evaluated first?

a.
||

b.
==

c.
=

d.
&&

Respuesta :

PhantomWisdom PhantomWisdom
  • 16-07-2019

Answer:

==

Explanation:

Operator precedence, it tells about the flow of operator execution o which operator execute first and which execute last.

'==' > '&&' > '||' > '='

According to precedence table,

the equal equal operator '==' comes first. so, it execute first and then NOT operator, then OR operator and finally equal operator.

Answer Link

Otras preguntas

The majority of the state of Mississippi most likely agrees with which statement?
How many centimeters is 4.25 yards equal to?
When measuring weight 6 small dogs are approximately equal to 9 large cats. How many large cats are equal to 54 small dogs? How many small dogs are equal to 12
What Is The Difference Between An Adjective and Adverb?
Which act taxed legal documents? Stamp Act Sugar Act Hat Act Quartering Act I will give you the brainiest
Find an equation of the circle and sketch it if it has: Center on y=4, tangent x-axis at (–2, 0)
The sum of three consecutive integers is 657. What are the three integers?
An employee put $10.000 in a retirement account that offers 4%, interest Compounded annually. The employee makes no additional deposits or withdrawals. Which am
What are examples of hyperboles?
What value of a makes the solution to the equation 5x-10=3x+a equal to 12