Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started