Question: Suppose you work for a financial institution, a bug has been detected in an application. The program should continue if the credit score is above
Suppose you work for a financial institution, a bug has been detected in an application. The program should continue if the credit score is above Specifically, the loop should continue
until a score below is entered. What is wrong with this portion of the code:
continue y
while continue y :
creditcheck intinputEnter credit score:
if creditcheck :
approved False
continue n
A The control variable is not correctly initialized.
B The assignment continue n is out of scope. The program will end even if the entered credit score is above
C There are no problems with this code. The loop executes as intended.
D A variable cannot be evaluated when it is storing string literals. Therefore, the evaluation will always be false.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
