INFO L06 (w03-2) - Control Flow - WHILE

Description

Week 03: Control Flow 1: Branching and Looping Lecture 06: Control Flow 1 - WHILE subtitle: Using a 'while' loop; break note: No quiz necessary for L05 (w05-1) 'IF'
Michael Jardine
Quiz by Michael Jardine, updated more than 1 year ago
Michael Jardine
Created by Michael Jardine almost 6 years ago
2
0

Resource summary

Question 1

Question
Which of the following in place of the [blank] would cause an infinite loop?
Answer
  • Break
  • Continue
  • Pass
  • None of the above.

Question 2

Question
Which of the following in place of the [blank] would cause an infinite loop?
Answer
  • Break
  • Continue
  • Pass
  • None of the above

Question 3

Question
Which of the following in place of the [blank] would have an output that includes the number 7?
Answer
  • Break
  • Continue
  • Pass
  • None of the above

Question 4

Question
'break' is a valid term in:
Answer
  • 'if' loops
  • 'while' loops

Question 5

Question
'pass' is a valid term in:
Answer
  • 'if' loops
  • 'while' loops
Show full summary Hide full summary

Similar

INFO L02 (w01-2) - Programming basics
Michael Jardine
INFO L03 (w02-1) - Variables and Expressions
Michael Jardine
INFO L04 (w02-2) - Expressions and command-line Arguments
Michael Jardine
GEGE2001 Quiz 2
Michael Jardine
GEGE2001 Quiz 4
Michael Jardine
GEGE2001 Quiz 1
Michael Jardine
GEGE2001 Quiz 3
Michael Jardine
TDAH (TRASTORNO POR DEFICIT DE ATENCION CON HIPERACTIVIDAD)
leo garavito
Aplicaciones Automatas
Diego Zerkk
Adobe InDesign
Nicole Gentle
Tipos de computadoras por estructura interna y capacidad de procesamiento
hebby.mena403