Flowcharts, Pseudocode and Python
Quiz 1
Techniques for Problem Solving


  1. You need to calculate the square of a number. What is the input of this problem?

    Square of the number
    Cube of the number
    Number
    Input

  2. You need to calculate the square of a number. What is the output of this problem?

    Square of the number
    Cube of the number
    Number
    Output

  3. You need to calculate the area of a rectange. Length and width of the rectangle are given to you. What are the inputs of this problem?

    Area and length
    Width and area
    Length and width
    Area

  4. You need to calculate the area of a rectange. Length and width of the rectangle are given to you. What is the output of this problem?

    Area and length
    Width and area
    Length and width
    Area

  5. What is the third step in solving a problem as stated in the textbook?

    Identify the goal or objective
    State the problem
    Create a list of tasks to achieve your objective
    Identify your input

  6. What is an algorithm?

    The input of the problem
    The output of the problem
    The step-by-step instructions to solve the problem
    None of the above

  7. You need to calculate the volume of a cube. What will be the inputs of this problem?

    Length, width and height of the cube
    Volume of the cube
    Length and height of the cube
    None of the above

  8. You need to calculate the volume of a cube. What will be the output of this problem?

    Length, width and height of the cube
    Volume of the cube
    Length and height of the cube
    None of the above

  9. Debugging is the process of:

    Identifying inputs of a problem
    Removing errors, testing and revising a program to get expected output
    Identifying output
    All of the above

  10. You need to calculate the following equation: z = a * 2 + b * 3. What will be the inputs of this problem

    a and b
    z and a
    b and z
    a, b and z