
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
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.
Create a free account and access millions of resources
Similar Resources on Wayground
96 questions
English Language Quiz

Quiz
•
7th Grade - University
100 questions
Present Simple/Continuous, Past Simple, Will, Shall, Might

Quiz
•
1st Grade - University
100 questions
Second, First and in order to, so that

Quiz
•
9th Grade - University
100 questions
Grammar 2022

Quiz
•
University
100 questions
Job Search and Résumé Tips

Quiz
•
University
100 questions
STAAR Vocabulary Review

Quiz
•
9th Grade - University
100 questions
So sánh

Quiz
•
9th Grade - University
100 questions
Present simple & Questions

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade