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

the volume of cylindercal tank that is 23 feet high with a radius of 6.23 feet is
what is 1/4 shaded of 8 piece bar graph
A rock at rest falls off a tall cliff. what is the rock's velocity as the rock hits the ground 3.5s later
Immigrants who settled on the frontiers as farmers usually apex
round to the nearst cent 3litersfor 7.29
What are the answers to these two questions? Help please!
Read the passage. excerpt from Act I, Scene 1, in A Midsummer Night's Dream by William Shakespeare Lysander Demetrius, I’ll avouch it to his head, Made love to
Why does russell believe law enforcement is in a crisis?
What is the period of a 4.12 m long pendulum?
____________ made up the largest group to settle in the Mexican Cession area in the 1800s. a. Free blacks c. Chinese immigrants b. Mexican Americans d. Mormons