How many tasks need to be repeated with a defined number of times?

Câu hỏi về vòng lặp trong Python

Quiz
•
English
•
University
•
Hard

Ngọc Thảo
FREE Resource
97 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.
4.
5.
2.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the for loop variable i in range(
1.
2.
0.
All are incorrect.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Among the following statements, identify the correct one:
x = 0 for i in range(10): x = x + 1
x = 0 for i in range(10): x:= x + 1
x = 0 for i in range(10) x = x + 1
x:= 0 for i in range(10): x = x + 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which of the following statements is written correctly?
for i in range(10): prin("A").
for i in range(10): print("A").
for i in range(10): print(A).
for i in range(10) print("A").
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the loop statement: j=0 for j in range(10): j = j + 2 print(j) How many times is the print(j) statement executed at the end?
10 times.
1 time.
5 times.
Not executed.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the loop statement: j = 0 for j in range(10): print("A") How many times does the letter "A" appear at the end?
10 times.
1 time.
5 times.
Not executed.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the program: j = 0 for i in range(5): j = j + i print(j) What is the value of variable j after executing the program?
10.
12.
15.
14.
Create a free account and access millions of resources
Similar Resources on Quizizz
97 questions
Chapter 10 Designing Organizational Structure - Basic Designs

Quiz
•
University
100 questions
G6S2 B1-4 Reading Quiz

Quiz
•
6th Grade - University
97 questions
English Language Mock Test

Quiz
•
University
100 questions
Morphology to Determine Meaning

Quiz
•
University
92 questions
Boost your Vocabulary Cambridge 14 - Test 3 - Passage 03

Quiz
•
University - Professi...
93 questions
10th Grade Vocabulary Practice

Quiz
•
10th Grade - University
100 questions
Grammar Quiz #1

Quiz
•
KG - University
101 questions
Project Management Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade