0% found this document useful (0 votes)
58 views2 pages

Chapter 4 Notes VI

Uploaded by

shayanahmed1212
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views2 pages

Chapter 4 Notes VI

Uploaded by

shayanahmed1212
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Chapter # 4

Short Question
1. What is programming language? List a few programming languages?
Ans: A programming language is a special language used to give instructions to a
computer so it can do specific tasks. Some examples of programming languages are
Scratch, Python, Java, and HTML.
2. Interpret the meaning of different colors of Code Blocks in Scratch?
Ans: There are a number of categories of Code Blocks presented in different colored
dots. By clicking on these categories, the relevant commands/Code Blocks in Block
Palette are visible. The color of the script is same as that of the category.
3. How do you create a loop in Scratch?
Ans: To create a loop in Scratch, use the “repeat” or “forever” blocks from the Control
category. Drag one of these blocks into your code, and place the actions you want to
repeat inside the loop block.
4. List down the components of Scratch interface?
The main components of the Scratch interface are:
 Stage: Where project plays.
 Sprites: Characters or objects in project.
 Script Area: Where you build code.
 Block Palette: Has a code block to use.
 Tabs: For Code, Costumes and Sounds.
5. What is the output of the following block-of-code?
When the sprite is clicked, it will:
 Immediately jump to (−10, −10).
 Slowly glide to (10, 10) over a 5-second period.
 Pause for 0.5 seconds.
 Then repeat this cycle indefinitely due to the "forever" loop.

Long Question
Q1. What is a debugging in program? Explain common error in Scratch programming?
Ans: Debugging a program is the process of finding and removing bugs (errors) in a program.
Common errors in Scratch include using an unsupported browser, another logical error that arises
during Scratch programming is that a creating a variable in one sprite that another sprite tries to
access (in older versions), placing blocks in the wrong order and their sequence, leaving extra
blocks in the script.
Q.2: Explain different code of block in the scratch programming?
Ans:
Move: The "move" block moves the sprite by a specific number of steps in the
Motion direction it is currently facing.
Turn: The "turn" block rotates the sprite by a certain number of degrees.
If-then: This block checks a condition, and if the condition is true, it executes the
Condition blocks inside it.
If-then-else: If the condition is true, first block is executed else second block execute.
Repeat: This block repeats a set of blocks a specified number of times.
Loop Repeat until: The loop iterates till the condition is true.
Repeat forever: The loop keeps iterating infinite time.

You might also like