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

Read this excerpt from Narrative of the Life of Frederick Douglass, an American Slave. My Dear Friend: You remember the old fable of "The Man and the Lion," whe
4) Using complete sentences, explain how to find the average rate of change for f(x) from x = 4 to x = 7.
How do you become an informed citizen?
Which sentence is a run-on sentence? A. Most humans eat around 3 to 5 pounds of food every day. B. A blue whale eats up to 6,000 pounds of food per day, which i
why do you think many Cubans support Castro
Another question... this was all the information I was given and I'm a tad confused as to how to go about solving it... help please??? Thank you so much!!! Juli
A cell phone plan uses a fixed charge of $20 per month plus 10 cents for each minute used to calculate the total bill. The total bill, t, can be expressed in te
need help on any number cause it is due tomorrow
What is the least common denominator of 13 and 19
4) Using complete sentences, explain how to find the average rate of change for f(x) from x = 4 to x = 7.