You are on page 1of 3

Name ------------ Revision worksheet

Class: IV Topic: Writing Procedures

Date ----------------

Q.1 Fill in the blanks:

1 A procedure consists of Three parts.

2 We type commands in the Input box.

3 A file saved in Logo will have .lgo extension.

4 LOAD command is used to recall a saved procedure.

5 ERASER command is used to delete a procedure from the memory.

Q.2 State True or False:

1 Repeat is used to run the instructions list repeatedly= True

2 To draw a circle, round brackets are used after Repeat 36 command for
specifying other .=False
3 Input box is used to enter the primitive in procedures.=True

4 A procedure can also be written in Logo Editor window.=True

5 We cannot remove a procedure, once it is written. = False

6 To draw a hexagon, Repeat 4 command is used. = False


Q.3 Application Based Questions:

1 Amita wants to write a procedure named 'GREEN' . What should she type
in the first line to start the procedure?
Ans:- Type TO GREEN in the Input box.

2 Sumit has created a procedure to draw a boat in Logo and saved it by the name
'Boat'. Next day when he tried to type the name 'Boat', the computer displayed
the message " I don't know how to Boat". Why has it happened?
Ans:- Because Boat command is deleted.
Q.4 Multiple Choice Questions:
1 Which command is used to set color which is to be filled in a shape?
a) SETFLOODCOLOR
b) WRAP
c) SETSCREENCOLOR
2 Which command turtle’s pen into an eraser?
a) PE
b) PD
c) PU
Q.5 Write short form of the following commands:
1
HIDETURTLE HT
2
CLEARSCREEN CS
3
CLEARTEXT CT
4
PNDOWN PD
5
PENERASER PE
Q.6
Unscramble the logo commands:
1) FROAWDR FORWARD
3) REAETP REPEAT
4) EFTLOOOODCLRS SETFLOODCOLOR
Q.7
Write the LOGO commands to draw following using the repeat command.
1. A circle Repeat 360 [ FD 1 RT 1]

2. A triangle Repeat 3 [ FD 120 RT 120]


3. A decagon of side 60 Repeat 60[FD 36 RT 36]
4. An arc Repeat 180 [ FD 1 RT 1]

5. A rectangle Repeat 30[ FD 180 RT 90 FD 100 RT 90]

Q.8
Answer the following questions.
1 1. What is LOGO?
Ans. LOGO stands for Language of Graphic Oriented. In LOGO, by writing codes we can
draw objects and perform calculations.
2 What is the turtle in LOGO?
Ans. The turtle in LOGO is the small triangle that draws a line when it moves.

3 What is the use of main screen?


Ans. The main screen window holds a triangle, called turtle, and other elements such
as the title bar, menu bar and scroll bar.
4 Give primitive use to lift the turtle’s pen up and to put down the pen.
Ans. The primitive use to lift the turtle’s pen up is to move the turtle to any part of the screen
without drawing a line, the pen down primitive puts the turtle down.

5 What is the REPEAT command?


Ans. The REPEAT command allows us to give information in one line instead of giving in
multiple lines.
Command: REPEAT number of steps [commands]

6 How do you fill colour in a shape? Describe


Ans. The FILL primitive fills the colour defined by the SETFLOODCOLOR primitive
in a closed shape.
We must go inside the shape to use the FILL primitive.
Command: FILL

7 What is the use of SETFLOODCOLOR primitive? Explain using examples.


Ans. The SETFLOODCOLOR primitive is used to set a color which is to be filled in
a closed shape. Command: SETFLOODCOLOR [ COLOR CODE]
Example: SETFLOODCOLOR [255 0 0]

8 Compare HT and ST commands.


Ans. HIDETURTLE (HT): The HT primitive makes the turtle invisible from the screen.
Example: HT
SHOWTURTLE (ST): The ST primitive makes the turtle visible, if it is invisible.
Example: ST
9
Identify the mistakes in the given LOGO commands. Rewrite them correctly.
1) Fd 100 RR 20 -FD 100 RT 22
2) HT 66 - HT 66
3) PU 30 - PU
4) SETFILL - FILL
10 What do you understand by the term procedure in logo?
Ans:- A procedure is a set of LOGO commands given one after the other to
perform a particular task. Each procedure should be given a specific name.
11 What are the parts of a procedure? Explain briefly.
Ans:- A procedure has three parts:
TITLE LINE : It allows you to give a name to the procedure.
It always starts with the word TO.
BODY: It contains all the primitives for drawing a desired figure.
END LINE : It contains the word 'End', which conveys to the computer
that primitives in a procedure are over.
12 What are the rules for writing a procedure?
Ans:- Rules for writing a procedure are:
A procedure name can have numbers symbols and alphabets.
First character of a procedure name should always be an alphabet.
A procedure name cannot have any blank space and arithmetic operators.

13 How can you save a procedure? Explain any one method.


Ans:- A procedure can be saved by typing save " Procedure Name " in the
Command Input Box.

14 What is the use of Repeat primitive? Give an example.


Ans:- The Repeat primitive is used to run the instructions list repeatedly while
using the Repeat command. E.g., for drawing a square type REPEAT 4[FD 100 RT 90]

15 How will you erase a procedure?


Ans:- A procedure can be erased by typing using the Erase " Procedure Name".

You might also like