You are on page 1of 6

ICT

UNIT 3- COMPUTATIONAL THINKING NOTES

1. ______________ is set of instructions to solve a problem.


Ans: Algorithm
2. ___________ is used to store a value.
Variable
3. Ready-made variable in Scratch is called __________.
‘answer’
4. Which operator is used to join the below sentence with a variable?
The sum of 10 numbers is Sum(variable name)
Ans: join operator.
5. Which block lets to get the user input?
Ans: ask block.
6. What will be the output of the below code?

a. It prints your name.


b. It prints ‘Welcome ‘with the name entered.
c. It prints ‘Welcome’ with the name entered ten times.
Ans: c
7. Which type of loop is given below?

a. Counter loop
b. Conditional loop

1
Ans: Counter loop
8. A conditional loop is controlled by a __________
Ans: Logical test
9. Identify the conditional loop available in Scratch.
a.

b.

c.

d.

Ans: d

10. What is the output of the below program?

2
a. It adds 10 and 0.
b. It asks the user to enter 10 numbers.
c. It prints the sum of 10 numbers.
Ans: c

11. ____________ loop is used to execute the commands without a limit and come to a stop
only when the user stops the program.
Ans: Forever

12. Read the below algorithm and choose the corresponding program code for the given
algorithm.

1. Ask the user to enter the name.


2. Get the user’s answer and store it in the variable name
3. Ask the user to enter the age.
4. Get the user’s answer and store it the variable age.
5. Ask the user’s class.
6. Get the user’s answer and store it the variable class.
7. Print the user details as below:
Welcome name.
You are age.
You are studying in class.

a.

3
b.

c.

Ans: b

13. Choose the correct program for given algorithm:


Set total to 0
Loop until yes is entered
Input a value
Add answer to total
Output total
4
a.

b.

Ans: a

5
14. Find the error for the below program code.

Ans: The order of the program is not in sequence.

The program asks the user to enter the name after the output is displayed along with the answer
block.

15. Differentiate reuse and repurpose of a program.


Ans: Reuse means using the same program for a new task.
Repurpose means making some changes to a program so that it does a new task.

16. What are the advantages of reuse and repurpose?


Ans:
• Save time and work.
• Less risk of making errors.
• Teamwork.

17. Match each line of algorithm to the code blocks given below:

The aim of the program below is to output your year of birth when the current age is entered.

Input age
Loop until answer>100
Subtract answer from 2024 and store in year
Output year

You might also like