CLASS 6
CHAPTER 2 - PROGRAMMING 01
Q1 What is program?
Ans 1. Program is a collection of instructions for performing a specific task.
Q2. What is Programming?
Ans 2 – Programming is the process of writing instructions / programs that get executed by computers.
Q3 What is Programming language?
Ans 3 – Programming Language is a formal language and is a set of rules for instructing a computer to perform specific task. Example – LOGO , JAVA , C ,C++
Q4. What is LOGO?
Ans 4 – LOGO is Logic Oriented Graphics Oriented.
Logo is a programming language.
Q 5. Draw window of MSW LOGO and name different parts.
Ans 5 –
Q.6 What is Pixel?
Ans 6 – Pixel is the smallest unit of a digital image or computer screen that can be displayed.
Pixel is unit of measurement of Turtle in LOGO.
Q7 . – What are two main commands in Logo?
Ans 7 – Two main commands in LOGO are-
a)
Move Command – It is used by turtle to move forward or backward in a straight line.
i)
FORWARD Distance or FD distance – to move forward.
ii)
Back Distance or BK Distance – to move backward.
b)
Turn Command – It is used by Turtle to move by an angle .
i)
LEFT angle or LT angle – to turn left.
ii)
RIGHT angle or RT angle – to turn right.
Q8. – What is REPEAT command in LOGO?
Ans 8 – Repeat command is used to repeat the given set of commands for n times.
REPEAT <no. of times> [commands]
Q9.-What is PRINT command in LOGO?
Ans. 9 – Print Command is used to do calculations. Output of the given calculation is shown in output window of LOGO.
PRINT 4 *80
Output is 320
Q.10 – What is HT command?
Ans 10 – HT command is used to Hide turtle on Logo Screen.
Q. 11 – What is ST Command?
ANs 10 – ST command Is used to Show Turtle on Logo Screen.
Q.12 – What is Home Command?
Ans 12 – Home Command is used to place turtle in mid of screen.
Q.13 Write Commands to draw a square in LOGO.
Ans 13- LOGO commands are-
FD 10
RT 90
FD 10
RT 90
FD 10
RT 90
FD 10
RT 90
Q.14 – Write commands to draw a Rectangle in LOGO.
Ans 14- Commands are-
FD 10
RT 90
FD 15
RT 90
FD 10
RT 90
FD 15
RT 90
Q.15 – Write commands to draw a circle in LOGO.
Ans 15- Commands to draw a circle are –
REPEAT 360 [FD 1 RT 1 ]