Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 124 - 2505_CoreGPT(Podar)_Flipbook_C7
P. 124

    Restart

                            Graphic window allows you to draw shapes like lines, circles and even create animations.
                            The CLS command clears the text output window only and CLG command clears the
                            graphics output window (removes shapes, drawings, colors, etc.).
                            In BASIC-256, the COLOR command is used to set the drawing colour for shapes, lines
                            and text.
                            In BASIC-256, you can display text in the graphics window using the TEXT command.
                            The LINE statement is used to draw a straight line between two specified points in the
                            graphics window.
                            The RECTANGLE (or RECT) statement is used to draw a rectangle in the graphics window.
                            The CIRCLE statement draws a circle, creating a simple circular shape.
                            ELLIPSE statement allows you to create elliptical shapes by specifying the coordinates
                            and the width and height of the ellipse.
                            The POLY statement draws multi-sided shapes by joining the specified points.

                                                               Checkpoint

                      A.  Tick ( ) the correct option.
                         1.  What is the default size of the graphics window in BASIC-256?

                            a.  300 × 300 pixels                             b.  512 × 512 pixels

                            c.  1024 × 768 pixels                            d.  800 × 600 pixels
                         2.  Which of the following commands is used to clear the graphics window?

                            a.   CLS                                         b.  PLOT

                            c.   CLG                                         d.  Graphics Width
                         3.  In the PLOT command, what does the parameter x represent?

                            a.   Vertical coordinate                         b.  Size of the dot

                            c.   Colour of the dot                           d.  Horizontal coordinate
                         4.  In the graphics window, the x-axis increases from ...................

                            a.   Bottom to top                               b.  Left to right

                            c.   Right to left                               d.  Top to bottom
                         5.  What colour does the RGB value (0, 255, 0) represent?

                            a.   Green                                       b.  Blue

                            c.   Purple                                      d.  White

                    122     Premium Edition-VII

| 119 120 121 122 123 124 125 126 127 128 129 |