Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
This chapter is from the book

Quick Quiz

4.9

Answer each of the following questions.

  1. The ________ operator returns False if the left operand is larger than the right operand.
    1. =
    2. <
    3. <=
    4. All of the above
  2. A ________ occurs when an executed statement does not directly follow the previously executed statement in the written application.
    1. transition
    2. flow
    3. logical error
    4. transfer of control
  3. The If...Then statement is called a ________ statement because it selects or ignores one action (or group of actions).
    1. single-selection
    2. multiple-selection
    3. double-selection
    4. repetition
  4. The three types of control structures are sequence, selection and ________.
    1. repeat
    2. looping
    3. redo
    4. repetition
  5. In an activity diagram, a rectangle with curved sides represents ________.
    1. a complete algorithm
    2. a comment
    3. an action
    4. the termination of the application
  6. The If...Then...Else selection statement ends with the keywords ________.
    1. End If Then Else
    2. End If Else
    3. End Else
    4. End If
  7. The ________ operator assigns the result of adding the left and right operands to the left operand.
    1. +
    2. =+
    3. +=
    4. None of the above
  8. The ________ statement executes until its loop-termination condition becomes True.
    1. Do While...Loop
    2. Do Until...Loop
    3. Do
    4. Loop
  9. The ________ statement executes until its loop-continuation condition becomes False.
    1. Do While...Loop
    2. Do Until...Loop
    3. Do
    4. Do While
  10. A(n) ________ loop occurs when a condition in a Do While...Loop never becomes False.
    1. infinite
    2. undefined
    3. nested
    4. indefinite
  11. A ________ is a variable that helps control the number of times that a set of statements executes.
    1. repeater
    2. counter
    3. loop
    4. repetition control statement
  12. The ________ control allows users to add and view items in a list.
    1. ListItems
    2. SelectBox
    3. ListBox
    4. ViewBox
  13. In a UML activity diagram, a(n) ________ symbol joins two flows of activity into one flow of activity.
    1. merge
    2. combine
    3. action state
    4. decision
  14. Property ________ maintains all the values in a ListBox.
    1. All
    2. List
    3. ListItemValues
    4. Items
  15. Items's method ________ deletes all the values in a ListBox.
    1. Remove
    2. Delete
    3. Clear
    4. Del
  16. Items's method ________ adds an item to a ListBox.
    1. Include
    2. Append
    3. Add
    4. None of the above
  • + Share This
  • 🔖 Save To Your Account