
ETECH - Python: If-else & loops
Presentation
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Neil Christian Capanzana
Used 170+ times
FREE Resource
14 Slides • 10 Questions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Multiple Choice
Which statement allows the program to execute a block of code repeatedly as long as a certain condition is met?
if-else
while loop
for loop
none of the choices
15
Multiple Choice
What is the syntax for a while loop in Python?
for i in range()
while i in range()
while condition:
none of the choices
16
Multiple Choice
How many times will a while loop execute if the condition is initially false?
0
1
infinite
none of the choices
17
Multiple Choice
Which statement allows the program to execute a block of code repeatedly for a specific number of times?
if-else
while loop
for loop
none of the choices
18
Multiple Choice
What is the syntax for a for loop in Python?
for condition:
while i in range()
while condition:
none of the choices
19
Multiple Choice
How many times will a for loop execute if the condition is initially false?
0
1
infinite
none of the choices
20
Multiple Choice
What is the syntax for if-else in Python?
for condition:
if condition:
while condition:
none of the choices
21
Multiple Choice
What is the purpose of an if-else statement?
To execute a block of code repeatedly as long as a certain condition is met.
To execute a block of code repeatedly for a specific number of times
To make a decision based on a condition.
none of the choices
22
Multiple Choice
What is the syntax for an if-elif-else statement in Python?
if condition:
elif:
else:
if condition:
else:
elif:
if condition:
elif condition:
else:
none of the choices
23
Multiple Choice
How many times will an if-else statement execute?
0
1
infinite
none of the choices
24
Show answer
Auto Play
Slide 1 / 24
SLIDE
Similar Resources on Wayground
20 questions
วิชาการเขียนโปรแกรมภาษา C
Presentation
•
KG - University
20 questions
Describing Quantitative Data
Presentation
•
11th Grade - University
18 questions
Computing Facts & Knowledge
Presentation
•
University
17 questions
What is Government ?
Presentation
•
12th Grade
18 questions
[ITAL] Network Protocol
Presentation
•
12th Grade
18 questions
Unit 4 Review AP Bio
Presentation
•
11th - 12th Grade
17 questions
Cell Theory
Presentation
•
11th - 12th Grade
19 questions
2 - Virtual Autopsy (The Australian Museum)
Presentation
•
11th - 12th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
22 questions
Regular Preterite -AR-ER-IR-
Quiz
•
12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade