FBISE, NCP & NBF-aligned resources for Classes 9–12
Browse by Class
Browse by Type
Computer Chapter 3 : Topic 3.3
Complex Shapes Using Pen Control
1 / 11
Which of the following code fragments correctly repositions the turtle without leaving a visible trace before drawing another figure?
Reasoning: The pen is lifted before movement and lowered afterward.
2 / 11
A Turtle Graphics program contains the following sequence: $\mathbf{pen}\mathbf{up()}$ $\mathbf{goto(100,100)}$ $\mathbf{pendown()}$ What is the main purpose of this sequence?
Reasoning: $\mathbf{goto()}$ moves without drawing because the pen is lifted.
3 / 11
Which sequence correctly represents the logical order when drawing two independent geometric figures?
Reasoning: The pen must be lifted before repositioning.
4 / 11
Which complex shape is produced when the following Python turtle code executes successfully on screen? $\mathbf{for\ i\ in\ range(4):}$ $\mathbf{t.forward(40);\ t.right(90)}$ $\mathbf{t.penup();\ t.forward(70);\ t.pendown()}$ $\mathbf{for\ i\ in\ range(4):}$ $\mathbf{t.forward(40);\ t.right(90)}$
Reasoning: The first loop draws a square. $\mathbf{penup()}$ moves the turtle without drawing before the second square.
5 / 11
What final shape appears after running this Python turtle code containing pen lifting commands correctly? $\mathbf{for\ i\ in\ range(3):}$ $\mathbf{t.forward}\left( \mathbf{50} \right)\mathbf{;\ t.left}\left( \mathbf{120} \right)$ $\mathbf{t.penup();\ t.forward(80);\ t.pendown()}$ $\mathbf{for\ i\ in\ range(3):}$ $\mathbf{t.forward(50);\ t.left(120)}$
Reasoning: Two triangles are drawn, while $\mathbf{penup()}$ prevents a connecting line between them.
6 / 11
Which drawing will this Python turtle code create by repeatedly lifting and lowering its pen? $\mathbf{for\ i\ in\ range(4):}$ $\mathbf{t.forward(20)}$ $\mathbf{t.penup()}$ $\mathbf{t.forward(10)}$ $\mathbf{t.pendown()}$
Reasoning: The turtle alternates between drawing $\mathbf{20}$ units and moving $\mathbf{10}$ units without drawing, producing a dashed line.
7 / 11
What complex figure results when this Python turtle code uses penup to separate two drawings? $\mathbf{t.circle(30)}$ $\mathbf{t.penup();\ t.forward(80);\ t.pendown()}$ $\mathbf{t.circle(30)}$
Reasoning: The turtle draws one circle, moves without drawing, and then creates another separate circle.
8 / 11
Identify the final figure produced by this Python turtle code after moving without drawing between shapes. $\mathbf{for\ i\ in\ range(4):}$ $\mathbf{t.f}\mathbf{orward(40);\ t.right(90)}$ $\mathbf{t.penup();\ t.forward(80);\ t.pendown()}$ $\mathbf{t.circle(20)}$
Reasoning: The loop creates a square, then the turtle lifts its pen and moves before drawing a circle.
9 / 11
Which arrangement is drawn when this Python turtle code repeatedly repositions the pen without marking? $\mathbf{for\ i\ in\ range(3):}$ $\mathbf{t.forward(50)}$ $\mathbf{t.penup()}$ $\mathbf{t.backward(50)}$ $\mathbf{t.right(90);\ t.forward(20);\ t.left(90)}$ $\mathbf{t.pendown()}$
Reasoning: Each line is drawn horizontally, while $\mathbf{penup()}$ allows repositioning downward without producing connecting lines.
10 / 11
What overall shape combination appears after executing this Python turtle program with a pen-lifting movement? $\mathbf{for\ i\ in\ range(5):}$ $\mathbf{t.forward(50);\ t.right(144)}$ $\mathbf{t.penup();\ t.forward(90);\ t.pendown()}$ $\mathbf{for\ i\ in\ range(5):}$ $\mathbf{t.forward(50);\ t.right(144)}$
Reasoning: Each five-step loop creates a star, and the pen is lifted while moving between the two stars.
11 / 11
Which recognizable shape is created when this Python turtle code repositions before drawing the second line? $\mathbf{t.forward(80)}$ $\mathbf{t.penup();\ t.goto(40,40)}$ $\mathbf{t.setheading( - 90);\ t.pendown()}$ $\mathbf{t.forward(80)}$
Reasoning: One horizontal and one vertical line cross at their centers, forming a plus $\mathbf{( + )}$ sign.
Your score is
Restart quiz