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 train travels at a speed of 30 mph and travel a distance of 240 miles. How long did it take the train to complete it's journey?
How many rolls can you make with 5 2/3 cups of flour?
why is 743 a prime number
A professional baseball team won 84 games this season.  The team won 14 more games than it lost.  There were no ties.  How many games did the team lose?  How ma
What are greenhouse gases?
PLEASE HELP MEthank you, and 15 points!!Gretchen and Ezia received equal scores on a test made up of multiple choice questions and an essay. Gretchen got 18 mul
In what ways is the Holy Land an important site for all three monotheistic faiths?
89.36 rounded to the ones place
Explain how you can find the missing number in 3 4/5 / missing number = 2 5/7
Mrs. Jennings had a 5/7 gallon of paint. She gave 1/7 gallon each to some students. How many students received paint if Mrs. Jennings gave away all the paint?