wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

OI - Midterm 2 - Agorithm + Scratch

Total questions: 71

Worksheet time: 2hrs 20mins

Name
Class
Date
1.

This is a set of steps used to complete a specific task.

a)

Flowchart

b)

Algorithm

c)

Order

d)

Routine

2.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

3.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

4.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

5.

What does this symbol represent?

a)

Represents a decision-making point

b)

Represents arithmetic operations and data manipulations

c)

Represents the start and the end of a flowchart

d)

Represents the flow of the algorithm

6.

What is this?

a)

Algorithm

b)

Interpreter

c)

Flowchart

d)

Compiler

7.

What is this flowchart shape used for indicating?

a)

Input/ Output

b)

Process

c)

Decision

d)

Start/ Stop

8.

What is this flowchart shape used for indicating?

a)

Input/ Output

b)

Process

c)

Decision

d)

Start/ Stop

9.

What is this flowchart shape used for indicating?

a)

Input/ Output

b)

Process

c)

Decision

d)

Start/ Stop

10.

What is this flowchart shape used for?

a)

Input/ Output

b)

Process

c)

Decision

d)

Start/ Stop

11.

This symbol is used for operations like receiving or displaying processed data.

a)

Terminal

b)

Process

c)

Input/Output

d)

Decision

12.

This symbol has the computation to show that something is being processed or performed

a)

Terminal

b)

Process

c)

Input/Output

d)

Decision

13.

The symbol for Start and End.

a)

Terminal

b)

Process

c)

Input/Output

d)

Decision

14.

Graphical representation of an algorithm.

a)

Algorithm

b)

Flowchart

15.

What is the purpose of a flowchart?

a)

To plan the program before it is made

b)

Because it is easier

c)

It is Important for computer

d)

Nono

16.

Which is NOT the correct way to draw a flowchart?

a)
b)
c)
17.

Which is the best illustration of a flowchart?

a)
b)
c)
d)
18.
What's missing from this part of a flowchart?
a)
An Arrow
b)
A Line
c)
A Square
d)
A Diamond
19.
What's missing ?
a)
On/Off
b)
Pink/Blue
c)
Hello/Goodbye
d)
Yes/No
20.
What problem does this algorithm help us solve?
a)
This algorithm helps to find the average of three numbers.
b)
This algorithm helps to find the sum of three numbers.
21.

What is the Output if the user enters:

Yes

a)

Leave umbrella at home

b)

Take an umbrella

22.

What is the Output if the temperature is:

19

a)

Below Freezing

b)

Above Freezing

23.

........... is the algorithmic description for a computer using a programming language.

a)

Computer program

b)

Problem

c)

Computer software

d)

Another answer

24.

Which statement below is correct?

a)

The problem is the algorithmic description for a computer using a programming language.

b)

Only one programming language is created for writing computer programs.

c)

Each computer program is a description of tasks that the computer can perform step by step to solve a specific problem.

d)

Nowadays, computers directly understand the language of humans.

25.


In the following sentences, which one is WRONG:

a)

An algorithm has a sequential structure when no step similar to any other step.

b)

An algorithm has a sequential structure when the steps are performed in the correct sequence listed in the algorithm description.

c)

Computer program is an algorithmic description for a computer using a programming language.

d)

When the steps are performed in the correct sequence listed in the algorithm description, we have a sequence structure.

26.

What is a sequential structure?

a)

It is a structure determining the order in which data is stored.

b)

It is a structure determining the order in which steps are performed.

c)

It is a structure determining the next step to be executed.

d)

It is a structure determining the number of times certain steps in the algorithm are repeated.

27.

Which statement below is correct?

a)

"If it rains, I won't go on an outing with my friends" contains a loop structure.

b)

"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.

c)

"If I haven't finished the homework in Mathematics, I have to keep working on it until it's done" contains a branching structure.

d)

"Calculate the area of the national flag, which is rectangular" contains a sequential structure.

28.

"Calculate the sum of a and b" contains which structure?

a)

