Page 1 :
CLASS VI COMP, , CH.9 Advanced Programming in Scratch, , CH.9 Advanced Programming in Scratch, Q.1 Tick the correct answer, a. (ii) Sensing, b. (iii) User interaction, c. (i) colour, d. (iii) only one value, e. (ii)Color picker, Q.2.Fill in the blanks., a. control, b. edge, c. My Variable, d. sensing, e. orange, Q.3 What does each of the following blacks do ?, a. It will update the value of a variable by one., b. It will check if space key has been pressed., c. It will detect if the sprite is clicked on using a mouse., d. It will detect a collision when a certain part of a sprite comes into contact with, a specific colour on the stage i.e. maroon here, Q.4 Give an output for the following blocks ., a. If the sprite touches the edge of the screen, then change value of MyVariable by -1., b. if down arrow key is pressed, then turn the sprite by 90 degree and move 10 steps, ahead., c. If mouse down key is pressed and also sprite collides with purple colour then, block, changes its sprite’s costume to the next one in the costumes pane. It will continue till, the condition is true., 1, By- KOMAL AMBADKAR
Page 2 :
CLASS VI COMP, , CH.9 Advanced Programming in Scratch, , d. when the sprite is clicked, it will be visible, the block changes the specified color on, its sprite by the specified amount. After 2 seconds, if sprite touches pink color then stop, all the blocks., e. when backdrop changes, ask user to enter name, if answer is dog, print dog for 2, seconds. Continue till the condition is true, Q.5 True or False., a. T, b. F, c. T, d. T, e. F, f. F, Q.6Answer the following questions ., a. Whenever we need to code about two sprites colliding with each other, we can, use any of the following blocks., This block is used to code what will happen when the sprite touches any object or, another sprite of a particular colour. The script under this block will run if the sprite, touches the desired colour., , Using this block, one can set up a code to detect a collision when a certain part of a, sprite comes into contact with a specific colour on the stage. This block is used to have, a sprite detect and respond to the contact with another sprite when one colour touches, another colour., , 2, By- KOMAL AMBADKAR
Page 3 :
CLASS VI COMP, , CH.9 Advanced Programming in Scratch, , b. A Variable block stores changeable values. At a time, it can hold only one value., The following blocks are available under the Variables block:, This block is used to give a value to the variable. The value could, be a number or string., This block is used to update the value of a variable by the, specified value., This block displays the variable and its value in the stage area., c. Blocks that are used for user interaction are called as sensing blocks. E.g.,, This block is used to code what will happen when the sprite touches, any object or another sprite of a particular colour. The script under this block will run if, the sprite touches the desired colour, Using this block, one can set up a code to detect a collision when a, certain part of a sprite comes into contact with a specific colour on the stage. This block, is used to have a sprite detect and respond to the contact with another sprite when one, colour touches another colour., block can be used to detect when the user presses a specific key on the, keyboard., gives three drop-down options to choose from touching one the, following: mousepointer for user interaction, the edge of the screen or another sprite., d. To create a quiz game we need to use Sensing, Event, Control and Variables blocks., e. The following blocks are used to detect if a sprite is clicked:, , 3, By- KOMAL AMBADKAR