subject

Result ← 1 IF(score1 > 500)
{
result ← result + 1
IF(score2 > 500)
{
result ← result + 1
}
ELSE
{
result ← result + 2
}
}
ELSE
{
result ← result + 5
IF(score2 > 500)
{
result ← result + 1
}
ELSE
{
result ← result - 1
}
}
 
 

 If the value of score1 is 505 and the value of score2 is 250, what will be the value of result after the code segment is executed?

 

If the value of score1 is 350 and the value of score2 is 200, what will be the value of result after the code segment is executed?

ansver
Answers: 3

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 22.06.2019 12:30
In the northern hemisphere what is the direction of the surface wind circulation in a high pressure system
Answers: 3
question
Advanced Placement (AP), 23.06.2019 20:00
*giving 20 free points plus brainliest for this drivers ed question * ! which of the following is not the name of a dash gauge? a. speedometer b. gear meter c. odometer d. temperature gauge
Answers: 2
question
Advanced Placement (AP), 25.06.2019 09:10
Describe one of your personality traits that you believe to be highly heritable and another trait that seems to be much less so. provide reasons for your answer, and explain why you would expect genetics to exert a greater impact on some personality traits than on others. 10. discuss at least 3 cultural/environmental factors that may influence behavior.
Answers: 3
question
Advanced Placement (AP), 25.06.2019 13:30
Arandom variable x has a mean of 10 and a standard deviation of 3. if each value of x is multiplied by 2, what will the new mean and standard deviation be?
Answers: 1
You know the right answer?
Result ← 1 IF(score1 > 500)
{
result ← result + 1
IF(score2 > 500)
{
Questions
question
Mathematics, 13.05.2021 19:00
question
Mathematics, 13.05.2021 19:00
question
Mathematics, 13.05.2021 19:00
Questions on the website: 13722359