Page 38 - Touchcode_C7_Flipbook
P. 38
2. Modulus operator returns the remainder.
3. The sequencing can also be set to run for a specific number of times.
4. We can reduce the number of steps of the sequence by using a loop.
5. Data validation ensures that the data entered by the user is valid value.
6. Boolean is a subtype of integer data type.
7. Selection can be described as making a choice based on criteria.
8. Loop condition should result false at a certain point of time.
C. Fill in the blanks.
1. In programming, you can stores values in a ............................
2. Every value needs to be assigned to a specific ........................... type.
3. Sequence of programming reflects ........................... thinking.
4. To swap two numbers, assign the value of num1 to a temporary variable called
............................
5. A variable is declared but is not initialized has an ........................... value.
6. Floating point hold ........................... numbers with decimal values.
7. Building blocks help us to convert any ........................... problem into a well-defined solution.
8. ........................... is used to describe any unexpected problem.
D. Match the following:
1. Integer data type a. Used for single letters
2. Character (or char) b. *
3. Addition Operation c. int a =1;
4. Subtraction Operation d. +
5. Multiplication Operation e. -
E. Answer the following questions:
1. Write the syntax to declare and initialize a variable in programming.
2. What are common data types in programming?
3. Write down two advantages of the loop.
4. Write one difference between While loop and For loop.
36 Touchcode-VII

