Algorithm & Programming MCQs Set-8

1. Which of the following can be replaced by if
  • switch
  • while
  • continue
  • for
2. Which of the following statement is useful while writing menu driven programs
  • while
  • break
  • switch
  • if
3. Which of the following is self contained block of statements that perform a coherent task of some kind?
  • function
  • loop
  • statement
  • body of program
4. The function gets called when the function name is followed by
  • colon
  • semicolon
  • statement
  • braket
5. The mechanism used to convey information to the function is the
  • Argument
  • commands
  • loops
  • statements