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

An input of energy is required to maintain the complexity of living systems. T/F? please explain
20 is what percent more than 5 ?
3/5x=52 is the answer 120 or 130
What role did the Scientific Revolution play in bringing about the Enlightenment?
EDIE WANTED TO SUBTRACT 273-188. SHE BEGAN BY FINDING 2-1. WHAT DID EDIE DO WRONG.
Will someone please explain how to do -(7c-18)-2>0 Step for step??? I don't understand how to.
A professional baseball team won 84 games this season.  The team won 14 more games than it lost.  There were no ties.  How many games did the team lose?  How ma
What is elastic rebound
A bank receives 3,450 $100 bills and puts them into stacks of 75 bills each. How many stacks are there?
36 is what percent less than 48?