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

A cafeteria manager needs to know how many apple and bananas to order. She asked students to choose either an apple or a banana as their preferred fruit. The su
How many solutions does this system of equations have? none infinitely many exactly two exactly one
Which type of molecule is used for catalyzing chemical reactions in the cell
Why do the you think the Israelites felt so strongly about a promised land
A proportional relationship is formed when y=16 and x=-4 what is the value of x when y=4?
what is 5 and 9/9 simplifyed to
Need answers fast plz
3 more question!Help me please giving the brainliest to the person with the right answer!
Use the graph of the polynomial function to find the factored form of the related polynomial. Assume it has no constant factor
A endemic disease is best described as a disease that