StudyWithSmile — free flashcards, quizzes and exam practice for school students

Learning Science through Computers

Information Technology · Kerala SSLC (Class 10) · English Medium · 18 questions and answers

Sample questions

Q: Which Python module is used to draw shapes on the screen with a moving 'pen'?
A: The turtle module (turtle graphics).
Q: How do you make the turtle module available in a Python program?
A: By writing import turtle at the top of the program.
Q: What do turtle.forward() and turtle.backward() do?
A: forward(n) moves the turtle forward n steps; backward(n) moves it back n steps, drawing a line.
Q: What do turtle.left() and turtle.right() do?
A: They turn the turtle by the given angle to the left or right, e.g. turtle.left(90).
Q: What do penup() and pendown() do in turtle graphics?
A: penup() lifts the pen so moving draws nothing; pendown() lowers it so moving draws a line again.

Sign in free to study all 18 questions with flashcards, quizzes and spaced revision.