Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Graphics

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is Turtle graphics in Python?

a)

A type of computer game.

b)

A feature that allows users to write text

c)

A method for creating 3D animations in Python

d)

A feature that allows users to create images using a turtle that can move around the screen based on simple commands.

2.

How can you draw a SQUARE using Turtle graphics & loop?

a)

import turtle
# Create turtle object

t = turtle.Turtle()
for i in range(4):

t.forward(100)
t.right(90)

b)

import turtle t = turtle.Turtle() t.forward(100) t.right(90) t.forward(100) t.right(90) t.forward(100) t.right(90)

c)

import turtle

t = turtle.Turtle() t.forward(100)

t.left(90)

t.forward(100)

t.left(90) t.forward(100)

t.left(90)

d)

import turtle t = turtle.Turtle() t.forward(100) t.right(90) t.forward(100) t.right(90) t.forward(100) t.right(90) t.forward(100)

3.

How can you draw a CIRCLE using Turtle graphics?

a)

import turtle

t = turtle.Turtle() t.draw_circle(100)

b)

import turtle

t = turtle.Turtle() t.circle(100)

c)

import turtle

t = turtle.Turtle() t.create_circle(100)

d)

import turtle

t = turtle.Turtle() t.draw_shape(100)

4.

What are the primary shapes that can be drawn using Python graphics?

a)

squares

b)

rectangles, circles, lines

c)

triangles

d)

ovals

5.

How can you draw a TRIANGLE using Turtle graphics?

a)

import turtle # Create turtle object

t = turtle.Turtle() # Draw triangle

for i in range(3):

t.forward(100)

t.left(120)

b)

import turtle t = turtle.Turtle() t.forward(100) t.left(120) t.forward(100) t.right(120) t.forward(100) t.left(120)

c)

import turtle t = turtle.Turtle() t.forward(100) t.right(120) t.forward(100) t.right(120) t.forward(100) t.right(120)

d)

import turtle t = turtle.Turtle() t.forward(100) t.left(120) t.forward(100) t.left(120) t.forward(100) t.left(120)

6.

What are the different methods to move the Turtle in Python graphics?

a)

forward(), backward(), right(), left()

b)

move()

c)

down()

d)

rotate()

e)

up()

7.

How can you fill a shape with a specific color in Python graphics?

a)

shape_object.fill_color('specific_color')

b)

color_shape('specific_color')

c)

{ shape_object.fill('specific_color') }

d)

fill_shape('specific_color')

8.

How can you draw a RECTANGLE using Turtle graphics?

a)

Set the Turtle object to 'invisible' mode

b)

Import 'pandas' library to draw a rectangle

c)

Use the 'circle' method instead of 'forward' and 'right'

d)

import turtle # Create Turtle object

t = turtle.Turtle() # Draw rectangle

for i in range(2):

t.forward(100)

t.right(90)

t.forward(50)

t.right(90)

9.

What are the advantages of using Turtle graphics in Python?

a)

Difficult for advanced users

b)

Beginner-friendly, easy visualization of concepts, simple graphics and animations creation

c)

Limited functionality

d)

Requires external libraries

10.

How can you create custom colors in Python graphics?

a)

Use the RGB format to specify custom colors in Python graphics.

b)

Use the CMYK format to specify custom colors in Python graphics.

c)

Use the HEX format to specify custom colors in Python graphics.

d)

Use the HSL format to specify custom colors in Python graphics.