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

The team (selects,select) their officers by secret ballot. Which verb agrees with the collective noun?
What are two other names for rigid transformations?
How much ATP could be obtained from the complete oxidation of one molecule of glucose?
How you would convert the repeating, nonterminating decimal to a fraction? Please EXPLAIN the process as you solve the problem, 0.1515...Please give me the answ
You are given a fraction in simplest form. the numerator is not zero. when you write the fraction as a decimal,it is a repeating decimal,which numbers 1 to 10 c
PLZ! HELP!!  1. Mrs. Randall was my history teacher last year.                                  A. direct object
what are 3 facts about the hydrosphere?
Round 3,764 to the nearest ten?
What is 0.32 as a fraction and percent
Which of the following terms is most closely associated with a tRNA molecule? a. codon b. anticodon c. transcription d. ribosome