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

Which ordered pairs in the form (x, y) are solutions to the equation (x + 6)y = 9? Choose all answers that are correct.  A.(−5, 9)  B.(−3, 3)  C.(3, 1)  D.(7, 9
What types of crimes primarily affect businesses? Give examples.
what is a multiple of 2, 8, and 10 between 49 and 95
By the end of the seventeenth century, which of the following was true of women in New England? (A) They had begun to challenge their subordinate role in societ
What is the basic function of meiosis, and why is it necessary?
Which of the following best describes the Harlem Renaissance? (A) The rehabilitation of a decaying urban area (B) An outpouring of Black artistic and literary
Evaluate the expression without using a calculator.ln* square root of e^4 - square root of lne^4
A mixture that has the same composition throughout is called a ?
what was Jacques cartier's childhood like
when do density-dependent factors operate most strongly