Sequential structure

b)

Incomplete branching structure

c)

Complete branching structure

d)

Loop structure

29.

In the problem "Given N and M. Find their least common multiple," the output of the problem is:

a)

N và M

b)

The least common multiple

c)

N and the least common multiple

d)

N, M, and the least common multiple

30.

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?

a)

Sequential structure.

b)

Incomplete branching structure.

c)

Loop structure.

d)

Complete branching structure.

31.

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:

a)

Width b

b)

Length a

c)

Diameter c

d)

Length a, width b

32.

For the problem 'Calculate the average score of three subjects: Math, Literature, English,' what is the output of the problem?

a)

Total score of Math, Literature, English

b)

Scores of Math, Literature, English

c)

Average score of three subjects: Math, Literature, English

d)

Average score of Math and Literature

33.

Steps to make tuna salad:

  1. 1. Dice the tuna.

  2. 2. Pour mayonnaise into a bowl, add lemon juice, salt, and mix well.

  3. 3. Wash and drain lettuce, then chop it finely.

  4. 4. Slice tomatoes. Peel and thinly slice onions.

  5. 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?

a)

Steps of preparation

b)

Various ingredients

c)

Tuna

d)

Tuna salad

34.

Given the following steps:

  1. 1. Enter values a, b, c.

  2. 2. Average ← Sum : 3

  3. 3. Display the value of the average.

  4. 4. Sum ← a + b + c.

What is the correct algorithm description?

a)

(1) – (2) – (4) – (3)

b)

(1) – (4) – (2) – (3)

c)
  • (1) – (3) – (4) – (2)

d)
  • (1) – (2) – (3) – (4)

35.

Given the following steps:

  1. 1. Clean the brush and the sink.

  2. 2. Soap it

  3. 3. Remove excess food

  4. 4. Rinse with clean water

What is the correct sequence to wash dishes?

a)
  • (1) -> (3) -> (2) -> (4)

b)
  • (1) -> (2) -> (3) -> (4)

c)
(3) -> (2) -> (1) -> (4)
d)

(2) -> (3) -> (1) -> (4)

36.

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

a)
  • (3) -> (1) -> (2)

b)
(2) - > (1) -> (3)
c)
  • (1) -> (2) -> (3)

d)

(2) -> (3) -> (1)

37.

During the process of displaying the branching structure, when the condition is met, it is:

a)

End of branch

b)

Correct branch

c)

Wrong branch

d)

All are wrong.

38.

To express the branching structure, we use the following keyword pair:

a)

"If ... otherwise"

b)

"If ... then"

c)

"If ... there"

d)

"If ... again"

39.

The fast branching structure always ends with the sign...

a)

"On the contrary"

b)

"End of branch"

c)

"End"

d)

"Otherwise"

40.

The syntax of the full branching is:

a)

"If <condition> : .... otherwise..... End of branch"

b)

"If <condition> : .... End of branch"

c)

"When <Condition> : .... otherwise. End of branch"

d)

All three answers are wrong

41.

In everyday life, the word "if" is used to refer to one:

a)

Action

b)

Condition

c)

Algorithm

d)

Result

42.

To express the branching structure, it is necessary to recognize the components. Choose the answer that is not correct

a)

What is the condition for branching

b)

The next step to be taken if the condition is met is called the correct branch

c)

Input, output

d)

The step to be taken if the condition is not met is called the wrong branch

43.

The work that does NOT operate according to the full branching structure is:

a)

If it rains, I will stay home to read stories, otherwise I will go to play football.

b)

If a number is divisible by 2, it is an even number, otherwise it is an odd number.

c)

If it still rains tomorrow, the road is still flooded, I will be allowed to stay home.

d)

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.

44.

Which of the following sentences is correct?

a)

"If it rains, I will not go on a picnic with my friends" contains a sequential structure.

b)

"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.

c)

"If I still haven't finished my math homework, I have to do the homework until I'm done" contains a branching structure.

d)

