CLASS - VI | CHAPTER -6 ( VARIABLES USING BLOCK CODING ) SOLVED WORKSHEET

 

CLASS - VI
CHAPTER - 6 ( VARIABLES USING BLOCK CODING)
Worksheets



Multiple Choice Questions (MCQs).

Question 1 An integer data type can hold decimal values. 
                Option 1 True 
                Option 2 False 

Answer: Option 2 

Question 2 Variables must be defined with a name and a data type before they can be used 
                Option 1 True 
                Option 2 False

Answer: Option 1

Question 3 Which of the following is not a valid variable name in python? 
            Option 1 _test 
            Option 2 11test 
            Option 3 Test13 
            Option 4 Test_2 

Answer: Option 2 


Question 4 Fill in the blanks to declare sum equal to a + b (int __ = a __b) 
                Option 1 Sum,+ 
                Option 2 Var,- 
                Option 3 Bool,+ 
                Option 4 Add,+ 

Answer: Option 1 

Question 5 Which of the following data type is used to store decimal values? 
                Option 1 Integer 
                Option 2 Float 
                Option 3 Boolean 
                Option 4 String 

Answer: Option 2 

Question 6 How many times should a data type be mentioned for a variable 
                Option 1 Everywhere the variable is used 
                Option 2 When entering variable’s value 
                Option 3 When printing a variable’s value 
                Option 4 Only once; When declaring the variable 

Answer: Option 4 

Question 7 Which of the following symbol is used to multiply variables? 
                Option 1 * 
                Option 2 + 
                Option 3 x 
                Option 4 % 

Answer: Option 1

Question 8 What is the alternative of y=y+9 
                Option 1 y=x+9 
                Option 2 y+=9 
                Option 3 y-=9 
                Option 4 x=+9 

Answer: Option 2 

Question 9 Y++ has the same meaning as 
                Option 1 Y=Y+1 
                Option 2 X=+2 
                Option 3 y-=6 
                Option 4 X=x-5 

Answer: Option 1 

Question 10 Which of the following symbol is used to find the remainder? 
                Option 1 * 
                Option 2 + 
                Option 3 x 
                Option 4 % 

Answer: Option 


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.


2. Can we declare two variables in a program with the same name? 
Answer: No,We can't declare two variables in a program with the same name.


3. What are the common Data Types in programming? 
Answer: Integer • Floating-point number • Character • String • Boolean.


4. Write the pseudocode to perform an addition operation on two variables in a program.
Answer:  Int A =10, 
                Int B = 15,  
                Int C = 0
                C = A + B
                PRINT C