CBSE Coding Class 6 Solution – Variables using Block Coding
CBSE Coding Class 6 Solution Student Handbook Chapter 3 Variables using Block Coding all Questions and Answers Solution by Coding Teacher. Net Ex. Here provided all Coding Solution for Class 6.
Objective Type Questions
1.) An integer data type can hold decimal values.
Answer : False
Reason: Integer data type only hold whole numbers that can be positive, negative or zero.
2.) Variables must be defined with a name and a data type before they can be used
Answer : True
Reason : Variable name is case sensitive and can only contain alpha numeric characters and underscore.
3.) Which of the following is not a valid variable name in python?
Answer : 1 1test
Reason: Variable cannot start with a number , it starts with an alphabet or the underscore (_).
4.) Fill in the blanks to declare sum equal to a + b (int _ = a __b)
Answer : Sum,+
Reason : Sum is use to add 2 integer with + operator.
5.) Which of the following data type is used to store decimal values?
Answer: Float
Reason: Floating-point numbers are used to store decimal values.
6.) How many times should a data type be mentioned for a variable ?
Answer : Only once; When declaring the variable
Reason: Data type is only need to be declared only once at the start.
7.) Which of the following symbol is used to multiply variables?
Answer : *
Reason: we can store values in different variables and perform multiplication operations with *.
8.) What is the alternative of y = y + 9
Answer : y+=9
Reason: += operator assigns the result to the variable on the left after adding the current value of the variable on left to the value on the right.
9.) Y++ has the same meaning as
Answer : Y=Y+1
Reason: y++ operator adds one to the value.
10.) Which of the following symbol is used to find the remainder?
Answer : %
Reason: Modulus operator (%) calculates the remainder when two variables are divided.
Short Answer Questions
1.) Define variables in programming ?
Answer : In programming, variable is a packet in which we can store data. These packets can be named and referenced and can be used to perform various operations. To perform a mathematical operation, you can declare two variables and perform the operation on them.
- ) Can we declare two variables in a program with the same name ?
Answer : No, a user is not allowed to use the same name of a variable more than once.
3.) What are the common Data Types in programming ?
Answer : The common Data Types in programming are –
- Integer
- Floating-point number
- Character
- String
- Boolean
4.) Name a data type that can store exponential values ?
Answer : Floating point number known as double data type can store exponential values.
5.) Write the pseudocode to perform an addition operation on two variables in a program ?
Answer :
Program starts
Int a = 2;
Int b = 2;
Calculate Sum = a + b
Print Sum
Program ends
Higher Order Thinking Skills (HOTS)
1.) Create a flowchart to perform different mathematical operation (Multiplication, Subtraction, Addition, Division) on two or more variables.
Answer :
2.) Create a project in https://arcade.makecode.com/ to perform Modulus operation on two variables in a program.
Answer :
It is very useful
But sum last questions are missing
Otherwise it will be perfect .