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), 23.06.2019 00:00
The valve seat performs two functions: it provides a seal for the valve in the combustion chamber, and it provides a cool surface to carry heat away from the valve. most valves use a seating angle.
Answers: 3
question
Advanced Placement (AP), 23.06.2019 10:30
If calculating interest by the previous balance method, purchases and payments during the month __ counted in calculation of interest. a. are b. are not c. must be d. are sometimes
Answers: 1
question
Advanced Placement (AP), 23.06.2019 20:00
Ill mark brainliest to whoever answers first correctly hurry! a vehicle's is the entire piece of plastic that spans the front end of the passenger cabin. a. instrument panel b. control panel c. dashboard d. frontboard
Answers: 1
question
Advanced Placement (AP), 25.06.2019 04:00
You must all emergency vehicles using a siren or flashing lights. a. honk to make your position known to b. follow c. yield the right-of-way to d. drive around
Answers: 1
You know the right answer?
Result ← 1 IF(score1 > 500)
{
result ← result + 1
IF(score2 > 500)
{
Questions
Questions on the website: 13722367