Monday, 19 March 2012

Internet, Web Programming and Java MCQ 06


  1. A statement is an ______________ given to the computer to perform a specific action

    1. s

  1. A statement can either

    1. Be single
    2. Be Compound
    3. Both a & b
    4. None of these

    1.  
  1. A single statement is always is terminated by a __________________

    1. Comma
    2. Terminator
    3. Double Quotes
    4. None of these

  1. A compound statement also known as ________

    1. Lock
    2. Block
    3. Double
    4. None of these

  1. The name of Control statement are

    1. Conditional
    2. Iteration
    3. Jump
    4. All of these

  1. Conditional statement also known as

    1. Selection
    2. Co-selection
    3. Double
    4. None of these

  1. To make decisions based on a given condition known as ________

    1. Conditional Statement
    2. Selection Statement
    3. Both a & b
    4. None of these

  1. A nested statement is

    1. If-else
    2. Else
    3. For
    4. If

  1. A nested statement contains ______________ statement

    1. One
    2. One or more
    3. Zero
    4. None of these

  1. If-else-if ladder also known as the

    1. Else-if staircase
    2. If-else-if staircase
    3. Staircase
    4. None of these

  1. The switch statement evaluates the value of an expression compares it with the list of __________ constants

    1. Integer
    2. Character
    3. Short/byte
    4. All of these

  1. Jump statement are used to alter the flow of _____________

    1. Conditional
    2. Unconditionally
    3. Both a & b
    4. None of these

  1. The jump statements defined in java are

    1. Break
    2. Continue
    3. Return
    4. All of these

    1.  
  1. The while loop fails to execute when the condition evaluates to

    1. True
    2. False
    3. Either true or false
    4. None of these

    1.  
  1. `Which statement use to make a program more flexible

    1. Control Statement
    2. Single Statement
    3. Both a & b
    4. None of these

2 comments :

  1. I came to your site and have analyzed your post. There is excellent details you posted here. I enjoyed reading your blog, and it is both instructional and enjoyable. web designers sydney

    ReplyDelete
  2. Thanks for sharing the valuable information for Web designers. Keep Blogging!!!
    Web Design Parramatta

    ReplyDelete