QBasic - Multiple Choice and Sub Procedures


Available Answers

  1. 1.

    Fill in the blanks.

    1. Each case can handle ______________ lines of code.
    2. SELECT CASE statements must always be ended with ______________ ______________.
    3. ON ... GOSUB is a ______________ statement.
    4. ______________ statement returns to the original call code line.
    5. You should use ______________ ______________ when IF statements get too long or complicated.
  2. 2.

    Write True or False.

    1. SELECT CASE is a structured statement.
    2. SELECT CASE is used to automatically determine a program decision by checking the value of a variable.
    3. ON ... GOSUB is not a control statement.
    4. When there are multiple choices then the user has to SELECT two choices.
    5. Each case can handle single line of code.
  3. 3.

    Multiple Choice Questions (MCQs).

    1. _____________ will be executed when no other case is evaluated true.
      1. CASE OTHER
      2. CASE ELSE
      3. CASE OPTION
    2. CASE conditions normally are listed in some _____________ order going down the page.
      1. logical
      2. simple
      3. random
    3. SELECT CASE statement must always be ended with _____________ SELECT.
      1. Stop
      2. END
      3. CLEAR
    4. SELECT CASE statement can evaluate only _____________ value or expression.
      1. one
      2. two
      3. three
    5. GOSUB procedures use _____________ numbers.
      1. serial
      2. random
      3. line
  4. 4.

    When should you use the SELECT CASE statement?

  5. 5.

    What is 'RETURN without GOSUB' error? How is it removed?

  6. 6.

    Explain GOSUB with example.

6 more answer(s) available.

Please login to post your comments.