Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

TouchCode Class 7
TouchCode Class 7
TouchCode Class 7
Ebook183 pages51 minutes

TouchCode Class 7

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Coding Textbook as per CBSE Curriculum

KEY FEATURES
- National Education Policy 2020
- Coding Task: This section allow students to familiarise with the concept with the help of the task.
- Coding Buzz Words: This section contains definitions of important words related to coding, in alphabetical order.
- More on Python: This section contains supplement topics for add-on knowledge.
- Gamification: Activity designed to educate, entertain and engage students.
- Coding in Minecraft: It helps the students to make the coding task in Minecraft MakeCode.

DESCRIPTION
TouchCode, a series for grades 1–8, is a specially designed book to develop Computational Thinking skills and move towards making codes.

TouchCode books for Grades 1–5 have activities based on various skills that amplifies the CT skills and build a strong foundation for middle school. TouchCode books for Grades 6–8 take a step ahead and let the child enter the world of codes using blockbased coding.

WHAT WILL YOU LEARN
You will learn about:
- Reasoning
- Critical Thinking & Analysis
- Data Processing
- Algorithmic Intelligence
- Computational Thinking
- MakeCode Arcade
- Block Coding

WHO THIS BOOK IS FOR
Grade - 7

TABLE OF CONTENTS
CHAPTER 1 VARIABLES IN REAL LIFE
CHAPTER 2 SEQUENCING WITH BLOCK CODING
Coding in Minecraft
Test Sheet 1
CHAPTER 3 FUN WITH FUNCTIONS
Coding in Minecraft
CHAPTER 4 UNDERSTANDING ARRAYS & COLLECTIONS
Coding in Minecraft
CHAPTER 5 HELLO WORLD WITH CODE
Coding in Minecraft
Test Sheet 2
Project
Gamification
More on Python
Coding Buzz Words
Coding Ethics
LanguageEnglish
Release dateJan 31, 2022
ISBN9789391246938
TouchCode Class 7

Read more from Team Orange

Related to TouchCode Class 7

Related ebooks

Computers For You

View More

Related articles

Reviews for TouchCode Class 7

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    TouchCode Class 7 - Team Orange

    1

    VARIABLES IN REAL LIFE

    INTRODUCTION

    In your previous class, you had learned that a variable is a packet to store data which can be named, referenced. In this class, you are going to learn more about variables and how they are used in a program.

    What is variable initialization?

    To use variables in programming, first we need to create the variables and assign them a reference in the computer memory.

    Variable is a storage area which the programs can manipulate by changing the values stored in it.

    Create/declare a variable

    Syntax is a rule which must be followed while performing a task.

    In most of the programming languages, you can declare a variable by using the following syntax:

    Datatype VariableName=Value;

    int x, int y will create two variables ‘x’ and ‘y’ and it reserve two memory locations with names ‘x’ and ‘y’. Variables are created by using the ‘int’ keyword. ‘int’ specify the data type which means that the declared variable will store integer values ‘20’ and ‘30’ in these two variables.

    Once the variable is created, you need to assign it a value before using it. This process of assigning a value to a variable is called initialization.

    A variable which is declared but is not initialized ever has an undefined value, but you can assign it a value in later steps by using assignment operators.

    Consider example 1, in which two variable ‘x’ and ‘y’ are declared. Variable ‘x’ stores a value ‘20’ and variable ‘y’ stores a value ‘30’.

    Now, when the program is executed, the memory location named as ‘x’ will hold a value ‘20’ and memory location named as ‘y’ will hold a value ‘30’.

    As you already know that a variable cannot be used unless a value is assigned to it. The value of a variable can be initialized to ‘Null’, which is also a value. Variable which is defined with the ‘Null’ value is a variable which is not initialized and also it does not hold any value, not even ‘Null’. In some programming languages like Python, there is no command to declare the variables. A variable is created at the moment, when you first assign a value to it.

    To create and initialize a variable

    In this task, you will learn to create and initialize a variable in makecode arcade.

    To perform the task, follow these steps:

    Step 1: Visit the link: https://minecraft.makecode.com/. Click on ‘New Project’, give a name to your project, ‘To create a variable’, and 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, click on the value a, and change the value to 10.

    Step 4: Drag and drop ‘change a by 10’ block to ‘on start’ block.

    Data types in programming

    Data type identifies the type of data which the declared variable can hold. It helps the computer to understand what operations need to be performed on the declared variables.

    To declare the variable, you need to

    Enjoying the preview?
    Page 1 of 1