Page 69 - 2501_KVS_C-5
P. 69
6.4.4.2 “join…” block
This block is a “reporter” block and used to join two strings or messages.
6.4.4.3 “letter … of ….” block
This block is a “reporter” block and used to extract the letter from message given
in right side starting from the position mentioned in the block by us.
6.4.4.4 “length of …” block
This block is a “reporter” block and used to find the length of string or message given.
6.4.4.5 “… contains …?” block
This block is a “boolean” block and used to check whether a letter written on the
right-side is contained or present in a message or string given on the left-side.
6.4.4.6 “mod” block
This block is a “reporter” block and used to find the remainder of two numbers by
dividing left-side value with right-side value.
6.4.4.7 “round” block
This block is a “reporter” block and used to calculate the “round off” value of the
number given in the specified space.
6.4.4.8 “abs of …” block
This block is a “reporter” block and used to calculate the absolute value of a number
given in the specified space, which gives the positive value of a specified number.
Let’s understand some concepts by activity given below:
Activity 6.6
Insert the sprite “cat” in scratch and calculate the mod of any two numbers. If
the result is equal to zero then the sprite “cat” plays sound otherwise change
the color of the sprite “cat”.
Answer
Step 1: Open the scratch and the sprite “cat” is already present there.
Step 2: Drag and drop the “when flag clicked” block from “Events” block and then
do the coding as shown in Fig. (6.9)
Scratch 67

