Page 112 - C_GPT _V4 _class_5
P. 112
Similarly, you can use the other blocks to perform subtraction , multiplication
and division .
Relational Operators
Scratch has three operators that allow you to
compare the relationship between two values
or variables. It will compare two numbers and greater than
decide whether it is true or false. These are
greater than, less than and equals to.
Look at the code to use greater than block.
Similarly, you can use the other blocks to perform less than and equals to
.
Logical Operators
Using logical operators, you can combine two or more relational operators to produce a single
true/false result. These blocks allow you to further refine your comparison of values.
The result is true only if the two expressions are true
The result is true only if either of the expressions is true
The result is true only if the expression is false
Experiential Learning Activity
Write the answer as True or False. Consider the AND and OR as logical operators.
1. (I am a girl) AND (I am 9 years old)
2. (I am a girl) OR (I am 9 years old)
3. (I am a boy) AND (I am 9 years old)
4. (I am a boy) OR (I am 9 years old)
5. (I am in Grade V) AND (I live in India)
SENSING BLOCKS
Sensing blocks in Scratch sense the input from the keyboard or the mouse at the time of
execution of a script. Some of the sensing blocks and their functions are given below:
CodeGPT (Ver. 4.0)-V
110

