FBISE, NCP & NBF-aligned resources for Classes 9–12

Computer 11th

Computer 11th Chap 3 : Topic 3.4

/9

Report a question

You cannot submit an empty report. Please add some details.

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?

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?

3 / 9

When drawing a regular octagon using $\mathbf{Turtle}$ Graphics, what turning angle should be used after each side?

4 / 9

Which statement correctly changes both the pen color and the fill color simultaneously before drawing a filled polygon?

5 / 9

A programmer wants to draw a filled rectangle. Which sequence of $\mathbf{Turtle}$ commands should surround the drawing statements?

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?

7 / 9

Which code fragment is most suitable for drawing a spiral?

8 / 9

Which Turtle function changes the thickness of the lines used to draw shapes?

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?

Your score is

0%