Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 130 - logicode 2609 C6
P. 130

    18  After 2 seconds the output of mySprite2
                                                                              will display in the Game Simulator window.

                                                       17  The output
                                                       of mySprite will
                                                       display in the
                                                       Game Simulator
                                                       window.

                                WHAT IS A BUG?

                      A bug is an unexpected  problem  in your program. You  follow  a defined  sequence  to  write a
                      program, from which you expect to return a specific output. Any change in the expected and
                      actual output of the program is said to be the result of a bug.

                      So, we can say that bug is a general term which is used to describe any unexpected problem with
                      hardware or software.

                      Example: Suppose you are going out for a family picnic. You are ready to go, but you notice that
                      the tyre of the car is puncture, due to which your picnic will get delayed for few hours or you need
                      to postpone it for some other day. As first you need to repair the tyre. So, this puncture in the tyre
                      of the car can be termed as a ‘bug’ in programming.

                                WHAT IS AN EVENT?

                      Event is an action which has happened. You can consider event as a generalization of things on
                      which the program responds.

                      In programming, an event is an action which occurs as a result of the user or another source, such
                      as a mouse click.

                      Examples of the events are:
                         Clicking and loading the web page on web browser

                         Creation of file in a file system

                         Webcam or microphone receiving sensory input

                      128   Premium Edition-VI

| 125 126 127 128 129 130 131 132 133 134 135 |