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

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

University

97 Qs

quiz-placeholder

Similar activities

100 palabras en Ingles A1

100 palabras en Ingles A1

University

100 Qs

TEST FINAL LEVEL 1

TEST FINAL LEVEL 1

University

93 Qs

FINAL EXAM OF ACADEMIC ENGLISH GRAMMAR (CLASS A)

FINAL EXAM OF ACADEMIC ENGLISH GRAMMAR (CLASS A)

University

100 Qs

Spring 2025 LEAP 2025 Training Quiz

Spring 2025 LEAP 2025 Training Quiz

9th Grade - University

100 Qs

FINAL EXAM  SENA 2024

FINAL EXAM SENA 2024

University

100 Qs

English 2 Mock Final Exam 2025

English 2 Mock Final Exam 2025

University

100 Qs

Capitalisation, Punctuation and Spelling

Capitalisation, Punctuation and Spelling

8th Grade - University

100 Qs

SPELLING BEE

SPELLING BEE

University

100 Qs

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

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

Assessment

Quiz

English

University

Practice Problem

Hard

Created by

Ngọc Thảo

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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(), how much does it increase after each iteration?

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?