Page 126 - 2403_Trackpad_V5.1_C6_Fb
P. 126
3. Rajesh is drawing a flowchart for buying sweets from a confectionery shop, but he is short of
space on the same page, so he has to extend the flowchart to the next page. How shall he join the
two parts of the flowchart?
4. For the given flowchart on “How to cross the road safely?” Write the appropriate algorithm.
5. Misha has drawn the given flowchart to find and display the square and cube of a positive number.
If you enter a negative number, the execution must terminate. But the flowchart has errors at 1, 2,
3, and 4 numbers. Redraw the correct flowchart.
6. Given the following steps for finding the smaller number between two numbers:
a. Start
b. Read two numbers
c. Compare the two numbers
d. If the first number is smaller, print “The first number is smaller”
e. Otherwise, print “The second number is smaller”
f. Stop
Draw a flowchart representing these steps.
7. Your classmate wants to understand how a language translator works in programming, but he
is confused between a compiler and an interpreter. Explain the role of a language translator, and
compare the functions of a compiler and an interpreter. Which one would be more suitable for
real-time error detection during code execution?
8. Write an algorithm to calculate the total cost of buying three items, each with a different price.
The algorithm should include steps to input the prices, add them up, and print the total cost.
Chapter 7: Blocks in Scratch
1. You are creating a game where the player’s sprite needs to collect items by moving towards
them. Which sensing block will you use to detect when the player is close enough to pick up the
item?
2. Why is it important to use variables when creating a game in Scratch? Can you think of a scenario
where not using a variable could make the game inefficient?
124 Premium Edition-VI

