FBISE, NCP & NBF-aligned resources for Classes 9–12
Browse by Class
Browse by Type
Computer Chapter 3 : Topic 3.2
Drawing Shapes with Turtle Movement
1 / 14
A teacher asks students to draw a regular pentagon using $\mathbf{Turtle}$ Graphics. Which code correctly performs this task?
Reasoning: A pentagon has an exterior angle of $\mathbf{72}^{\mathbf{o}}$.
2 / 14
A programmer wants the turtle to draw a regular hexagon. Which of the following code segments is most appropriate?
Reasoning: A regular hexagon has six sides and a turning angle of $\mathbf{60}^{\mathbf{o}}$.
3 / 14
A student wants to draw a rectangle having opposite sides of different lengths. Which of the following code segments will correctly produce the rectangle?
Reasoning: Opposite sides are equal while adjacent sides differ.
4 / 14
A student wants to draw a regular octagon using $\mathbf{Turtle}$ Graphics. Which code correctly draws the required figure?
Reasoning: The exterior angle of a regular octagon is $\mathbf{45}^{\mathbf{o}}$.
5 / 14
A teacher asks students to draw a straight horizontal line using $\mathbf{Turtle}$ Graphics. Which code is the most suitable?
Reasoning: A single forward movement draws one straight line.
6 / 14
A student wants to draw a regular decagon using a loop. Which of the following code segments correctly draws the figure?
Reasoning: A decagon has an exterior angle of $\mathbf{36}^{\mathbf{o}}$.
7 / 14
A student wants the turtle to draw the same square, but in the opposite rotational direction. Which code correctly accomplishes this objective?
Reasoning: Using $\mathbf{left(90)}$ instead of $\mathbf{right(90)}$ draws the same square in the opposite direction.
8 / 14
A programmer wants to draw a five-pointed star using $\mathbf{Turtle}$ Graphics. Which of the following code segments is the most appropriate?
Reasoning: A five-pointed star is produced by turning the turtle $\mathbf{144}^{\mathbf{o}}$ after each line segment.
9 / 14
A programmer wants to draw a square of side $\mathbf{100}$ pixels using Python Turtle Graphics. Which code is correct?
Reasoning: A square has four equal sides, and the turtle must turn $\mathbf{90}^{\mathbf{o}}$ after drawing each side.
10 / 14
A programmer wants to create an equilateral triangle using Turtle Graphics. Which code segment is most appropriate?
Reasoning: An equilateral triangle requires three equal sides and an exterior turning angle of $\mathbf{120}^{\mathbf{o}}$.
11 / 14
A student uses Turtle Graphics to draw a regular pentagon. Which loop will correctly complete the shape?
Reasoning: A regular pentagon has five sides, and its exterior turning angle is $\mathbf{360}^{\mathbf{o}}\mathbf{\div 5 =}\mathbf{72}^{\mathbf{o}}$.
12 / 14
A programmer needs to draw a regular hexagon using six equal Turtle movements. Which instructions should be used?
Reasoning: A regular hexagon has six equal sides, requiring a turning angle of $\mathbf{360}^{\mathbf{o}}\mathbf{\div 6 =}\mathbf{60}^{\mathbf{o}}$.
13 / 14
A turtle is facing right and must move upward before drawing a vertical line. Which instruction changes its direction?
Reasoning: When facing right, turning left by $\mathbf{90}^{\mathbf{o}}$ makes the turtle face upward before moving forward.
14 / 14
A programmer approximates a circle using $\mathbf{36}$ equal Turtle movements. Which code segment produces the required complete rotation?
Reasoning: A complete rotation is $\mathbf{360}^{\mathbf{o}}$, so $\mathbf{36}$ equal turns require $\mathbf{360{^\circ} \div 36 =}\mathbf{10}^{\mathbf{o}}$ per movement.
Your score is
Restart quiz