wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

loop

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

This loop can only be used when the programmer knows the number of times a code is to be repeated

a)

while

b)

*for

c)

do while

d)

repeat until

2.

Which of the following control structure are needed to repeat a code?

a)

sequence

b)

*loop

c)

selection

d)

if

3.

Which kind of loop would be used?


I need a program that will keep letting me add a monthly payment for 12 months.

a)

*FOR Loop

b)

WHILE Loop

4.

أي من التعليمات التالية يستخدم لتكرار الأوامر؟

a)
b)
c)
d)
5.

صح أم خطأ: تحتوي تعليمات التكرار في برنامج سكراتش على الرمز الموضح في الصورة أسفل التعليمة

a)

*صح

b)

خطأ

6.

ما هي التعليمة التي تقوم بتكرار التعليمات التي بداخلها ويتوقف التكرار إذا تحقق الشرط؟

a)
b)
c)
7.

صح أم خطأ: تتكون تعليمة

repeat until

من جزئين: شرط التوقف والتعليمات التي ينبغي تكرارها

a)

*صح

b)

خطأ

8.

أي من التعليمات التالية تصلح شرطا لتعليمة

repeat until

a)
b)
c)
d)
9.

هذه الصورة أيقونة

a)

*برنامج الميكروبت

b)

الكتلة

c)

حلقات

10.

بالرجوع إلى التعليمات المعروضة، متى سيتوقف التكرار؟

a)

إذا تحرك الكائن 5 مرات

b)

إذا تم إدخال 10

c)

*إذا تم إدخال صفر