
Câu hỏi về vòng lặp trong Python
Quiz
•
English
•
University
•
Practice Problem
•
Hard
Ngọc Thảo
Used 1+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
101 questions
English Grammar Quiz
Quiz
•
11th Grade - University
100 questions
Mock FE 8134
Quiz
•
University
100 questions
PGTRB TEST SERIES - 8
Quiz
•
University
100 questions
Unit 4 Quiz
Quiz
•
University
100 questions
PGTRB TEST SERIES - 7
Quiz
•
University
100 questions
English Grammar Quiz
Quiz
•
University
93 questions
Destination B1 Unit 9 - COMING AND GOING
Quiz
•
University
100 questions
TEST - 19 - Prometheus Unbound, , The South sea House
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
