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

HELP ASAP Solve for x. x = [?] X - 6 8x + 24
What is the equation of the line in slope intercept form? Plz ASAP​
Please help need it asap
How many distinct "pieces" are in this graph?
You spin the spinner and flip a coin. Find the probability of the compound event. The probability of spinning a number greater than 1 and flipping tails is
Helppppppppppppppppppp I’ll mark you brainlist
Identify the organelle that regulates cell function and contain the DNA?A. nucleus B. Mitochondria C. golgi apparatus D. cell membrane ​
Who created this work of art? Pablo Picasso Wassily Kandinsky Vincent van Gogh Pierre-Auguste Renoir
One of the themes of "The Rocking-Horse Winner" is: A. the dangers of greed B. the challenges of parenting C. the difficulties of lonliness D. the beauty o
Which is the volume of a sphere with diameter 50 cm?