Problem Solving Flashcards

1
Q

How are instructions given to computer?

A

Computer programs – finite set of precise instructions written in a computer language. Giving precise, unambiguous instructions is not universally inherent in human nature.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the necessary steps to go from identifying a problem to writing a program that can solve it

A

Before the program is written, we must find a way to solve the problem.
After figuring out how to solve the problem we then translate the solution into a language meaningful to the computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What criteria should problem-solving statements or instructions meet in order to be effective?

A

Problem-solving statements/ instructions should be:
Precise
Unambiguous
Must be in a logical sequence
Finite, i.e. terminate after a definite number of steps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are some examples of everyday problems that can be solved by providing step-by-step instructions or recipes?”

A

Examples of everyday problems:

Write a recipe for making a cheese sandwich.
Write instructions to give directions to a visitor to get to the nearest hospital, starting from your home.
Write instructions to tell someone how to download an app on their phone.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the key steps involved in the problem-solving phase of computer program design?

A

The design of any computer program involves two phases:
The Problem-solving Phase
The Implementation Phase

Problem-Solving Phase comprises the following steps:
Define the problem

Analyse the problem

Propose and Evaluate possible solutions

Choose the optimal solution and express it as an algorithm.

Test and validate the algorithm for correctness
Implement the Algorithm

Run the Program

Document , maintain and improve the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to define the problem

A

The problem must first be defined: Ensure that you understand the Problem
Defining the problem is the first step towards finding a solution
It helps the programmer to understand what is given and what is required
If the programmer does not fully understand what is required, he/she cannot produce the desired solution to the problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the three key components involved in decomposing a problem during the process of understanding and defining it?

A

One of the biggest challenges faced in problem-solving is understanding the problem to be solved.
Defining the problem can be accomplished by decomposing the problem into three key components:
What is given (the inputs)
The tasks that must be performed (processing)
The expected results (the output)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define Problem Solving?

A

Problem Solving - the process of creating a correct set of instructions that if followed in order, will produce the expected results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define algorithm

A

Algorithm - a logical sequence of precise steps which, if followed, allows for the solution to a problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Define Pseudocode

A

Pseudocode- a problem solving language using simplified ‘english like’ statements to define or design an algorithm.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a flowchart?

A

Flowchart - a pictorial way of representing an algorithm using a set of standardised symbols (shapes).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How many steps are there in the problem solving process

A

Five

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

List the steps in the problem solving process

A

(a) define the problem
(b) propose and evaluate solutions
(c) determine the most efficient solution
(d) develop and represent the algorithm
(e) test , validate and improve the solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the divide and conquer approach?

A

The divide and conquer approach breaks large problems into smaller tasks.
This is a structured method where a big problem might not be simple to solve.
The problem is divided into manageable sub-problems which may prove easier to solve.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an Input-Processing-Output chart?

A

An Input - Processing - Output chart is a diagrammatic way to break down the components of a problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the first step in creating the IPO chart?

A

Identify the input data required

17
Q

What is the second step in the IPO chart?

A

Indicate what processing is required to solve the problem

18
Q

What is the second step in the IPO chart

A

Lastly, define the output you expect.

19
Q

In the defining diagram what does input refer to?

A

Input refers to the source data provided - easily identified by the keywords – given, read , accept or input

20
Q

What does output refer to?

A

Output refers to the end result required - keywords are print, display, produce, output

21
Q

What does processing refer to?

A

Processing are the actions that must be performed to achieve the required output - it answers the question: