Page 42 - CloudGPT_C7_Flipbook
P. 42
Exercise
A. Tick ( ) the correct option.
1. Which of the following denotes the area in which a variable can be used?
a. Boundary b. Vision
c. Scope d. All of the above
2. Which of the following symbol is used to find the remainder?
a. * b. +
c. x d. %
3. What is the alternative of y=y-9?
a. y=x-9 b. y+=9
c. y-=9 d. x=-9
4. Which of the following has the same meaning as X++?
a. X=X+1 b. X=+2
c. y-=4 d. X=x-6
5. Which of the following is a valid variable name?
a. @orange b. 1orange
c. orange1 d. orange *1
B. State whether the following statements are true (T) or false (F).
1. '/' operator divides the first operand by the second.
2. '++' operator increases the integer value by 1.
3. An arithmetic operator is used to assign a new value to a variable.
4. Variable defined outside the scope cannot be accessed.
5. Data type identifies the type of data which the declared variable can hold.
C. Fill in the blanks.
HELP BOX unique, numeric, right, integer, packet
1. Variables are the ........................... that hold information.
2. To identify the variables uniquely, you needs to allocate them a ........................... name.
3. ........................... data type store whole numbers/Integer value.
4. Arithmetic operation combines two or more ........................... expressions.
5. Simple assignment operator assigns values from ........................... side to left side operand.
40 Premium Edition-VII

