Back to marketplace

2.1 Algorithms

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What is Abstraction?

Back (Answer)

Process of removing unnecessary details and including only the relevant details

#2
Front (Question)

What is Decomposition?

Back (Answer)

Breaking a complex problem into smaller more manageable parts

#3
Front (Question)

What is Algorithmic Thinking?

Back (Answer)

Creating a step by step solution to a problem

#4
Front (Question)

What are the 2 types of searching algorithms?

Back (Answer)

Binary and Linear search

#5
Front (Question)

What are the advantages of a Linear Search?

Back (Answer)

Simple The list doesn’t need to be ordered Easy to program

#6
Front (Question)

What are the disadvantages of a Linear Search?

Back (Answer)

Not efficient Takes time with a lot of data

#7
Front (Question)

What are the advantages of a Binary Search?

Back (Answer)

More efficient than a linear search

#8
Front (Question)

What are the disadvantages of a Binary Search?

Back (Answer)

Only works on an ordered list

#9
Front (Question)

How does linear search work?

Back (Answer)

Checks each item in the list one by one until it finds what it is looking for

#10
Front (Question)

How does binary search work?

Back (Answer)

Finds the middle item in an ordered list By doing n+1/2 Compares the item to the middle item So it knows where to look in the first half of the second half Repeats until the item is found

#11
Front (Question)

What is a sorting algorithm?

Back (Answer)

Sorts items into an ordered list

#12
Front (Question)

How does a bubble sort work?

Back (Answer)

Checks the first 2 items in a list Swaps them if they are in the wrong order Moves to the next items and Repeats Moves through the entire list again Until ordered

#13
Front (Question)

How does a merge sort work?

Back (Answer)

Finds the middle item by (n+1)/2 Splits the list in half Repeats until items are paired Each time the sub-list are paired They are sorted into the correct order

#14
Front (Question)

How does an insertion sort work?

Back (Answer)

Looks at 2nd item in the list and compares it to the items that are in front of it Then inserts it into the right place correctly It is Quick for sorting small lists

#15
Front (Question)

What is the shape of the input box?

Back (Answer)

Parallegoram

#16
Front (Question)

What is the shape of a decision making?

Back (Answer)

Diamond

#17
Front (Question)

What is the shape of the process?

Back (Answer)

Rectangle

#18
Front (Question)

What does the lines show?

Back (Answer)

The control passing betweens the connected shapes

#19
Front (Question)

How do you output an statement?

Back (Answer)

Print(“hello”)

#20
Front (Question)

How do you do a for loop in OCR Reference language

Back (Answer)

For i = 0 to 7 … next i

#21
Front (Question)

What are the comparison operators?

Back (Answer)

== Equal to != Not equal to < Less than <= Less than or equal to > Greater than >= Greater than or equal to

#22
Front (Question)

What does 12 MOD 5 give?

Back (Answer)

2 - Because the MOD function always returns the remainder

#23
Front (Question)

What does 12 DIV 5 give?

Back (Answer)

2 - DIV functions returns how much a number goes into another number - excluding remainders

#24
Front (Question)

How do you do an IF - THEN - ELSE in OCR Exam Reference Language?

Back (Answer)

If x== 6 then ... elsif .. then .. else ... endif