Computers

10th -

12thgrade

Image

Switch Statement in C++

36
plays

11 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    The data type of the variable in the switch and value of a case must not be of the same type.

    True

    False

  • 2. Multiple Choice
    30 seconds
    1 pt

    The _____ in switch statement is used to terminate the current sequence.

    default

    goto

    break

    jump

  • 3. Multiple Choice
    30 seconds
    1 pt

    The default statement is optional and it can be used anywhere inside the switch statement.

    True

    False

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?