Algorithm & Programming MCQs Set-7

PropellerAds
  1. 1. Which of the following statement allows us to make a decision from the number of choices?
    • break
    • Switch
    • for
    • go to
  2. 2. Which of the following keyword is followed by an integer or character constant?
    • switch
    • case
    • for
    • void
  3. 3. Which of the following enhances the versatility of the computer to perform a set of instructions repeatedly?
    • Function
    • Loop
    • header files
    • statement
  4. 4. Which of the following contains parenthesis after the „while‟ loop?
    • Condition
    • statement
    • count
    • value
  5. 5. The condition being tested within the loop may be relational or relational or logical operations
    • while
    • switch
    • break
    • continue
  6. 6. Which of the following loop uses three things initialization, condition to terminate loop and increasing the value of loop counter?
    • for
    • while
    • goto
    • switch
  7. 7. The three things inside the for loop are separated by
    • colon
    • comma
    • semicolon
    • hyphen
  8. 8. Which of the following statement associated with an „if‟?
    • switch
    • goto
    • break 
    • do while
  9. 9. „do while‟ loop is useful when we want that statement within the loop must be executed
    • Only Once
    • At least Once
    • More than once
    • None of above
  10. 10. Which of the following statement allows the programmer to make the control to the beginning of the loop ,without executing the statement inside the loop?
    • while
    • continue
    • go to
    • if