10 quiz

    1. The following flowchart represents what type of control structure?

    2. The three basic functions of an information system are often abbreviatedIPO. What does the I stand for?

    3. Assume that grade = 95 and average = 93. What will be the output of each Visual Logic command below?

    OUTPUT:  “grade: ” & grade
    OUTPUT:  “I like logic and design”
    OUTPUT: “Average = ” & average

    4. In each of the following, indicate whether the variable name is valid or invalid in Visual Logic:

    averageScore
    Weight
    Total_Length

    5. Give the output of the program represented by the flowchart below. Assume that when the program asks the user for input, he or she will enter 8 for X.

    6. Assuming that A = 5 and B = 10, give the result of each calculation below.

    C = B + A/5

    E = B + A^(B/A)

    7. Rewrite each of the following equations in proper programming code.

    8. Write a valid assignment statement for the following:
    Add 3 to x and store result in f
    Multiply f times 4 and store the result in c
    Divide a by 3.14 and store the result in f

    Subtract 8 from f and store the result in z

    9. Using the equation, 4 MOD 3 * (1 + 6) * 2 / 7, identify the order or precedence. What operations will be completed first, second, third, fourth, etc. until the equation is completely evaluated.

    10. Create the IPO Model for the following problem description:
    The program will prompt the user to provide the length and width of a room and the program will then calculate and display the area.

                                                                                                                                      Order Now