Question: Q 2 . 1 Select the Output 1 Point Grading comment: What is the output of the following program? The goal is count all the

Q2.1 Select the Output
1 Point
Grading comment:
What is the output of the following program? The goal is count all the numbers between 0 and 9 that are divisible by 2.
total_divisible =0
current_num =0
while current_num <10:
if current_num %2==0:
total_divisible = total_divisible +1
current_num = current_num +1
print(total_divisible)
Choice 1 of 5:0
Choice 2 of 5:5
Choice 3 of 5:10
Choice 4 of 5:Error
Choice 5 of 5:Infinite Loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!