Page 37 - Touchcode_C7_Flipbook
P. 37
TEST SHEET 1
Based on chapter 1 and 2
A. Tick ( ) the correct option.
1. Which loop triggers the inner loop, when the outer loop condition is “True”?
a. While b. For
c. Nested d. If
2. Which operator is used to assign a value to variable?
a. Arithmetic operator b. Assignment operator
c. Relational operator d. Comparison operator
3. Which of the following are the data types?
a. Integer b. Floating-point number
c. Character d. All of the above
4. Which of the following helps the computer to understand the type of operations to be
performed?
a. Variable b. Data type
c. Data validation d. None of the above
5. Which of the following approaches will you use to make a sandwich?
a. Sequencing b. Selection
c. Iteration d. All of the above
6. Which loop repeats a statement or group of statements when a given condition is ‘true’?
a. While b. For
c. Nested d. If
7. Which of the following is required to declare a variable?
a. Name of the variable b. Data type
c. Both a and b d. None of the above
8. Which of the following is a name given to a storage area that the programs can manipulate?
a. Variable b. Data type
c. Code d. Syntax
B. State whether the following statements are true (T) or false (F).
1. Syntax of declaring an integer variable is specific to the programing language.
Test Sheet 1 35

