• Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Have any question?

(+91) 98222 16647
info@simplycoding.in
RegisterLogin
Simply Coding
  • Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Uncategorized

Scratch 3.0 – Writing a Script

  • Categories Uncategorized

Here we are going to cover how to write a Script in scratch. You can watch our video on Scratch 3.0 – Writing a Script – click here.

Q. What are different types of command? Explain use of them.
Ans. Different types of command

  1. The top most is the Motion block which has commands to moves sprites, changes angles and changes X and Y values.
  2. Looks commands which help you to controls the visuals of the sprite, change the background,
  3. Sound which helps you to add sound effects.
  4. events, which has event handlers placed on the top of each group of blocks.
  5. the control commands which have conditional if-else statement, “forever”, “repeat”, and “stop”, etc.
  6. Then there are the Sensing commands. Which help you to interact with other sprites or surroundings.
  7. Operators block are used to script math equations and string handling.
  8. Variables are used to hold values and strings. There are eight Stack blocks, four Reporter blocks and one Boolean block in this category.
  9. you can add even more commands by using add extensions. You can see more commands for Music, Pen, Video and if you select any of them they get added to your pallet.

Q. What are the different types of blocks in scratch? And explain.
Ans. Different types of blocks: Blocks also have different shapes. Based upon shape there are Hat type, Stack type, Reporter or Cap blocks

  1. Hat type blocks have rounded top like a hat. These are placed on top of the scripts and typically associated with some event which starts our script. They are found in the Events or Control Category.
  2. Then there are Stack type blocks which has dents or bumps to form stack of blocks.
  3. Then there are reporter blocks which holds values and fits inside other blocks. They can have numeric or Boolean values which help in taking some decision by the main block, like which key is pressed or touching mouse pointer etc.
  4. Last is the cap block, these come always last in the script and are used to stop one or all scripts.

Q. Name the tab and category of blocks that should be selected to do the following:
          1 . Ask the user’s name
          2 .  Add a variable to store points of the game
Ans.
          1 . Code tab/sensing category of blocks
          2 . Code tab/ data category of block

Q. Name the tab and category of blocks that should be selected to do the following: 
         1 . to move the sprite
        2 . show some text on stage
Ans.
         1 . Code tab/Motion blocks
         2 . Code tab/Looks blocks

Q. Name the tab and category of blocks that should be selected to do the following:
        1 . change the costume of the sprite
        2 . play drum beats
Ans.
        1 . Code tab/Looks blocks
        2 . Code tab/Sound blocks

Q. Name the tab and category of blocks that should be selected to do the following:        
           1 . draw circle on stage
           2 . play music instruments
Ans.
           1 . Code tab/Pen blocks
           2 . Code tab/Sound blocks

Q. Name the tab and category of blocks that should be selected to do the following:
         1 . show game score
         2 . change the backdrop
Ans.
      1 . Code tab/Variable blocks
      2 . Code tab/Look blocks

Q. Name the tab and category of blocks that should be selected to do the following:  
              1 . Change background when space bar is press
             2 . Sprite need to repeat same thing
Ans.
       1 . Code tab/Event blocks
      2 . Code tab/Control blocks

  • Share:
author avatar
Simply Coding

Previous post

Java Data Types
July 20, 2021

Next post

XML Elements, Tags and Attributes
July 20, 2021

You may also like

XML Prolog
XML Prolog
20 July, 2021
XML Elements, Tags and Attributes
XML Elements, Tags and Attributes
20 July, 2021
Java Data Types
Java Data Types
20 July, 2021

Leave A Reply Cancel reply

You must be logged in to post a comment.

Categories

Recent Posts

  • ISC Class 12 Computer Science previous year paper (2020)
  • ISC Class 12 Computer Science previous year paper (2017)
  • CBSE Class 12 Computer Science Marking Scheme (2020-21)
  • ICSE Class 10 COMPUTER APPLICATIONS previous year paper (2017)
  • ICSE Class 10 COMPUTER APPLICATIONS previous year paper (2016)
Simply Coding Computer Courses for School                Privacy Policy     Terms of Use     Contact Us

© 2021 Simply Coding

Login with your site account

Lost your password?

Not a member yet? Register now

Register a new account

Are you a member? Login now