Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 100 - 2632_CodeMind
P. 100

    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

                       Incoming network traffic
                       Typing on keyboard

                       Timer

                                                                                        Using MakeCode Arcade     99

| 95 96 97 98 99 100 101 102 103 104 105 |