Quiz 1

Techniques for Problem Solving

- 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

- 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

- 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

- 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

- 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

- 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

- 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

- 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

- 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

- 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