Back to marketplace

Topic 6 Algorithms (2.1)

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 are 3 key techniques for computational thinking?

Back (Answer)

• decomposition • abstracton • algorithmic thinking

#2
Front (Question)

What is decomposition?

Back (Answer)

breaking a complex problem down into smaller problems and solving each one individually

#3
Front (Question)

What is abstraction?

Back (Answer)

picking out the important bits of information from the problem, ignoring the specific details that dont matter

#4
Front (Question)

What is alghorithmic thinking?

Back (Answer)

a logical way of getting from the problem to the solution

#5
Front (Question)

What is an algorithm?

Back (Answer)

A set of instructions for solving a problem

#6
Front (Question)

What does START do in pseudocode?

Back (Answer)

Marks the beginning of the pseudocode. Example: START

#7
Front (Question)

What does END do in pseudocode?

Back (Answer)

Marks the end of the pseudocode. Example: END

#8
Front (Question)

What does INPUT do in pseudocode?

Back (Answer)

Requests data from the user or another source (like a file) Example: INPUT age

#9
Front (Question)

What does OUTPUT do in pseudocode?

Back (Answer)

Displays information to the user. Example: OUTPUT "Hello, World!"

#10
Front (Question)

What does IF…THEN…ELSE do in pseudocode?

Back (Answer)

A conditional structure used to make decisions. Example: ~~~ IF number > 10 THEN OUTPUT “Greater than 10” ELSE OUTPUT “10 or less” END IF ~~~

#11
Front (Question)

What does WHILE…DO do in pseudocode?

Back (Answer)

A loop that repeats while a condition is true. Example: ~~~ WHILE number > 0 DO OUTPUT “Positive number” number = number - 1 END WHILE ~~~

#12
Front (Question)

What does FOR…TO do in pseudocode?

Back (Answer)

A loop that runs a specific number of times. Example: FOR i = 1 TO 10 DO OUTPUT i END FOR

#13
Front (Question)

What does REPEAT…UNTIL do in pseudocode?

Back (Answer)

Similar to WHILE, but it checks the condition after the loop, meaning the loop runs at least once. Example: REPEAT OUTPUT "Enter a number" INPUT number UNTIL number > 0

#14
Front (Question)

What does END IF do in pseudocode?

Back (Answer)

Marks the end of an IF statement Example: IF number > 10 THEN OUTPUT "Greater than 10" ELSE OUTPUT "10 or less" END IF

#15
Front (Question)

What does RETURN do in pseudocode?

Back (Answer)

Returns a value from a function or procedure. Example: RETURN sum

#16
Front (Question)

How is a start/stop represented in a flow chart?

Back (Answer)

A rounded rectangle and the beginning and the end of the algorithm

#17
Front (Question)

How is a input/output represented in a flow chart?

Back (Answer)

Anything that is put into or displayed in the algorithm is shown as a parallelogram

#18
Front (Question)

How is a process represented in a flow chart?

Back (Answer)

General instructions, processes and calculations are shown as normal rectangular boxes

#19
Front (Question)

How is a decision represented in a flow chart?

Back (Answer)

Decisions, often a yes or no question is shown as a diamond box

#20
Front (Question)

How is a subroutine represented in a flow chart?

Back (Answer)

They are like sub programs- referencing other flow diagrams- shown as a rectangle with a verticle line on both sides

#21
Front (Question)

What connects each shape in a flowchart and show the direction to go?

Back (Answer)

Arrows

#22
Front (Question)

What does a binary search do?

Back (Answer)

looks for items in an ordered list

#23
Front (Question)

Whats the steps of binary search? divide and conquer

Back (Answer)

• find the middle item (n+1)/2 and round down if needed • compare it with the target: • if it’s the target, you’re done • if the target is smaller, repeat with the left half • if the target is larger, repeat with the right half • repeat steps until the item is found

#24
Front (Question)

What does a linear search do?

Back (Answer)

look for items in an unordered list