Graphics in QBASIC


Available Answers

  1. 1.

    Choose the Correct Option.

    1. Which command is used to colour an enclosed area?
      1. PAINT
      2. COLOR
      3. PSET
      4. DRAW
    2. The ___________ command may also be used to relocate the drawing position using DRAW command.
      1. COLOR
      2. BLACK
      3. LINE
      4. PSET
    3. The parameter B used with the LINE statement is used to draw a ____________.
      1. Line
      2. Circle
      3. Box
      4. None of these
    4. You can draw concentric circles by using a fixed center co-ordinate but varied ___________.
      1. COLOR
      2. LINE
      3. Radii
      4. All of these
    5. The x co-ordinate is used to specify the ___________.
      1. Row number
      2. Column number
      3. Both a and b
      4. None of these
    6. The parameter G used with the DRAW command is used to draw a line ___________.
      1. Move diagonally up and right
      2. Move diagonally down and right
      3. Move diagonally up and left
      4. Move diagonally down and left
  2. 2.

    State True (T) or False (F):

    1. The DRAW command is used to draw a point on the screen.
    2. The LINE command can only be used to draw lines.
    3. The CIRCLE command is used to draw circles of the same radius.
    4. The origin of the x and co-ordinate is always in the upper left corner of the screen.
    5. The PAINT command is used to fill an enclosed shape with a specified colour.
  3. 3.

    Fill in the blanks with correct word:

    PRESET, LINE, WHITE, PSET, SCREEN 0
    1. ____________ is used to revert back to the text mode.
    2. The ____________ command may be used to draw a rectangle in one go.
    3. The ____________ is used to draw a point on the screen.
    4. The default colour in the graphics screen is _____________.
    5. The ____________ command is used to remove the dot drawn using the PSET command.
  4. 4.

    Give the output of the following line in graphics mode:

    DRAW "E30 F30 G30 H30"

  5. 5.

    State the difference between PSET and PRESET command.

  6. 6.

    What happens when 16 is added to the foreground colour code while using the COLOR command.

6 more answer(s) available.

Please login to post your comments.