Class 7 - Answer Key
Class 7 - Answer Key
Basics of ICT
Applied Projects
1. Create a program in PictoBlox to display the square of numbers from 1 to 10.
Answer: PictoBlox Program to Display the Square of Numbers from 1 to 10 is shown below.
2. Create a program in PictoBlox to validate the marks entered by the student in the Unit Test. The Unit
Test marks can be between 0 to 40.
Answer: PictoBlox program to validate the marks entered by the student in the Unit Test is as shown,
CHAPTER 3
Sequencing with Block
Coding
Applied Project
1. Create a block code that takes the radius and height of a cylinder as input to a function and computes
its volume. The volume computed should be displayed by the function.
Answer: Block Code to Compute Volume of a Cylinder is as shown below. Formula: Volume of a
cylinder = π × radius² × height
2. Create a block code that computes the product of (sum of two random numbers) with the (difference
of two random numbers) using functions.
Answer: Block Code to Compute Product of (Sum × Difference) of Two Random Numbers
CHAPTER 5
Collections and Arrays
4. Write an algorithm to sort the below list in descending order using the Selection Sort Technique: [10,
21, 45, 67, 12]
Answer:
Step-by-step Algorithm:
1. Start
2. Let the list be [10, 21, 45, 67, 12]
3. For i from 0 to 3 (length - 1):
o Set max_index = i
o For j from i+1 to 4:
▪ If list[j] > list[max_index], set max_index = j
o Swap list[i] with list[max_index]
4. Repeat the steps until the list is sorted
5. Display the sorted list
6. End
Sorted Output: [67, 45, 21, 12, 10]
CHAPTER 6
Introduction to MS Excel