QBasic Arrays and Graphics


Available Answers

  1. 1.

    Fill in the blanks.

    1. Array means a _______________ of the same type.
    2. _______________ statement opens several dimensions in the memory.
    3. Subscript is the _______________ of the element stored in an array.
    4. The value entered by the user will be stored in the _______________ location of the array.
    5. All elements in an array are of _______________ type.
  2. 2.

    Write True or False.

    1. An array consists of a number of elements (or subscripts), where each element can store alphabet.
    2. A pixel is a point on the screen, that is lit and can be displayed in any colour.
    3. All elements in an array are of same type.
    4. The LINE statement is used in graphics screen modes to create lines or boxes.
    5. Arrays are not more flexible than ordinary variables.
  3. 3.

    Multiple Choice Questions (MCQs).

    1. _______________ statement opens several dimension in the memory.
      1. DIM
      2. DIMEN
      3. DIMENSIONS
    2. Screen mode _______________ is the default text only screen mode.
      1. 0
      2. 1
      3. 2
    3. SCREEN 1 has _______________ background colour attributes.
      1. 1
      2. 3
      3. 4
    4. SLEEP statement _______________ the program indefinitely or for a specified number of seconds.
      1. stops
      2. pauses
      3. ends
    5. The _______________ statement is used in graphics SCREEN Mode to create circles, arcs or ellipses.
      1. CIRCLE
      2. ARCS
      3. ELLIPSES
  4. 4.

    What is array? Why it is required? Explain.

  5. 5.

    How do we refer to a location in an array?

  6. 6.

    Which statement is used to create a subscripted variable?

10 more answer(s) available.

Please login to post your comments.