Page 6 - Touchcode_C6_Flipbook
P. 6
INSIDE THE SERIES
Learning Resources
At regular intervals of time, the code automatically changes the traffic signals to show colors
(red, yellow, green). So, you can see how few lines of code running in the background drive Coding Tip!
the traffic light.
What exaCtLy Is CodIng?
uiz
Coding
01 is a process of
Coding or programming This section contains a hint for
creating codes to instruct a computer to the student related to a program.
State whether the following statements are true (T) or false (F).
perform a specific task. There can be more
a. A traffic light indicates the road user to act according to the
than one way to solve the problem; similarly, Coding Quiz
there are many ways to write code for the
displayed sign.
same task. This section contains a
b. Traffic lights contain programmed sensors.
Let see an example: question from the topic Coding Tip!
When you play video on your smartphone. Your smartphone will act
Where eLse do We see appLICatIons of CodIng? taught previously.
as a computer which needs to be instructed (in this instructions will
These days a lot of our daily lives rely on coding. We are somehow connected through Splash block is used
be given by the application which plays the video) at each and every
coding. For example, the smartphones, computers, videogames, car dashboards, etc. are
step on what to be done. The application playing the video provides
all using some sort of code to perform its task. to display a message
this instruction via programming language.
Coding fact on the screen for
The first programmer or the first person to write our modern understanding of
a program was Ada Lovelace. some time.
Coding Fact
What Is a programmIng Language? splash '' ''
Language is the primary means of communication for all human interactions. In the same This section contains an
way, to interact with computers, you need a language which the computer understands and interesting fact.
At a Glance
Bar code scanner
Booking tickets
Printer
is called a programming language.
This section gives a brief summary Coding Buzz Words
of the chapter.
This section contains definitions of
at a glance important words related to coding,
A dictionary is a book in which the words and phrases are listed alphabetically, in alphabetical order.
Algorithm is a process or set of rules which need to be followed to solve the given problem.
Thermostat
Software
Video games
A flowchart is a tool for representing algorithms and programming logic.
Pseudocode is used to describe the steps followed in an algorithm via human-comprehensible
A programming language is a computer language which is used by programmers to
language.
Touchcode Level 6
communicate with computers. It can be defined as a set of instructions written in any CODING BUZZ WORDS
8
MakeCode is a framework used for creating interactive and engaging programming
specific computer language to perform a specific task.
experiences to the world of programming.
Introduction to Coding 9
Algorithm: Set of rules to be followed to solve the given problem.
exercise
Coding Task
A. tick ( ) the correct option. Block coding: Basic form of computer programming using visual instruction blocks to create
games or moving animations.
1. Which of the following represents a decision symbol? Data types: Classification that specifies the type of value a variable has and the type of
b.
a. This section allow students to mathematical, relational or logical operations that can be applied to it without causing an error.
c. familiarise with the concept with Dictionary: Book in which the words and phrases are listed alphabetically, with their meanings
d.
or their translations in another language.
the help of the task.
2. Which of the following is a set of rules or instructions which define a step-by-step process Flowchart: Graphical representation of step-by-step plan in a sequential order.
as how a work is to be executed to get the expected results?
a. Algorithm b. Flowchart Iteration: Repetition of a line of code or a block of code which is repeating again and again.
c. Pseudocode d. None of theses Logical operators: Operators which perform logical operations (AND, OR, NOT) on the given
Coding task
3. Flowchart is used to ........................... . 02 expressions.
a. develop understanding of how a process is done. Loop: Algorithm which executes a block of code multiple times until a specific condition is met.
to perform addition operation
b. study a process for improvement. Nested if-else: If there is another if-else construct within an if block or the else block, then this
to perform the task, follow these steps: is called nesting.
c. communicate to others, about how a process is done. Introduction to Python
Step 1: Visit the link: https://arcade.makecode.com/, and creat a new project Addition Step 14: Drag and drop the 'splash block to 'on start' block. Your workspace will look like:
Nested loop: Loop containing another loop inside it.
d. All of the above
Operation.
This section contains supplement topics
4. What is the name of this symbol ? Operator: It is a symbol which operates on a value assigned to a variable. Example: +,-, *, \
Step 2: The following screen appears:
for add-on knowledge.
a. Terminator b. Process/Processing Program: Instructions given to a computer to perform a set of activities.
c. Document d. Decision Programming language: Computer language used by programmers to communicate with
5. Which of the following refers to a raw program without any syntax? computers.
a. Algorithm b. Flowchart Scope of a variable: Part of the code in which the variable can be used.
c. Pseudocode d. Program Syntax: Set of rules to follow while writing a computer program.
Variable: Packet to store data, these packets can be named, referenced and used to perform
IntroductIon to Python
various mathematical operations.
Step 3: Click on 'Variables', select 'Make a variable', write the name of the variable as 'a', Step 15: Click on the 'on start' to run the program, OR on the 'Play' button present on the left-
then click on 'OK'. Variable 'a' will appear in 'Make a Variable…'. hand side, to see the output.
24 Touchcode Level 6
Python
Coding Buzz Words
95
Python is a popular high-level programming language. It is a powerful language used for
general-purpose programming. Python was developed by Guido van Rossum. He started
applying Python in 1989. Python is extensively used to develop:
games websites
Graphical User Interface programs web applications
Teacher's Corner
InstallIng Python
Well done, you have created modulus of two numbers program!
Step 4: Select the 'Change a by 1'. Block is appear on workspace, click on the value a, and Follow these steps to download and install the Python software:
It presents questions that promotes
change the value of 'a' to 10. Step 1: Open the website http://www.python.org/downloads.
higher order thinking skills
Step 2: Click on the Download Python 3.8.3 button. (Hots)
the experiential learning.
Write a pseudocode and then draw a flowchart to perform different mathematical operation
Step 3: Double-click on the downloaded software. You can either look at the bottom of the
(Multiplication, subtraction, Addition, Division) on two or more variables. computer. The
screen or locate the software in the Downloads folder of your
Security Warning dialog box appears.
teacher’s Corner
Step 4: Click on Run button. The Python Setup window appears.
1. Discuss the concept of variable to the students by using real-life examples.
Step 5: Select the Add Python 3.8 to PATH checkbox.
2. Ask students to explain the data types and operations that can be performed on the data types.
Step 6: Click on Install Now button.
Touchcode Level 6
36 Touchcode Level 6 After a few seconds, Python will be successfully installed on your computer.
46
ProgrammIng In Python
Python has two basic programming modes—Script Mode and
Interactive Mode.
Working in Interactive mode
Interactive Mode is a command line shell which gives immediate
result for each command. In Interactive mode, we type one
command at a time. Python executes the given command and
gives the output.
Follow these steps to start Python and work in Interactive Mode:
Step 1: Click on Start button.
Opening Python
Introduction to Python 93

