Page 88 - Touchcode_C7_Flipbook
P. 88
TEST SHEET 2
Based on chapters 3 to 5
A. Tick ( ) the correct option.
1. Which of the following is the variable local to function, and is part of definition?
a. Argument b. Parameter
c. Function d. Real value
2. Which of the following is the value that is passed on to the function?
a. Argument b. Parameter
c. Function d. Real value
3. Which of the following helps to repeat the certain lines of code in sequence?
a. Event b. Function
c. Redundancy d. Event handler
4. Which one is an incorrect array?
a. Arr[ ]=[‘a’ , ‘b’ ,’c’ ,’d’] b. Arr[ ]=[1 , 2 ,3 ,4]
c. Arr[ ]=[1, ‘a’, ‘b’, 2] d. Arr[ ]=[2.0 , 9.4, 5.6 , 6.7]
5. What does collection consist of?
a. Lists b. Sets
c. Maps d. All of the above
6. Which of the following term defines array?
a. A group of elements of same data type
b. A type of collection having more than one element
c. Elements are stored in memory continuous locations
d. All of the above
7. Which of the following data type is a sequence of characters enclosed in either single or
double or triple quotes?
a. Integer b. Float
c. String d. Boolean
8. Which of the following data type is used to store whole numbers, which can be positive or
negative?
a. Integer b. Float
c. String d. Boolean
86 Touchcode-VII

