Al Manar Language School
American section
IT Department
Q2 G10 Revision Q&A
1. Multiple Choice Questions (10)
1. Which command is used to move the turtle forward?
o a) Go(100)
o b) Turn(90)
o c) Pen_down()
o d) Reset()
Answer: a) Go(100)
2. What is the command to change the turtle’s line color?
o a) Width(10)
o b) Color("green")
o c) Pen_down()
o d) Turn(90)
Answer: b) Color("green")
3. Which command clears the screen in Python Turtle?
o a) Pen_up()
o b) Reset()
o c) Clear()
o d) Both b and c
Answer: d) Both b and c
4. What type of loop is used to draw a square in Turtle Graphics?
o a) while
o b) for
o c) if
o d) switch
Answer: b) for
5. What is the correct syntax to print "Hello, World" in Python?
o a) print[Hello, World]
o b) echo("Hello, World")
o c) print("Hello, World")
o d) printf("Hello, World")
Answer: c) print("Hello, World")
6. In Python, which of the following is a valid variable name?
o a) 2variable
o b) my-variable
o c) _variable2
o d) my variable
Answer: c) _variable2
7. What is the output of print(A) if A = "Sally" and a = 4?
o a) 4
o b) Sally
o c) Error
o d) None
Answer: b) Sally
8. What is the command to make the turtle invisible in Turtle Graphics?
o a) Hide()
o b) Invisible()
o c) Pen_up()
o d) Clear()
Answer: b) Invisible()
9. Which operator checks for equality in Python?
o a) =
o b) ==
o c) !=
o d) <>
Answer: b) ==
10. How do you draw a triangle using a loop in Turtle Graphics?
o a) for i in range(4): Go(100) Turn(360/4)
o b) for i in range(3): Go(100) Turn(360/3)
o c) for i in range(5): Go(100) Turn(360/5)
o d) for i in range(36): Go(10) Turn(10)
Answer: b) for i in range(3): Go(100) Turn(360/3)
2. Complete the Sentences with Word Bank (10)
Word Bank: Go, Turn, Color, Reset, Pen_down, If, Width, Boolean, Variables, Turtle
1. The command to move the turtle forward is __Go__.
2. To turn the turtle to the left, you use the __Turn__ command.
3. To draw a line, the turtle must use the __Pen_down__ command.
4. The __Reset__ command clears the screen and resets the turtle.
5. Python supports __Boolean__ data types to represent True or False.
6. To change the width of the turtle's line, use __Width__.
7. Python uses __Variables__ to store data for reuse.
8. Conditional statements are written using the __If__ keyword.
9. The command __Color__ changes the line color in Turtle Graphics.
10. The __Turtle__ module is used to create graphics in Python.
3. Open Questions: Complete the Code (15)
1. Complete the code to print "Hello, World":
print("Hello, World")
2. Write the code to draw a square in Turtle Graphics:
for i in range(4):
Go(100)
Turn(360/4)
3. Create a variable name and assign it the value "Alice":
name = "Alice"
4. Write the code to draw a triangle:
for i in range(3):
Go(100)
Turn(360/3)
5. Code to make the turtle invisible:
Invisible()
6. Write a Python if statement to check if age is greater than 18:
if age > 18:
print("Adult")
7. Write a for loop to print numbers from 0 to 4:
for i in range(5):
print(i)
8. Change the line color to blue:
Color("blue")
9. Write the code to clear the screen:
Clear()
10. Define a variable height with a float value of 5.9:
height = 5.9
11. Complete the code to make the turtle draw without a pen:
Pen_up()
12. Write a Python loop to draw a circle with Turtle Graphics:
for i in range(36):
Go(10)
Turn(10)
13. Check if two variables, a and b, are equal:
if a == b:
print("Equal")
14. Code to assign a Boolean value True to a variable:
is_visible = True
15. Write the code to draw a pentagon:
for i in range(5):
Go(100)
Turn(360/5)
***********************************************************************************
End of
Questions