Factorial Initialization Error
 1) What is a Factorial Initialization Error? An error that occurs when a function is not initialized correctly An error that occurs when a parameter is not initialized correctly An error that occurs when a variable is not initialized correctly An error that occurs when a loop is not initialized correctly

 2) Which of the following operator is used for commenting on the code segment in python? * ^ # \$

 3) "while" loop is also known as __________ . Pre-test loop None of these Post-test loop Intermediate test loop

 4) S1: "while" is used only when the number of iterations isn’t known. S2: "for" loop is used only when the number of iterations is known beforehand S2 is false Only S1 is true Both S1 and S2 are true Both S1 and S2 are false

 5) What is the correct initialization value for the fact variable in the code snippet to calculate the factorial? 1 0 i num

 6) What is the result of the expression: `5 + 3 * 2 / 4`? 7 6 5.5 4

 7) What is the purpose of a factorial? To calculate the difference of a sequence To calculate the average of a sequence To calculate the sum of a sequence To calculate the product of a sequence

 8) What is the best way to avoid a Factorial Initialization Error? Double check all data values before running the code Use a debugger Avoid using loops Use global variables

 9) What will be the output? num = 5 fact = 0 i = 1 while i <= num:   fact = fact * i   i = i + 1 print(fact) 0 Infinite loop Syntax error 120

 10) What will be the output? num = 5 fact = 0 i = 1 while i <= num:   fact = fact * i   i = i // 1 print(fact) 120 Syntax error 0 Infinite loop