Learn with Hafiza Palwasha
OXFORD (Book 3), KEYBOARD
Computer Science With Application Software (Third Edition).
Solution
Worksheet 2Page No. 65 & 66
Page No. 65
Q No 1: Search for any five KTurtle commands in the following maze:
Solution:
First row: Leave first and last three letters = CANVASCOLOR
First column: Leave first and last seven letters = FORWARD
Thirteenth column: Leave first and last four letters = SPRITESHOW
Last column: Leave last six letters = TURNRIGHT
Fifth row: Leave first two and last five letters = PENWIDTH
Eighth row: Leave first two and last eight letters = RESET
Thirteenth row: Leave first and last six letters = PENCOLOR
Last row: Leave last seven letters = TURNLEFT
Page No. 65
Q No 2: Match the commands on the left with their actions on the right.
Solution:
a. print 34 + 56 iii). It prints 90
b. turnright 120 iv). It turns the turtle right by 120 degrees from the previous position.
c. direction 120 v). It turns the turtle right by 120 degrees from the starting position.
d. forward 100 ii). It moves the turtle by 100 units.
e. spritehide i). It hides the turtle.
Page No. 66
Q No 3: Complete the missing statements to draw a rectangle of size 60 steps by 100 steps. What is the colour of the rectangle you get? Draw a rectangle of the same colour in the given box.
Solution:
reset turnright 90
penwidth 5
pencolor 255, 0, 0
forward 60
turnright 90
forward 100
turnright 90
forward 60
turnright 90
forward 100
turnright 90
Page No. 66
Q No 4: Write the short form of the following commands.
Solution:
Command Short form
spriteshow ss
canvascolor cc
penwidth pw
direction dir
spritehide sh
turnright tr
turnleft tl
forward fw
backward bw
canvassize cs
Hassan abbas thankyou mam
ReplyDelete