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

You have $20dollar to spend on taxi fare. The ride costs $5dollar plus$2.50 dollar per kilometer. Write an inequality to determine the distance in kilometers
A rectangular safe can hold 5184 cubic inches. Gold bars that are 3 inches by 6 inches by 2 inches fit to completely fill the safe. What is the maximum number o
Jed was hospitalized for a hip surgery. he is eight years old, and is now exhibiting confusion about the time of day or day of week. he is unable to focus on an
Help me assap plz show work
Which information does a geographer avoid using when defining regions
Need help !!!!! ASAP
For every $10 worth of candy student council sells, they get to keep $5. This can be represented with variables. 1. What are the variables? 2. What letter can y
Square root of 4×-1=5
Which of these refers to a musical texture? the binding of notes together to create a smooth melody, a melody consisting of an unstable combination of chords,
How do glaciers move?