Answer:
The value of result is 4
Explanation:
Given
Required
The value of result
On line 1 of the program, result is initialized to 1;
i.e.
Line 2 is a conditional statement that checks if score1 is greater than 500.
In this case, the result of the condition is true because 505 > 500 and as such
The corresponding else statement is discarded and the following will be executed
if(score1 > 500){ ->This is true
result = result + 1; -> result is increased by 1 to 2
if(score2 > 500){ -> This is false because score2 is 250 and 250 < 500
result = result + 1; -> This won't be executed because the condition is false
}
else{ -> This will be executed since its corresponding if condition is false, the else statement will be true
result = result + 2; -> result is incremented by 2 to give 4
}
}
<em>Hence, the value of result is 4</em>
I’d say a goal but is this supposed to be worded as a question ?
The Chinese failed to foresee that the European expansion would rival their rise because the Chinese did not see the importance of voyages across oceans. The Europeans were out to discover new lands, resources and colonies. The Chinese were thinking about how to bring together their nomads.