for loop

for loop

10th Grade

10 Qs

quiz-placeholder

Similar activities

Computer Lab Rules

Computer Lab Rules

9th - 12th Grade

13 Qs

MOTHER TO SON

MOTHER TO SON

7th - 10th Grade

15 Qs

Zasady dobrego wychowania

Zasady dobrego wychowania

8th - 10th Grade

10 Qs

TIGERS

TIGERS

8th - 12th Grade

11 Qs

PENGENALAN KRS

PENGENALAN KRS

5th - 12th Grade

15 Qs

Munakahat Darjah Khas

Munakahat Darjah Khas

3rd Grade - Professional Development

10 Qs

Do You Really Know ME?

Do You Really Know ME?

5th Grade - University

13 Qs

Nether

Nether

KG - Professional Development

15 Qs

for loop

for loop

Assessment

Quiz

Other

10th Grade

Practice Problem

Hard

Created by

sawsan sabbah

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ما هي وظيفة جملة for في بايثون؟

إيقاف البرنامج
تنفيذ أمر واحد فقط
تكرار مجموعة من الأوامر لعدد محدد من المرات
إنشاء متغير جديد

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ما هي النتيجة الناتجة عن الكود التالي: for i in range(3): print('Hello')؟

Hello Hello Hello
Hello
Hello Hello
Hello Hello Hello Hello

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ما هي الطريقة الصحيحة لكتابة حلقة for لطباعة الأرقام من 1 إلى 5؟

for i in range(0, 5): print(i)
for i in range(1, 5): print(i)
for i in range(5): print(i)
for i in range(1, 6): print(i)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

كيف يمكنك طباعة اسمك 5 مرات باستخدام حلقة for؟

for i in range(5): print('اسمك')
for i in range(5): print(i)
for i in range(1, 6): print('اسمك')
print('اسمك')

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ما هي النتيجة الناتجة عن الكود التالي: for i in range(2, 6, 2): print(i)؟

2 4 6
2 4
2 3 4 5
2 3 4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

كيف يمكنك استخدام حلقة for لطباعة حروف اسمك 'علي'؟

for letter in range(3): print('علي')
for letter in 'علي': print(i)
for letter in 'علي': print(letter)
for i in range(3): print('علي'[i])

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

إذا كان لديك قائمة تحتوي على ['apple', 'banana', 'cherry']، كيف يمكنك استخدام حلقة for لطباعة كل عنصر؟

for i in ['apple', 'banana', 'cherry']: print(i)
for fruit in ['apple', 'banana', 'cherry']: print(i)
for fruit in range(3): print(fruit)
for fruit in ['apple', 'banana', 'cherry']: print(fruit)

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?