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

A child is standing across the street from his apartment . His mother is on their balcony . The angle of elevation between the child's eyes and his mothers eyes
You have a cylinder with a diameter of 15 inches and a height of 12 inches. What is the volume of the largest sphere thg will fit inside it? If you can will you
Why is RNA necessary to act as messenger?
What is Sir Francis Drake hardships
Why is RNA necessary to act as messenger?
Trying to translate word problems. Five times the sum of 3 and twice some number is 70. what is the number?
A pound of seedless red grapes costs $2.75. Drew must spend less than $9.35 on a bunch of seedless red grapes.Inequality:Solution:Interpretation:
A passenger on a boat moving at 1.70 m/s on a still lake walks up a flight of stairs at a speed of 0.60 m/s , as shown in the figure . The stairs are angled at
.is a pot holder a conductor or a insulator
Was the Gold Rush a good or bad thing for the United States?