Computer Quiz Quiz August 7, 2021BIM NotesLeave a Comment on Computer Quiz Unit 2 Control Statements 1 / 8 Which of the following is used to create a conditional statement in Python? a. for b. if c. while d. def 2 / 8 Which of the following keywords is used to exit a loop prematurely in Python? a. exit b. continue c. break d. stop 3 / 8 Which of the following keywords is used to skip the current iteration of a loop and continue with the next iteration? a. exit b. continue c. break d. skip 4 / 8 Which of the following lines of code is a correctly formatted block with an if statement?a. if x > 0:print("Positive number")print("Checked number") b. if x > 0:print("Positive number")print("Checked number")c. if x > 0:print("Positive number")print("Checked number")d. if x > 0:print("Positive number") a b c d 5 / 8 Which of the following statements is true about the pass statement in Python? a. It is used to exit a loop. b. It is used to skip the current iteration of a loop. c. It is used as a placeholder indicating "do nothing" when a statement is syntactically required. d. It is used to execute a block of code repeatedly. 6 / 8 Which of the following statements will execute a block of code repeatedly as long as a condition is true? a. if b. for c. while d. def 7 / 8 Which of the following tokens is a keyword in Python? a. if b. print c. my_var d. 5 8 / 8 Which of the following tokens is a literal? a. if b. 123 c. print d. + Your score isThe average score is 0% 0% Restart quiz