BELADI INTERNATIONAL SCHOOL مدرسة بالدي العالمية جدة
Jeddah Saudi Arabia تحت إشراف وزارة التعليم
Under the Supervision of Ministry of Education س/ 99 ترخيص رقم2001 تأسيسات عام
Establishments in 2001
License # 99 / S المنهج البريطاني
British Curriculum
Revision Sheet ICT GRADE:7
MCQS
1. What is a loop in Python used for?
a) Storing data
b) Repeating a set of instructions
c) Writing comments
d) Drawing shapes
2. Which loop is best for repeating a task a specific number of times?
a) while loop
b) if statement
c) for loop
d) switch
3. Which of the following is a valid for loop in Python?
a) for i to 10:
b) loop (i = 1 to 10)
c) for i in range (1, 11):
d) for (i < 10)
4. What does the following loop do?
for i in range (3):
print("Hello")
a) Prints "Hello" once
b) Prints "Hello" three times
c) Prints numbers
d) Gives an error
5. What type of loop is this?
while x < 5:
x =x+1
a) Counter loop
b) Conditional loop
c) Infinite loop
d) Error loop
6. What will range (1, 5) produce?
a) 1, 2, 3, 4, 5
b) 1, 2, 3, 4
c) 1 to 5
d) 0 to 5
7. Which loop stops only when a condition becomes false?
a) for loop
b) if loop
c) while loop
d) def loop
8. What is the output of this code?
total = 0
for i in range (1, 4):
total += i
print(total)
a) 3
b) 4
c) 6
d) 7
9. Which of these is used to increase a variable by 1?
a) x = x + 1
b) x++
c) x += 1
d) Both A and C
10. What will happen if the condition in a while loop never becomes false?
a) The loop will run once
b) The program will crash
c) It will run forever (infinite loop)
d) It will not run at all
11. What is a conditional structure in programming?
a) A way to store numbers
b) A structure that makes decisions based on conditions
c) A loop that repeats forever
d) A way to print text
12. In Scratch, which block is used to create a conditional structure?
a) Repeat block
b) Forever block
c) If block
d) Motion block
13. What will be the result of this logical test: 5 > 10?
a) True
b) False
c) 10
d) 5
14. Which of the following is a relational operator in Scratch?
a) + (plus)
b) > (greater than)
c) & (and)
d) @ (at symbol)
15. In Python, what symbol is used to compare if two values are equal?
a) =
b) ==
c): =
d)! =
16. How do you save your Python commands in a file?
A. File > New File
B. File > Save As
C. File > Save and give a name
D. File > Open
17. What color represents variables in Python?
A. Green
B. Black
C. Purple
D. Yellow
18. What is the correct way to fix this error in Python: Print(hello)?
A. print(hello)
B. Print("hello")
C. print("hello")
D. Print('hello')
19. What does the input () function do in Python?
A. Takes user input
B. Prints output
C. Saves data
D. None of the above
20. What does IDE stand for in programming?
A. Interactive Development Environment
B. Integrated Development Environment
C. Integrated Data Environment
D. Internet Development Environment