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

If you divide the mass of a substance by its volume, can you can find its density?
The part of the brain responsible for voluntary, or conscious, body activities and emotions is located in the Frontal Lobe or Cerebrum o.O
Evaluate the expression when a = 4. 2a^3 A. 14 B. 24 C. 128 D. 512
I have to solve for b but I can't figure it out
What pattern will result from plotting all points x, y that satisfy an equation in the form ax+by=c
How can I find the value of 78 x n when n= 3237
what are all of these?
The circulatory system is an organ system that is composed of __________. cells, organs, and organisms cells, tissue, and organisms tissue, organs, and organism
Round 19.3 to the nearest whole number
The ocean contains many plants and protists that can make their own food. What do these organisms get by living near the surface that they cannot get in deep wa