FBISE, NCP & NBF-aligned resources for Classes 9–12
Browse by Class
Browse by Type
Computer Chapter 3 : Topic 3.4
Creating Complex Shapes with Turtle
1 / 9
A Python program contains the following loop: $\mathbf{for\ i\ in\ range}\left( \mathbf{5} \right)\mathbf{:}$ $\mathbf{turtle.forward(80)}$ $\mathbf{turtle.right(72)}$ Which shape will most likely be drawn when this program executes successfully?
Reasoning: A regular pentagon has an exterior angle of $\mathbf{72}^{\mathbf{o}}$.
2 / 9
A $\mathbf{Turtle}$ Graphics program repeatedly executes the following statement: $\mathbf{turtle.circle(50)}$ $\mathbf{turtle.left(30)}$ What is the most likely result after twelve repetitions?
Reasoning: Rotating $\mathbf{30}^{\mathbf{o}}$ between circles creates a flower-like design.
3 / 9
When drawing a regular octagon using $\mathbf{Turtle}$ Graphics, what turning angle should be used after each side?
Reasoning: Exterior angle $\mathbf{=}\mathbf{360}^{\mathbf{o}}\mathbf{\div 8 =}\mathbf{45}^{\mathbf{o}}$.
4 / 9
Which statement correctly changes both the pen color and the fill color simultaneously before drawing a filled polygon?
Reasoning: $\mathbf{color()}$ can set both pen and fill colors.
5 / 9
A programmer wants to draw a filled rectangle. Which sequence of $\mathbf{Turtle}$ commands should surround the drawing statements?
Reasoning: Filling begins with $\mathbf{begin\_ fill(}\mathbf{)}$ and ends with $\mathbf{end\_ fill()}$.
6 / 9
While drawing a polygon, one side appears longer than the others although the turning angle is correct. What is the most likely reason?
Reasoning: Equal side lengths are necessary for regular polygons.
7 / 9
Which code fragment is most suitable for drawing a spiral?
Reasoning: Distance increases each iteration while turning consistently.
8 / 9
Which Turtle function changes the thickness of the lines used to draw shapes?
Reasoning: $\mathbf{width()}$ (or $\mathbf{pensize()}$) changes line thickness.
9 / 9
A $\mathbf{Turtle}$ Graphics program contains: $\mathbf{for\ i\ in\ range(36):}$ $\mathbf{turtle.forward(100)}$ $\mathbf{turtle.left(170)}$ What kind of figure is most likely produced?
Reasoning: Repeated turns of $\mathbf{170}^{\mathbf{o}}$ generate intricate star patterns.
Your score is
Restart quiz