Page 106 - TGPT_V5.0_C3_Flipbook
P. 106

UNDERSTANDING PROGRAMS


              A computer understands step-by-step instructions written only in a unique language, called as
              program. The computer reads the program we write and follows as per our instructions.

              Let's write a program to make a square.




                    Move 2 steps right.

                    Move 2 steps up.

                    Move 2 steps left.

                    Move 2 steps down.



                                                                                      Start

              Similarly, we can write a program to make a rectangle.



                    Move 2 steps right.

                    Move 1 step up.

                    Move 2 steps left.

                    Move 1 step down.                                                 Start







                         Timeline



                          The process of completing one step and going onto the other is known as stepwise thinking.

                          Decision making is a process of arriving at a conclusion by making a choice.

                          The act of repeating an action again and again is called looping.

                          A program is a step-by-step instructions for a computer to perform a task.





                     Choose the correct option.

                      1.  Which statement do we follow if the condition is Yes?

                               a.  Then                                      b.  Otherwise


                               c.  If                                        d.  All of these




                  104  Premium Edition-III
   101   102   103   104   105   106   107   108   109   110   111