whyyoubullyme81
whyyoubullyme81 whyyoubullyme81
  • 16-12-2020
  • Computers and Technology
contestada

What will happen when you run this program?

num = 10
while num > 0:
print (num)

a Syntax Error
b Logical fallicy
c Infinite loop
d Definite loop

Respuesta :

goodLizard
goodLizard goodLizard
  • 16-12-2020

Answer:

C. Infinite loop

Explanation:

num will be printed continuously since it will always be bigger than [tex]0[/tex] ([tex]10[/tex] is greater than [tex]0[/tex], satisfying the condition num > 0) making it an infinite loop since it will go on forever.

Hope this helps :)

Answer Link

Otras preguntas

Tati was involved in a car accident. The first court to hear the case ruled the accident was her fault. She believes the first court made an error and wants a h
Why is having knowlegde and skill in first aid important?
Original price 32; markdown 12.5% what is the retail price
i want to make sure i got this right. PLS HELP ASAP I NEED IT CALC 1 one question
Jack, a 22-year-old soccer player, earns more than jim, who is the same age and has the same level of experience.
Which sentence from the novel best reflects the story's gothic nature
Express the angle in radian measure. 200°
Which comments are examples of constructive feedback? Don't use dialogue when you write. It's childish. If you summarized the go-kart story instead, you could
A fitness center offers two payment options for their clients. The “member option “requires you to pay $42 to become a member. After that you pay only $2per fit
Monica purchased adult and youth tickets for the fair. She bought x adult tickets for $28 each and y youth tickets for $15. Write an expression that can be used