Advanced Placement (AP)

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?

answer
Answers: 3

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 23.06.2019 00:30, urstruulyemily
70 ! in 2-3 paragraphs of 250-300 words, compare and contrast parallel and relative keys. give clear definitions and specific examples to support your answer.
Answers: 2
image
Advanced Placement (AP), 25.06.2019 23:30, byrdfarm
You are a carpet installer and need to lay carpet for a room that measures 11 feet by 18 feet. how much carpet do you need to complete the job?
Answers: 1
image
Advanced Placement (AP), 26.06.2019 00:00, mivantechenko9751
Which is the best investment option for a person who wants to make a long-term, tax-free investment? a. traditional ira b. roth ira c.401(k) d. money market account
Answers: 1
image
Advanced Placement (AP), 26.06.2019 22:00, nkazmirski5598
Who is the presiding officer of the senate whenever the vice-president is not present? speaker of the house attorney general secretary of state president pro tempore
Answers: 1
Do you know the correct answer?
Result ← 1 IF(score1 > 500)
{
result ← result + 1
IF(score2 > 500)
{

Questions in other subjects:

Konu
Business, 04.12.2020 01:00
Konu
Mathematics, 04.12.2020 01:00