
Câu hỏi về vòng lặp trong Python
Authored by Ngọc Thảo
English
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
97 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many tasks need to be repeated with a defined number of times?
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
100 questions
TEST -17- My First Acquaintance with Poets, Lyrical Ballads
Quiz
•
University
100 questions
Multiplication Facts for 3 (0-12)
Quiz
•
3rd Grade - University
100 questions
Ist Semester- Summative test
Quiz
•
University
100 questions
Literary Terms Test
Quiz
•
9th Grade - University
100 questions
English Language Quiz
Quiz
•
12th Grade - University
95 questions
QUIZ แก้อาการลืมเติม S โดยเฉพาะ!!
Quiz
•
4th Grade - University
100 questions
Reaching the Top - 100 MCQ Questions
Quiz
•
6th Grade - University
100 questions
English Bridge Program BATCH 1
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for English
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
10 questions
THEME
Quiz
•
KG - University
13 questions
Jobs in the Theater
Quiz
•
6th Grade - University
12 questions
Charlie and the Chocolate Factory Chapters 21-30
Quiz
•
2nd Grade - University
20 questions
Context Clues
Quiz
•
KG - University