Chapter 3- Block Programming

 1. Write the full forms of the following abbreviations

a. MIT – Massachusetts Institute of Technology

b. LED – Light Emitting Diode

c. USB – Universal Serial Bus

d. IoT – Internet of Things

e. STEM – Science, Technology, Engineering, and Mathematics

f. UNO – United Nations Organization

g. EEPROM – Electrically Erasable Programmable Read-Only Memory

h. IDE – Integrated Development Environment (or Integrated Drive Electronics, depending on context)

 

2.Multiple Choice questions

a. Scratch was developed by MIT's Media Lab

i.Microsoft

ii. Apple

iii. Google

iv. MIT's Media Lab

 

b. The rectangular area which is present on the right side of the interface and acts as a background for any project is...

i.stage

ii. block palette

iii. sprite header

iv, variable

 

c. Which button is used to run all scripts of the project? c.

i. red button

ii. black button

iii. green flag button

iv. blue flag button

 

d. Which button is used to stop the script.

i. green flag button

ii. white flag button

iii. yellow flag button

iv. red button

 

e. Which block is used to control the movement of sprites?

i. Looks block

ii.Control block

iii. Motion block

iv. Sensing block

 

f. Which block allows the user to control how the characters appear on the stage?

i. Looks block

ii. Variable block

iii. Pen block

iv. Sensing block

 

g. The background image in the stage area is called

i. background

ii. wallpaper

iii. backdrop

iv design

 

h. "ask What's your name? and wait" is an example of.... block

i. sensing

ii. control

iii. operator

iv. looks

 

i. Which is the default sprite of Scratch?

i. Dog

ii. Cat

iii. Mouse

iv. Bird

 

j. Which block is used to make a sprite say something in Scratch?

i.Show

ii. Speak

iii. Tell

iv. Say

 

k. How do you delete a block from a script in Scratch?

i. Drag it to the trash bin

ii. Right-click and select "Delete"

iii.Press the Delete key on the keyboard

iv. All of the above

 

l. What does the "if" block in Scratch do?

i.Repeats a set of actions forever

ii. Allows sprites to communicate with each other

iii Checks a condition and performs an action based on the result

iv. Sets the background image of the project

 

m. What is the purpose of a "variable" in Scratch?

i.  To display messages on the screen

ii. To change the appearance of a sprite

iii. To store and manipulate data in a project

iv. To repeat a set of actions indefinitely

 

n. What is the event that occurs when the green flag is clicked in Scratch?

i. Start

ii. Go

iii. Begin

iv. End

 

o. What are devices like Micro:bit and Arduino used for?

i. Physical computing

ii. combining programming with physical devices

iii. creating interactive projects

iv. All of the above

 

p. Which of the following is an open-source programming tool which wa developed by arduino.cc?

i. Scratch

ii. Arduino IDE

iii. Python

iv. Arduino Pdf

 

3. Write the technical terms for the following phrases.

i. The background area for any project on Scratch. Stage

ii. The platform where the scripts or blocks are assembled. Scripts area

iii. The blocks that are used to create interactive programs that respond to user input or other events. Event blocks

iv. A graphic object that can be programmed to move and interact in scratch. Sprite

V. The name given to the memory location which is used to store value. Variable

vi. A small, programmable computer embedded on a single integrated circuit. Microcontroller

vii. The port used to load a program that is written in Arduino IDE onto the Ardui board. USB port

 

.

3. Short Answer Questions

a. What is block programming? Write its any two advantages.

Block programming is a type of programming where instructions are given by connecting visual blocks instead of writing text code.

Advantages:

1. Easy to learn for beginners.

2. Reduces syntax errors.

 

b. What is scratch?

Scratch is a block-based visual programming language developed by MIT’s Media Lab for creating interactive stories, games, and animations.

 

c. What is sprite? What is the default sprite of scratch?

A sprite is a graphic object in Scratch that can be programmed to perform actions.

The default sprite is a Cat.

 

d. List any four script block of scratch.

. Four script blocks in Scratch:

 Motion block

 Looks block

 Sound block

 Control block

 

e. Write the function of Green flag button and Red button in scratch.

Green flag button: Starts all scripts in the project.

 Red button: Stops the running scripts.

 

f. Write any four block that are available in motion block.

Four blocks available in Motion block:

1. Move 10 steps

2. Turn clockwise 15 degrees

3. Go to x: y:

4. Glide to x: y:

 

g-Write the use of Event block in scratch.

