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

Genetic variability is the most important result of what
Use volition in a sentence.
I need help with a-g can anybody help me with it and help me show my work please
What is a city that governs itself and its surrounding territory?
Select all that apply. The "twelve-tone" technique _____. ensures that the 12 notes are given equal importance ensures that the music will be on key is charac
In what way is Kurt Vonnegut's short story "Report on the Barnhouse Effect" an example postmodernism
Bjorn is holding a tennis ball outside a second floor window (3.5 meters from the ground) and billie jean is holding one outside a third floor window (6.25 mete
simple interest worksheet
A typical stone on the lowest level of the great pyramid in Egypt was a rectangular prism 5 feet long by 5 feet high by 6 feet deep and weighed 15 tons. what w
If a group lived in the interior of the continent, what would they least likely have at meal time?