Page 7 - Touchcode_C7_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
..............................................................................................................................................................
It helps the students work outside the It contains a variety of questions to assess
2. Write the rules to name a variable.
..............................................................................................................................................................
classroom environment while improving the concepts taught in the chapter.
..............................................................................................................................................................
their practical skills.
3. Define and name the data types in programming?
..............................................................................................................................................................
..............................................................................................................................................................
applied project Exercise
A. Tick ( ) the correct option.
To perform modulus operation on two variables in makecode arcade.
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
c. Scope d. all of the above
Step 1: Visit the link: https://arcade.makecode.com, click on 'New Project', and write the name
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
5. Which of the following is a valid variable name?
42 Touchcode Level 6 a. @orange b. 1orange
c. orange1
d. orange *1
Step 14: Drag and drop the 'splash block to 'on start' block. Your workspace will look like:
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 HELP BOX unique, numeric, right, integer, packet
TesT sheeT 1 Step 15: Click on the 'on start' to run the program, OR on the 'Play' button present on the left-
1. Variables are the ........................... that hold information.
Based on chapter 1 to 3 hand side, to see the output.
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
Based on chapters 3 to 5
a. Program
b. Programming language
Based on chapter 4 and 5
a. Program b. Programming language 41
c. Code A. Tick ( ) the correct option. d. Coding
c. Code d. Coding Hots
2. Which of the following are the examples of programming language?
A. Tick ( ) the correct option.
1. Which of the following is the variable local to function, and is part of definition?
2. Which of the following are the examples of programming language? b. Parameter
b. PHP
a. Argument
a. Python
a. Python 1. Which of the following will help you to communicate with computers? It provides an activity to the students allowing
b. PHP
c. Java c. Function d. All of the above d. Real value
b. Programming language
a. Program
d. All of the above
c. Java
3. Which of the following symbol is used to find the remainder of the variables?
c. Code
2. Which of the following is the value that is passed on to the function?
d. Coding
3. Which of the following symbol is used to find the remainder of the variables? them to research and learn new things.
b. Parameter
b. +
a. Argument
a. *
a. * 2. Which of the following are the examples of programming language? Well done, you have created modulus of two numbers program!
b. +
c. x
d. %
d. Real value
c. Function
c. x a. Python d. % b. PHP
4. Which of the following is a valid variable name? d. All of the above
c. Java
3. Which of the following helps to repeat the certain lines of code in sequence?
a. @orange
b.
4. Which of the following is a valid variable name? 1orange b. Function
a. Event
a. @orange 3. Which of the following symbol is used to find the remainder of the variables? higher order thinking skills (Hots)
b. 1orange
c. orange1 c. Redundancy d. orange *1 b. + Event handler
d.
a. *
c. orange1 d. orange *1
5. Variables are used to hold: d. % Write a pseudocode and then draw a flowchart to perform different mathematical operation
4. Which one is an incorrect array?
c. x
a. one or more values a.
5. Variables are used to hold: Arr[ ]=[‘a’ , ‘b’ ,’c’ ,’d’] b. result of calculations Arr[ ]=[1 , 2 ,3 ,4]
b.
a. one or more values Which of the following is a valid variable name? (Multiplication, subtraction, Addition, Division) on two or more variables.
4.
b. result of calculations
c. database calls c. Arr[ ]=[1, ‘a’, ‘b’, 2] d. all of the above d. Arr[ ]=[2.0 , 9.4, 5.6 , 6.7]
a. @orange
b. 1orange
c. database calls d. all of the above
7. Which of the following symbol is used to find the remainder of the variables? teacher’s Corner
5. What does collection consist of?
c. orange1
d. orange *1
7. Which of the following symbol is used to find the remainder of the variables?
a. *
Gamification b. + b. Sets 1. Discuss the concept of variable to the students by using real-life examples.
a. Lists
5. Variables are used to hold:
a. *
b. +
d. %
Project
c. x
c. Maps
d. All of the above
a. one or more values
b. result of calculations
c. x
d. %
6. Which of the following term defines array?
8. Which of the following operator is used if the statement evaluates true only if both the
Activity designed to educate, entertain and 2. Ask students to explain the data types and operations that can be performed on the data types.
d. all of the above
c. database calls
8. Which of the following operator is used if the statement evaluates true only if both the
expressions are true? a. A group of elements of same data type
7.
expressions are true? Which of the following symbol is used to find the remainder of the variables?
Touchcode Level 6
a. And
46
b. A type of collection having more than one element
engage students. b. Or b. + It presents a question/scenario in which
a. *
a. And
b. Or
c. Not
d. If-else
c. Elements are stored in memory continuous locations
c. Not c. x d. If-else d. % the students are required to think
B. state whether the following statements are true (t) or false (F).
d. All of the above
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).
expressions are true?
1. Bar-code scanners at the store to scan the product is an application of coding. deeply and apply their knowledge.
7. Which of the following data type is a sequence of characters enclosed in either single or
1. Bar-code scanners at the store to scan the product is an application of coding.
b. Or
a. And
double or triple quotes?
2. The application playing the video on the smartphone provides instruction via
b. Float
d. If-else
c. Not
a. Integer
2. The application playing the video on the smartphone provides instruction via
programming language.
programming language. c. String Gamification
d. Boolean
B. State whether the following statements are true (T) or false (F).
8. Which of the following data type is used to store whole numbers, which can be positive or
1. Bar-code scanners at the store to scan the product is an application of coding.
negative? Test Sheet 1 47
2. The application playing the video on the smartphone provides instruction via
b. Float
a. Integer
Test Sheet 1
programming language. 47 PROJECT
d. Boolean
c. String
Step 1: Visit the link: https://education.minecraft.net/en-us/resources/hour-code-2020
Watch the video: https://www.youtube.com/watch?v=FALg48OxtBQ EAT THE FRUIT
Touchcode-VII
Step 2: Click on 'Try a demo lesson'. Tick on 'Accept Terms' and click on Play. Click on Create a game with three sprites, one will be a Player sprite, second will be Fruit sprite and
Test Sheet 2
86
93
'Start Lesson'. another will be a Junk food sprite.
Step 3: Choose the 'Hour of Code 2020' and Click on 'CREATE WORLD'. Objective of the game:
Coding in Minecraft Move your sprite around the screen and eat as much fruit as you can before the time
Step 4: In this world there are two groups: 'villagers' and the 'illagers', both the group share
runs out!
the same space but interact very rarely with each other. You duty is to bring the
It helps the students to make the coding Every time the fruit is caught, points are added, and the timer is restored.
two villages together to learn from each other and appreciate each other.
You will be given three lives to play the game, once you hit third time to the junk food,
your game will be over.
task in Minecraft MakeCode. Code:
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.
Step 7: Move the agent forward, so that the your player can stand on the gold block. Output:
To create and initialize a variable
You can create and initialize a variable in minecraft, by using the following blocks:
Step 8: To start coding press C, or tap on the agent icon present at the top of the screen.
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-VII
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 17 17
Variables in Real Life

