Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. What does Smessage contain after the following code executes? $age 19 $score

ID: 3732768 • Letter: 1

Question

1. What does Smessage contain after the following code executes? $age 19 $score = 750; if ($age 21 6&Sacore; 700 $message = 'Loan approved'; } else if ( *age >= 21 && *score >= 650 ) SmessageCosigner needed." else if ( $age 18&& $score >680 $message = 'Two cosigners needed. '; else ( $message 'Loan denied. ' ; a. Loan approved. b. Cosigner needed. c. d. Two cosigners needed Load denied. 2. What does Smessage contain after the following code executes? $StatusCode = "403"; owitoh $atatusCode case "200": $message break; "OK"; = case "403" Smessage "Forbidden"; break; case "404" Smessage "Not Found" break; default: Smessage"Unknown Status" break; a. OK b. Forbidden c. Not Found d. Unknown Status 3. What does Smessage contain after the following code executes? $messageL: for ($1-0; $i

Explanation / Answer

Q1 as age>18 and .score>680 both conditions are true so

Ans: C(Two Cosigners needed)

Q2.statuscode match with case "403"

ANS:Forbidden

Q3.

ANS:B