NEW
Font size
Worksheetsgrade 6 week 3
Total questions: 51
Worksheet time: 26mins
What is an algorithm?
Error in a program
Image of code
Step-by-step method to solve a problem
Type of programming error
Can one problem be solved in different ways using different algorithms?
No
Yes
Only in mathematics
Only in games
What do we call different methods to solve the same task?
Bugs
Function
Algorithm
Error
Which problem can have multiple solutions?
Sorting numbers
Typing a word
Printing a message
Declaring a variable
Why do we use different algorithms to solve the same problem?
For fun
To confuse the computer
Because some are faster or simpler
To make mistakes
Which of the following is an example of solving a problem in a different way?
Adding using a calculator or your fingers
Typing faster
Writing your name
Charging your phone
Which of the following best describes an algorithm?
A collection of images
A step-by-step process
Program errors
Shortcut keys
What is one benefit of comparing different algorithms?
Making your code longer
Seeing which one crashes first
Choosing the most efficient solution
Avoiding learning new code
What does it mean if an algorithm is more efficient?
Harder to understand
Uses fewer steps
Crashes faster
Takes more time
Which one shows different ways to sort numbers?
Bubble sort and selection sort
Input and output
Loop and string
Print and print
Can two students write different algorithms that correctly solve the same problem?
No
Yes
Only if they use the same variables
Only with the help of a teacher
Why might we prefer one algorithm over another?
Longer
Uses more variables
Easier to understand or runs faster
Looks complicated
Two algorithms yield correct results. What can we say about them?
Only one is valid
Both are wrong
Both are correct
They must be exactly the same
Is it okay if your friend writes an algorithm differently than you?
No
Only if you copy it
Yes, as long as it works
Only if they use Python
What does it mean to compare algorithms?
Finding out which has more errors
Seeing which gives incorrect output
Checking which works well
Running both at the same time
Which task can have different algorithms?
Finding the largest number
Typing your name
Turning on the computer
Writing 'Hello'
What are two different ways to find the largest number?
Comparing one by one or sorting all the numbers
Asking a friend or guessing
Input and output
Adding them
You want to sort numbers from smallest to largest. Which algorithm might you use?
Bubble sort or selection sort
Input and print
Add and subtract
Copy and paste
You can find the missing number in a list by:
Guessing
Looking one by one or using math
Printing it
Deleting it
If two students use different codes but get the same output, what does it indicate?
One of them is wrong
The code is broken
Both solutions work
Copying occurred
What is meant by 'debugging'?
Fixing problems in algorithms
Making code longer
Skipping instructions
Using bugs
Which problem has many possible solutions?
Sorting names
Typing
Turning off the fan
Saving a file
Which of the following is a sign of a good algorithm?
Confusing steps
Easy to follow and correct
Very long code
Not using variables
If one algorithm is shorter and gives the same result, what is it called?
Bug
Error
More efficient algorithm
Incorrect method
Which of the following is not a type of algorithm?
Bubble sort
Linear search
Input()
Binary search
Which of the following is not a type of algorithm?
Bubble sort
Linear search
Input()
Binary search
If Algorithm A uses 10 steps and B uses 5 steps, which one is likely better?
A
B
Neither
It depends on the length
Why might we choose a longer algorithm?
Because it looks cool
Because it is easier to understand
Because it is slower
Because it is messy
What can happen if the algorithm is incorrect?
Runs faster
Gives incorrect output
Prints your name
Always passes
Can different programming languages be used to solve the same problem?
No
Only Python
Yes
Only in C++
Which of these is NOT a reason to compare algorithms?
To find bugs
To choose the best one
To see who wrote it
To make improvements
Which task can have multiple algorithms?
Finding even numbers
Turning off the monitor
Opening a notebook
Typing an email
Why do we care about the number of steps in an algorithm?
Shorter is often faster
We like long code
Steps are not important
To make it difficult
What does 'step by step' mean in an algorithm?
Random
Mixed
Ordered instructions
Printed output
Which algorithm is faster for small data sets:
Bubble sort
Selection sort
None
All the same
If your algorithm works but is too slow, what can you do?
Stop coding
Just leave it
Try a different algorithm
Rename variables
If two algorithms are functional, how do we know which one is better?
Flip a coin
Compare performance
Choose randomly
Use both together
Can algorithms be tested with sample input?
No
Yes
Only in Java
Not necessary
What do we learn by writing different algorithms?
Code is boring
There is only one answer
Problem solving has many paths
Coding is copying
Why might a student's algorithm be easier to understand than another's?
They use longer names
They follow clean steps
They type quickly
They print a lot
What does 'optimizing an algorithm' mean?
Making it look better
Making it faster and better
Adding more lines
Changing the language
Two students wrote code to check for even numbers. One used % 2, while the other used a loop. Is this okay?
No, only one is correct
Yes, both can be valid
Loop is wrong
% cannot be used
Which one shows the same problem with a different approach?
Adding numbers manually or using sum()
Printing or input
Opening or closing
Copying and pasting
Can different algorithms produce the same result at different speeds?
No
Yes
Only in games
If copied
Can visuals like flowcharts represent different solutions to the same problem?
Yes
No
Only text
Only code
If your teacher assigns a task and your friend completes it in a different way, what should you do?
Tell them they are wrong
Compare and learn
Report
Ignore
Why might someone choose a simpler algorithm over a faster one?
For readability
To make mistakes
To confuse
To fail
Which task has only one solution?
Turning on a switch
Finding the maximum of 3 numbers
Multiplying numbers
None of the above
How do we know if an algorithm works correctly?
Ask a friend
Test with input
Guess
Change randomly
What is a common way to test several algorithms?
Print all of them
Use the same input
Change the language
Run without saving
Apa yang bisa kita pelajari dengan membandingkan beberapa algoritma?
Tidak ada
Jalur berbeda ke solusi yang sama
Semua kode salah
Lebih banyak bug muncul
