Page 7 - CloudGPT_C8_Flipbook
P. 7
4. Arithmetic operation combines two or more ........................... expressions.
5. Simple assignment operator assigns values from ........................... side to left side operand.
D. Match the following.
Column A Column B
1. Modulus a. ++
2. Increment b. –=
3. Add AND assignment operator c. *-
4. Subtract AND assignment operator d. += Assessment Resources
5. Multiply AND assignment operator e. %
E. Answer the following.
1. Define the term variables.
..............................................................................................................................................................
..............................................................................................................................................................
Applied Project Exercise
2. Write the rules to name a variable.
It helps the students work outside the It contains a variety of questions to assess
..............................................................................................................................................................
..............................................................................................................................................................
classroom environment while improving the concepts taught in the chapter.
3. Define and name the data types in programming?
their practical skills.
..............................................................................................................................................................
..............................................................................................................................................................
applied project Exercise
To perform modulus operation on two variables in makecode arcade. A. Tick ( ) the correct option.
1. Which of the following denotes the area in which a variable can be used?
To perform the task, follow these steps: a. Boundary b. Vision
Step 1: Visit the link: https://arcade.makecode.com, click on 'New Project', and write the name c. Scope d. all of the above
of project ' Modules Operation'. Click on 'creat'. 2. Which of the following symbol is used to find the remainder?
a. * b. +
c. x d. %
3. What is the alternative of y=y-9?
a. y=x-9 b. y+=9
c. y-=9 d. x=-9
4. Which of the following has the same meaning as X++?
a. X=X+1 b. X=+2
c. y-=4 d. X=x-6
42 Touchcode Level 6 5. Which of the following is a valid variable name?
b. 1orange
a. @orange
Step 14: Drag and drop the 'splash block to 'on start' block. Your workspace will look like:
c. orange1 d. orange *1
B. State whether the following statements are true (T) or false (F).
Test Sheet 1. '/' operator divides the first operand by the second.
Two Test Sheets are included to evaluate 2. '++' operator increases the integer value by 1.
3. An arithmetic operator is used to assign a new value to a variable.
the knowledge of the students. 4. Variable defined outside the scope cannot be accessed.
5. Data type identifies the type of data which the declared variable can hold.
C. Fill in the blanks.
test sheet 1 Step 15: Click on the 'on start' to run the program, OR on the 'Play' button present on the left-
unique, numeric, right, integer, packet
HELP BOX
TesT sheeT 1 hand side, to see the output.
1. Variables are the ........................... that hold information.
Based on chapter 1 to 3 2. To identify the variables uniquely, you needs to allocate them a ........................... name.
3. ........................... data type store whole numbers/Integer value.
A. tick ( ) the correct option.
A. Tick ( ) the correct option.
TesT sheeT 2
TEST SHEET 2
1. Which of the following will help you to communicate with computers?
1. Which of the following will help you to communicate with computers? Variables using Block Coding
b. Programming language
a. Program
Based on chapter 4 and 5
a. Program b. Programming language 41
Based on chapter 4 and 5
c. Code d. Coding
c. Code d. Coding Hots
A. Tick ( ) the correct option.
2. Which of the following are the examples of programming language?
A. Tick ( ) the correct option.
2. Which of the following are the examples of programming language?
1. If two expressions one true, which operator gives true as a result?
a. Python
b. PHP
b. PHP
a. Python 1. Which of the following will help you to communicate with computers? It provides an activity to the students allowing
c. Java a. Program d. All of the above b. Or
a. And
b. Programming language
d. All of the above
c. Java
d. If-else
c. Not
3. Which of the following symbol is used to find the remainder of the variables?
c. Code
d. Coding
2. Which operator gives true as a result is used if the statement evaluates true only if one of
Well done, you have created modulus of two numbers program!
3. Which of the following symbol is used to find the remainder of the variables? them to research and learn new things.
b. +
a. *
the expressions is true?
b. +
a. * 2. Which of the following are the examples of programming language?
c. x
d. %
a. And
b. PHP
c. x a. Python d. % b. Or
c. Java Not
4. Which of the following is a valid variable name? d. All of the above
d. If-else
c.
b.
4. Which of the following is a valid variable name? 1orange higher order thinking skills (Hots)
a. @orange
3. Which of the following operator is used to reverse a condition?
a. @orange 3. Which of the following symbol is used to find the remainder of the variables?
b. 1orange
a. And
c. orange1 a. * d. orange *1 b. Or
b. +
c. orange1 c. Not d. orange *1 d. If-else Write a pseudocode and then draw a flowchart to perform different mathematical operation
5. Variables are used to hold: d. % (Multiplication, subtraction, Addition, Division) on two or more variables.
c. x
5. Variables are used to hold:Which of the following executes a block of code multiple times until a specific condition is met?
a. one or more values 4.
b. result of calculations
4.
a. one or more values Which of the following is a valid variable name? Loop
b. result of calculations b.
a. Iteration
c. database calls a. @orange d. all of the above b. 1orange
c. database calls c. Continue statement d. Break statement teacher’s Corner
d. all of the above
7. Which of the following symbol is used to find the remainder of the variables?
c. orange1
d. orange *1
5. Which of the following track how many times the loop is executed?
7. Which of the following symbol is used to find the remainder of the variables?
a. *
Gamification b. + b. Incrementing loop 1. Discuss the concept of variable to the students by using real-life examples.
a. Counter variable
5. Variables are used to hold:
a. *
b. +
Project
d. %
c. x
c. While loop
d. For loop
b. result of calculations
a. one or more values
2. Ask students to explain the data types and operations that can be performed on the data types.
d. %
c. x
6. Which of the following loop executes a statement or group of statements till a given condition
8. Which of the following operator is used if the statement evaluates true only if both the
d. all of the above
c. database calls
Activity designed to educate, entertain and 46 Touchcode Level 6
8. Which of the following operator is used if the statement evaluates true only if both the
is true?
expressions are true?
expressions are true? Which of the following symbol is used to find the remainder of the variables?
7.
a. While loop
b. For loop
a. And
engage students. b. Or b. + It presents a question/scenario in which
a. *
d. Incrementing loop
b. Or
a. And
c. Nested loop
d. If-else
c. Not
c. Not c. x d. If-else d. % the students are required to think
7. Which of the following operator is used to reverse a condition?
a. And
B. state whether the following statements are true (t) or false (F). b. Or
8. Which of the following operator is used if the statement evaluates true only if both the
B. State whether the following statements are true (T) or false (F). d. If-else
c. Not
expressions are true?
1. Bar-code scanners at the store to scan the product is an application of coding. deeply and apply their knowledge.
1. Bar-code scanners at the store to scan the product is an application of coding.
b. Or
a. And
8. If both the expressions are true, which operator gives true as a result?
2. The application playing the video on the smartphone provides instruction via
a.
b. Or
c. Not And
d. If-else
2. The application playing the video on the smartphone provides instruction via
programming language.
d. If-else
c. Not
programming language. Gamification
B. State whether the following statements are true (T) or false (F).
B. State whether the following statements are true (T) or false (F).
1. Bar-code scanners at the store to scan the product is an application of coding.
1. A loop reduces lines of code. Test Sheet 1 47
2. The application playing the video on the smartphone provides instruction via PROJECT
2. Condition should result false at a certain point of time, otherwise code block
Test Sheet 1
programming language. 47 PROJECT
will enter in an infinite loop.
Step 1: Visit the link: https://education.minecraft.net/en-us/resources/hour-code-2020
86 Touchcode-VI
Watch the video: https://www.youtube.com/watch?v=FALg48OxtBQ CHASE THE APPLE Subject Enrichment
Step 2: Click on 'Try a demo lesson'. Tick on 'Accept Terms' and click on Play. Click on Create a game with two sprites, one will be a Player sprite and another will be an
Test Sheet 2
93
'Start Lesson'. Apple sprite.
Step 3: Choose the 'Hour of Code 2020' and Click on 'CREATE WORLD'. Objective of the game:
To chase and catch the wandering apple and collect as many points as possible before
Coding in Minecraft Every time the apple is caught, points are added, and the timer is restored.
the time runs out.
Step 4: In this world there are two groups: 'villagers' and the 'illagers', both the group share
the same space but interact very rarely with each other. You duty is to bring the
It helps the students to make the coding Code:
two villages together to learn from each other and appreciate each other.
task in Minecraft MakeCode.
Step 5: Start your journey at the castle by learning to move by using the keyboard and
mouse or touch command.
Coding in Minecraft
Step 6: Press W to move forward. Whenever you see a non-player character, right click
on the character to read what they have to say. Output:
Step 7: Move the agent forward, so that the your player can stand on the gold block.
To create and initialize a variable
Step 8: To start coding press C, or tap on the agent icon present at the top of the screen.
You can create and initialize a variable in minecraft, by using the following blocks:
Step 9: Press play when you are ready to run your code.
Step 10: The agent has given you a gift. Plant your sapling with code. The sapling will grow
as you complete the challenges in the villages.
Touchcode-VI
88 88 Touchcode-VII
Reference : https://education.minecraft.net/hour-of-code-2020.
92 Touchcode-VI
To find the square of a number
You can find the square of a number in minecraft, by using the following blocks:
Blocks:
Make a variable: To create a variable.
On start: An event that runs when the program starts and all the blocks
are placed inside it.
Say: Posts a message to the game chat.
Multiplication block: To perform the multiplication operation.
Set Num1 to 0: Assign (set) a variable’s value.
Change a to 10: Change a variable’s value.
Variables in Real Life
Variables in Real Life 17 17

