ICT term 1 Question Bank Computational Thinking Flashcards

1
Q

What is a loop?

A

Repeating a step or task in an algorithm or computer program is known as loop or iteration. We use loops to show where repetition happens in a computer program so that we do not need to write out the same instructions many times.

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

What is selection in Computational thinking?

A

Selection happens when you reach step in the algorithm where there are two or more possibilities.

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

What is decomposition in computational thinking?

A

Decomposition is to break down a problem into smaller parts. As the parts are smaller , they are easier to manage .You can solve small parts of the problem and then bring these parts together to solve the whole problem.

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

Describe what pseudocode is?

A

Pseudocode is a way to describe algorithms. Using Pseudocode can help you show your planning for a program and how you would solve a problem. Pseudocode can also help you see that there might be morehan one way to solve a problem .Pseudocode uses words instead of drawings to show your computational thinking.

Pseudocode is meant for us to read ,not for computer to follow.

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

Explain abstraction in algorithm?

A

An abstraction is taking away unnecessary details to help solve a problem. Simplifying a problem to see all possible solutions.

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

Define exhaustive search algorithm?

A

An exhaustive search algorithm tries every possible solution to find an answer to a problem.

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

Explain Bubble sort algorithm?

A

Bubble sort algorithm compares pairs of items on a list and swaps them into the correct order. The bubble sort algorithm will go though a list again and again until it makes no further changes to the list.

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

What are the advantage and disadvantage of a serial search?

A

Advantage of serial search algorithm items sorted in any order.

Disadvantage of serial search algorithm take a long time to search

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

define greedy algorithm?

A

Define Greedy algorithm?

Greedy algorithm looks for simple solutions to complicated problems with many steps.

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