Grade 11 Unit 1 - Finl
Grade 11 Unit 1 - Finl
1. a sequence
2. a simple selection
4. an iteration
03. If the value of variable P is initially 2, what will be the value of the variable P after execution of
the loop
04. Within a program, a group of statement is to be executed repeatedly 10 times. Select the most
suitable statement for this purpose from the following type of statement in Pascal programming
1. For-statement 2. while-statement
05. The given flowchart models the reading of a set of temperatures (T) and displaying a message
"Cold" when they are below 26°C. What is the correct sequence of the labels that should be
denoted by the circles 1, 2, 3, 4, 5, 6 of the flowchart?
Begin
X=1 1. 1 2. 2
Y=1
while(X=Y) 3. 3 4. 4
Z=X+Y
Y=2
end while
display Z
end
N=10
M=6 1. executes 6 time 2. executes 5 times
DO While M > 5
N = N –1 3. never begins 4. never ends
Loop
08. What is the order of precedence of operators used to evaluate the expression
2*(3+4)(-5/2+6) in computer programming
1. ( ) , * , / , - , + 2. * , ( ) , - , / , +
3. + , * , - , / , + (),*, -,/,+
4.
09.
In computer programming, which one of the following relationships is correct, regarding the
contents in columns X and Y of the table given above
1. (A) with (Q) and (S) 2. (A) with (S) and (B) with (R )
10. Value of the variable X is initially 20, what will be the value of X after the execution of the loop
repeat
X := X-4 1. 0 2. -4
unit X < 0;
3. 4 4. 8
11. Select the operator that has the highest priority in the list of operators
3. OR 4. MOD
14. Which of the following data types is suitable for the variable C and R in the above flowchart?
1. String 2. Real
3. Boolean 4. Currency
15. Which of the following statement is incorrect regarding a variable used in a computer
program?
1. A variable has a name (identifier) 2. A variable refers to one or more memory locations
16. Which of the following represents the correct order of precedence of arithmetic operators
from left to right?
1. +, *, = 2. +, *, -
3. *, +, / 4. *, /, +
17. Consider the following pseudocode:
1. 4, 12, 3 2. 5, 2, 10
3. 5, 10, 2 4. 4, 8, 2
1. 4, 12, 3 2. 5, 2, 10
3. 5, 10, 2 4. 4, 8, 2
19. Choose the most correct decision that terminates the iteration
1. 9 2. 12 3. 15 4. 18
21. If the decision X > 15 is changed to X >= 15, the output of the flowchart is
1. 9 2. 12 3. 15 4. 18
23. Which of the following can be used to replace "Add num to total"
in the flowchart?