How to draw a circle (Repeat Statement)
Category : 6th Class
To draw a circle you need to use Repeat statement, as shown below:
REPEAT 360 [FD 1 RT 1]
A Practical Approach to make a Pattern of a Watch on the LOGO Graphical Area.
A practical approach to make a pattern of watch in the LOGO program. To make a watch with second hand running is drawn in LOGO ring the following commands. To watch Pu rt 30 repeat 12 [fd 110 pd label repcount pu bk 110 rt 30] Px st setpensize [5 5] repeat 1000[fd 100 wait 40 bk 100 rt 6] After entering the given commands, press file menu to open the save and exit sub menu. Press save and exit to same the text box. After execution of the list of commands named as watch, LOGO draws the following pattern on the graphical area with one second hand running save as a watch's second hand runs.
Performing Arithmetic Operations
Logo allows performing the usual arithmetic operations. The result can be printed " Logo command window using the print statement. (See Figure. 6.2.3)
Operations | Command |
Addition | Print 5 + 38 |
Subtraction | Print 8 - 44 |
Division | Print 12/34 |
Which one of the following commands is used to move the direction of turtle to left 30°?
(A) ST30
(B) CS30
(C) RT30
(D) LT30
(E) None of these
Answer: (d)
Explanation
Correct Option:
(D) LT 30 allows moving the cursor to left angle 30°.
Incorrect Options:
(A) ST allows showing the Turtle.
(B) CS allows clearing the picture before a new picture is drawn.
(C) RT30 allows moving the cursor to right angle 30°.
Which one of the following is the correct code to generate the following output?
(A) REPEAT 5 [FD 100 RT 45]
(B) REPEAT 6 [FD 100 RT 45]
(C) REPEAT 8 [FD 100 RT 90]
(D) REPEAT 8 [FD 100 RT 45]
(E) None of these
Answer: (d)
Explanation
Correct Option:
(D) REPEAT 8 [FD 100 RT 45]
Incorrect Options:
Rest of the options is incorrect.
Jack wants to draw a line. Which one of the following commands he should use to draw a line?
(A) RT
(B) LT
(C) FD
(D) All of these
(E) None of these
Answer: (c)
Explanation
Correct Option:
(C) FD command with number is used to draw a line.
Incorrect Options:
(A) RT allows moving the cursor to right angle.
(B) LT allows changing the direction of the Turtle.
You need to login to perform this action.
You will be redirected in
3 sec