NEW
Font size
WorksheetsOI - Midterm 2 - Agorithm + Scratch
Total questions: 71
Worksheet time: 2hrs 20mins
This is a set of steps used to complete a specific task.
Flowchart
Algorithm
Order
Routine
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What is this?
Algorithm
Interpreter
Flowchart
Compiler
What is this flowchart shape used for indicating?
Input/ Output
Process
Decision
Start/ Stop
What is this flowchart shape used for indicating?
Input/ Output
Process
Decision
Start/ Stop
What is this flowchart shape used for indicating?
Input/ Output
Process
Decision
Start/ Stop
What is this flowchart shape used for?
Input/ Output
Process
Decision
Start/ Stop
This symbol is used for operations like receiving or displaying processed data.
Terminal
Process
Input/Output
Decision
This symbol has the computation to show that something is being processed or performed
Terminal
Process
Input/Output
Decision
The symbol for Start and End.
Terminal
Process
Input/Output
Decision
Graphical representation of an algorithm.
Algorithm
Flowchart
What is the purpose of a flowchart?
To plan the program before it is made
Because it is easier
It is Important for computer
Nono
Which is NOT the correct way to draw a flowchart?
Which is the best illustration of a flowchart?
What is the Output if the user enters:
Yes
Leave umbrella at home
Take an umbrella
What is the Output if the temperature is:
19
Below Freezing
Above Freezing
........... is the algorithmic description for a computer using a programming language.
Computer program
Problem
Computer software
Another answer
Which statement below is correct?
The problem is the algorithmic description for a computer using a programming language.
Only one programming language is created for writing computer programs.
Each computer program is a description of tasks that the computer can perform step by step to solve a specific problem.
Nowadays, computers directly understand the language of humans.
In the following sentences, which one is WRONG:
An algorithm has a sequential structure when no step similar to any other step.
An algorithm has a sequential structure when the steps are performed in the correct sequence listed in the algorithm description.
Computer program is an algorithmic description for a computer using a programming language.
When the steps are performed in the correct sequence listed in the algorithm description, we have a sequence structure.
What is a sequential structure?
It is a structure determining the order in which data is stored.
It is a structure determining the order in which steps are performed.
It is a structure determining the next step to be executed.
It is a structure determining the number of times certain steps in the algorithm are repeated.
Which statement below is correct?
"If it rains, I won't go on an outing with my friends" contains a loop structure.
"If we have a four-day break on National Day, September 2nd, my family will travel to Da Nang; otherwise, we will have different plans" contains a loop structure.
"If I haven't finished the homework in Mathematics, I have to keep working on it until it's done" contains a branching structure.
"Calculate the area of the national flag, which is rectangular" contains a sequential structure.
"Calculate the sum of a and b" contains which structure?
Sequential structure
Incomplete branching structure
Complete branching structure
Loop structure
In the problem "Given N and M. Find their least common multiple," the output of the problem is:
N và M
The least common multiple
N and the least common multiple
N, M, and the least common multiple
The paragraph describing the task of washing vegetables states: 'Put the vegetables in a basin and fill it with water. Then, use your hands to toss the vegetables in the basin. Finally, scoop the vegetables into a basket and pour out all the water in the basin.' Which control structure does the passage represent?
Sequential structure.
Incomplete branching structure.
Loop structure.
Complete branching structure.
Problem: Calculate the area of a stadium in the form of a rectangle with two semicircles added on the two widths, given the length and width of the rectangle. The input of the problem is:
Width b
Length a
Diameter c
Length a, width b
For the problem 'Calculate the average score of three subjects: Math, Literature, English,' what is the output of the problem?
Total score of Math, Literature, English
Scores of Math, Literature, English
Average score of three subjects: Math, Literature, English
Average score of Math and Literature
Steps to make tuna salad:
1. Dice the tuna.
2. Pour mayonnaise into a bowl, add lemon juice, salt, and mix well.
3. Wash and drain lettuce, then chop it finely.
4. Slice tomatoes. Peel and thinly slice onions.
5. Put lettuce, onions, olives, and tuna in a large bowl, pour the dressing over, mix well, and decorate with a few tomato slices.
What is the input of the problem?
Steps of preparation
Various ingredients
Tuna
Tuna salad
Given the following steps:
1. Enter values a, b, c.
2. Average ← Sum : 3
3. Display the value of the average.
4. Sum ← a + b + c.
What is the correct algorithm description?
(1) – (2) – (4) – (3)
(1) – (4) – (2) – (3)
(1) – (3) – (4) – (2)
(1) – (2) – (3) – (4)
Given the following steps:
1. Clean the brush and the sink.
2. Soap it
3. Remove excess food
4. Rinse with clean water
What is the correct sequence to wash dishes?
(1) -> (3) -> (2) -> (4)
(1) -> (2) -> (3) -> (4)
(3) -> (2) -> (1) -> (4)
(2) -> (3) -> (1) -> (4)
Arrange the steps to correctly describe the algorithm for calculating the area of a circle when its circumference is known:
(1) Find the radius of the circle r = C : 2 : π (based on the formula C = r * 2π)
(2) Let C be the circumference, r be the radius of the circle
(3) Calculate the area of the circle, let A be the area of the circle, we have A = π .r2
(3) -> (1) -> (2)
(2) - > (1) -> (3)
(1) -> (2) -> (3)
(2) -> (3) -> (1)
During the process of displaying the branching structure, when the condition is met, it is:
End of branch
Correct branch
Wrong branch
All are wrong.
To express the branching structure, we use the following keyword pair:
"If ... otherwise"
"If ... then"
"If ... there"
"If ... again"
The fast branching structure always ends with the sign...
"On the contrary"
"End of branch"
"End"
"Otherwise"
The syntax of the full branching is:
"If <condition> : .... otherwise..... End of branch"
"If <condition> : .... End of branch"
"When <Condition> : .... otherwise. End of branch"
All three answers are wrong
In everyday life, the word "if" is used to refer to one:
Action
Condition
Algorithm
Result
To express the branching structure, it is necessary to recognize the components. Choose the answer that is not correct
What is the condition for branching
The next step to be taken if the condition is met is called the correct branch
Input, output
The step to be taken if the condition is not met is called the wrong branch
The work that does NOT operate according to the full branching structure is:
If it rains, I will stay home to read stories, otherwise I will go to play football.
If a number is divisible by 2, it is an even number, otherwise it is an odd number.
If it still rains tomorrow, the road is still flooded, I will be allowed to stay home.
If it doesn't rain at the weekend, the whole family will go for a picnic, otherwise the whole family will stay home to watch a movie.
Which of the following sentences is correct?
"If it rains, I will not go on a picnic with my friends" contains a sequential structure.
"If the family gets four days off on the occasion of the National Day on September 2, the family will travel to Da Nang, otherwise there will be other plans" contains a branching structure.
"If I still haven't finished my math homework, I have to do the homework until I'm done" contains a branching structure.
"If it doesn't rain, I'll go play football" contains a sequential structure.
In the following statements about the conditional expression, in the branching structure, which statement is correct, which statement is wrong?
Must be a comparison expression of equal values
Must be a comparison expression of greater than, less than values.
When checking, the result must be correct
A, B, C are wrong
"If it doesn't rain, I'll go play football" contains which structure?
Sequential structure
Incomplete branching structure
Complete branching structure
Loop structure
The following diagram belongs to which structure:
Incomplete branch structure
Sequential structure
Complete branch structure
Loop structure
The diagram below represents the block diagram of which structure?
Sequential structure
Incomplete branching structure
Complete branching structure
Loop
For the block diagram below: The problem from the above block diagram is:
Secondary school students start to be admitted to the Youth Union from 12 years old to 16 years old.
Secondary school students start to be admitted to the Youth Union when they turn 16.
Secondary school students start to be admitted to the Youth Union when they are 16 years old.
Secondary school students start to be admitted to the Youth Union when they are older than 16.
The block diagram represents which control structure?
Complete branching structure
Incomplete branching structure
Loop
Sequential Structure
You scored 8 points, according to you, what message should you receive?
You would not receive any message.
"Keep trying!"
"Congratulations!"
"Congratulations! Keep trying!"
Hoang is designing an algorithm for a character to move on a stage with the following rules:
If the character encounters an obstacle (such as a rock), the character will change direction before continuing to move forward.
If the character does not encounter an obstacle, the character will continue to move forward.
What type of control structure should Hoang use?
Sequential structure
Incomplete branching structure
Loop structure
Complete branching structure
Among three coins, one of which is a lighter fake coin.
Use a balance scale to find the counterfeit coin.
The steps of the algorithm are:
Left (scale tilted): Conclude that the coin on the lighter side is fake.
Take any two coins, and place them on the scale. If the scale balances:
Conclude that the remaining coin is fake.
The correct sequence of steps is:
(2) - (1) - (3)
(2) - (3) - (1)
(3) - (1) - (2)
(3) - (2) - (1)
For the steps:
1. Not hit the bullseye?
2. Wrong
3. Right
4. Hit the bullseye
5. Stop
Arrange the steps correctly:
1 - 3 - 5 - 2 -4
4 - 2 - 1 - 3 - 5
5 - 1 - 3 - 2- 4
1 - 3 - 2 - 4 - 5
For the algorithm:
Input:
bit c = on or off switch;
bit d = light or dark lamp.
Output: malfunction.
If (c # d): malfunction
If (d = 1): switch malfunction
Otherwise: Lamp switch malfunction
End of branch
End of branch
Which diagram below correctly depicts the given algorithm?
Flowchart #1
Flowchart #2
Flowchart #3
Flowchart #4
Which one is a complete branching structure in Scratch?
Which one is an incomplete branching structure in Scratch?
Which is the first block of a Scratch program?
What this flag button do?
Start
Control
Process
Stop
How many times did you repeat one action?
3
4
5
8
What is repetition?
.. is the repeating of an action.
.. is a one-time action.
.. is a cancelled action.
.. is a question.
Which action do NOT repeat?
How many times do you need to repeat for drawing a regular triangle?
3
4
5
6
How many degrees do you need to turn for drawing a square in scratch?
90
120
72
60
How many degrees do you need to turn for drawing regular triangle in scratch?
90
100
110
120
What is the result of this program?
Choose the program to draw this.
How many times did you repeat this action?
1
2
200
400
What is the result of this program?
What is the result of this program?
What is the result of this program?