"If it doesn't rain, I'll go play football" contains a sequential structure.

45.

In the following statements about the conditional expression, in the branching structure, which statement is correct, which statement is wrong?

a)

Must be a comparison expression of equal values

b)

Must be a comparison expression of greater than, less than values.

c)

When checking, the result must be correct

d)

A, B, C are wrong

46.

"If it doesn't rain, I'll go play football" contains which structure?

a)

Sequential structure

b)

Incomplete branching structure

c)

Complete branching structure

d)

Loop structure

47.

The following diagram belongs to which structure:

a)

Incomplete branch structure

b)

Sequential structure

c)

Complete branch structure

d)

Loop structure

48.

The diagram below represents the block diagram of which structure?

a)

Sequential structure

b)

Incomplete branching structure

c)

Complete branching structure

d)

Loop

49.

For the block diagram below: The problem from the above block diagram is:

a)

Secondary school students start to be admitted to the Youth Union from 12 years old to 16 years old.

b)

Secondary school students start to be admitted to the Youth Union when they turn 16.

c)

Secondary school students start to be admitted to the Youth Union when they are 16 years old.

d)

Secondary school students start to be admitted to the Youth Union when they are older than 16.

50.

The block diagram represents which control structure?

a)

Complete branching structure

b)

Incomplete branching structure

c)

Loop

d)

Sequential Structure

51.

You scored 8 points, according to you, what message should you receive?

a)

You would not receive any message.

b)

"Keep trying!"

c)

"Congratulations!"

d)

"Congratulations! Keep trying!"

52.

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?

a)

Sequential structure

b)

Incomplete branching structure

c)

Loop structure

d)

Complete branching structure

53.

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:

  1. Left (scale tilted): Conclude that the coin on the lighter side is fake.

  2. Take any two coins, and place them on the scale. If the scale balances:

  3. Conclude that the remaining coin is fake.

The correct sequence of steps is:

a)

(2) - (1) - (3)

b)

(2) - (3) - (1)

c)

(3) - (1) - (2)

d)

(3) - (2) - (1)

54.

For the steps:

  1. 1. Not hit the bullseye?

  2. 2. Wrong

  3. 3. Right

  4. 4. Hit the bullseye

  5. 5. Stop

Arrange the steps correctly:

a)

1 - 3 - 5 - 2 -4

b)

4 - 2 - 1 - 3 - 5

c)

5 - 1 - 3 - 2- 4

d)

1 - 3 - 2  - 4 - 5

55.

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?

a)

Flowchart #1

b)

Flowchart #2

c)

Flowchart #3

d)

Flowchart #4

56.

Which one is a complete branching structure in Scratch?

a)

b)

c)

d)

57.

Which one is an incomplete branching structure in Scratch?

a)

b)

c)

d)

58.

Which is the first block of a Scratch program?

a)
b)
c)
d)
59.

What this flag button do?

a)

Start

b)

Control

c)

Process

d)

Stop

60.

How many times did you repeat one action?

a)

3

b)

4

c)

5

d)

8

61.

What is repetition?

a)

.. is the repeating of an action.

b)

.. is a one-time action.

c)

.. is a cancelled action.

d)

.. is a question.

62.

Which action do NOT repeat?

a)
b)
c)
d)
63.

How many times do you need to repeat for drawing a regular triangle?

a)

3

b)

4

c)

5

d)

6

64.

How many degrees do you need to turn for drawing a square in scratch?

a)

90

b)

120

c)

72

d)

60

65.

How many degrees do you need to turn for drawing regular triangle in scratch?

a)

90

b)

100

c)

110

d)

120

66.

What is the result of this program?

a)
b)
c)
d)
67.

Choose the program to draw this.

a)
b)
c)
68.

How many times did you repeat this action?

a)

1

b)

2

c)

200

d)

400

69.

What is the result of this program?

a)
b)
c)
d)
e)
70.

What is the result of this program?

a)
b)
c)
d)
e)
71.

What is the result of this program?

a)
b)
c)
d)
e)