Page 16 - Touchcode_C7_Flipbook
P. 16
E. Answer the following questions:
1. What is data validation?
.............................................................................................................................................................
.............................................................................................................................................................
2. Write the syntax to declare and initialize a variable in programming.
.............................................................................................................................................................
.............................................................................................................................................................
3. Differentiate among the operand and operator.
.............................................................................................................................................................
.............................................................................................................................................................
4. Name the common data types in programming.
.............................................................................................................................................................
.............................................................................................................................................................
Experiential Learning
Applied Project
To create a program in MakeCode Arcade to display a square of numbers from 1 to 10
Concept: Square is when a number is multiplied by itself. For example square of 5 is 25, (5x5=25).
To perform the task, follow these steps:
Step 1: Visit the link: https://arcade.makecode.com/. Click on ‘New Project’, Write the name of
your project ‘Square’, and then click on ‘Create’.
Step 2: Click on ‘Variables’, select ‘Make a variable...’, write the name of the variable as ‘a’, then
click on ‘OK’. Variable ‘a’ will appear in ‘Make a Variable…’.
Step 3: Select the ‘Change a by 1’ block, it will appear on workspace, drop it to ‘on start’ block.
14 Touchcode-VII