Event blocks are used to trigger scripts to run when specific events occur, like clicking the green flag or pressing a key.

 

h. What is a micro: bit? Give any two applications of micro: bit.

A micro: bit is a small programmable microcontroller board designed for learning coding and electronics.

Applications:

1. Making a digital thermometer.

2. Creating step counters.

 

i. What is Arduino IDE?

Arduino IDE is an open-source software used to write, compile, and upload programs to Arduino boards.

 

4. Long Answer Question:

a. Write any four advantages of block programming

Four advantages of block programming

 

1. Beginner-friendly – Easy to learn without memorizing syntax.

2. Error reduction – Prevents syntax errors as blocks fit only in correct places.

3. Visual understanding – Provides a clear, visual representation of the program flow.

4. Faster development – Programs can be created quickly by dragging and dropping blocks.

 

b. Explain any three features of scratch.

Three features of Scratch

 

1. Visual programming – Programs are built by connecting code blocks instead of typing code.

2. Interactive media creation – Supports making animations, games, and interactive stories.

3. Cross-platform use – Runs on web browsers and different operating systems without installation.

 

c. Differentiate between block programming text-based programming?

Feature

Block Programming

Text-Based Programming

Interface

Drag-and-drop visual blocks

Typed code using a keyboard

Ease of Use

Beginner-friendly, no syntax to learn

Requires learning syntax and structure

Error Handling

Minimal errors (no typos or syntax errors)

Prone to syntax and logical errors

Speed of Development

Faster for simple projects

Better for complex or large-scale projects

Flexibility

Limited customization

Highly flexible and powerful

Best For

Kids, beginners, education

Professionals, complex applications

 

d.What is the use of Looks block in scratch? List any four blocks in Looks block.

The Looks block is used to change the appearance of sprites and display messages on the stage.

Four blocks in Looks block:

1. say \[Hello!] for 2 seconds

2. change costume to \[costume name]

3. show

4. hide

 

 

e. List any four blocks of Control block and explain any two of them.

Four blocks of Control block in Scratch:

 

1. wait (1) seconds

2. repeat (10)

3. forever

4. if <> then

 

Explanation of two:

 

 wait (1) seconds – Pauses the script for a specific amount of time.

 forever – Repeats the contained set of instructions endlessly.

 

f. Explain any four components of micro bit.

Four components of Micro: bit

 

1. LED Display – Shows text, numbers, and patterns.

2. Buttons (A & B) – Used for input controls.

3. Accelerometer – Detects movement and orientation.

4. Pins/Connectors – Used to connect external devices and sensors.

 

g.Explain any three application area of Arduino Uno.

Three application areas of Arduino Uno

 

1. Home automation – Controlling lights, fans, and appliances automatically.

2. Robotics – Building and controlling robots.

3. Environmental monitoring – Measuring temperature, humidity, and air quality.

 

h. You are given a task to move the Cat sprite randomly and bounce if it strikes on edges saying "I am hurt" for infinite times. List and explain the block components used in this program.

Task – Cat sprite moves randomly, bounces on edges, says “I am hurt” infinitely

 

Blocks used:

1. forever (Control block) – To repeat actions endlessly.

2. move (10) steps (Motion block) – Moves the sprite forward.

3. point in direction (pick random 1 to 360) (Motion block) – Sets a random direction.

4. if on edge, bounce (Motion block) – Makes sprite bounce when hitting edges.

5. say \[I am hurt] for 2 seconds (Looks block) – Displays message when hitting edges.

 

Explanation:

 The forever block keeps the action running continuously.

 The sprite moves in a random direction using point in direction and move blocks.

 If on edge, bounce changes its direction upon collision.

 Say block displays “I am hurt” to make the interaction realistic.

 

Lab Activities

 

a Write a program for the sprite cat that asks any two numbers and display the product of two numbers.

b. Write a program to move the sprite randomly at any position and bounce when it strikes on the edge.

C. Write a program to move the sprite from left to right forever.

d. Write a program to make the cat sprite fly towards your mouse pointer.

e.Write a program to change the size of the sprite with the arrow keys.

f.Create a fun game in scratch where there are two sprites on the stage cat sprit and a ball sprite. Ball is forever moving on stage. The cat sprite's movement controlled by pressing all arrow keys :up/down/left/right. If the cat sprite touche the ball sprite, it exclaims "Hurray!!".

g.Write a program to create a quiz game.

 

Popular posts from this blog

Computer