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

which scale would a geologist use to estimate the total energy released by an earthquake? a. modified mercalli scale b. richter scale c. epicenter scale d.momen
How can I solve this problem?
Vygotsky believed that scaffolding limited communication between the teacher and the learner. Please select the best answer from the choices providedTF
Can you guys figure it out ??
Estimate 19 percent of 112
PLEASE ANSWER!! How have changes in daily life since 1787 changed the problems that lawmakers deal with today?
x+3x+4+3 what is the answer
Which additional word or words in the sentence should be capitalized? we watched the movie mutiny on the bounty last friday night.?
Which of the following traits might be considered an adaptation fora rabbit living in the Arctic?
Josh is working on a research paper about the 1930s Spanish Civil War. Before writing his paper, he decides he wants to understand the consequences of the event