Revision Worksheet 8 Class Chapter 03
Revision Worksheet 8 Class Chapter 03
ii. Variables are containers for storing data values in the program.
v. Turing’s Halting Problem will ask whether a computer program will stop or whether it will
keep running forever.
vi. Selection occurs when one of the two alternatives is chosen based on whether or not a
condition is true or false.
vii. All the games run in an infinite loop where the game keeps accepting requests from the
user until the user exits the game.
Q.2: Identify the mistakes and rewrite the correct formulas for finding the cell values in
Pascal’s triangle and find the element which is in 5th row and 3rd column of pascal’s triangle.
n=5; k=3
nCk= 5!
3! (5-3)!
nCk= 5.4.3.2.1
3.2.1* 2!
nCk= 20
2.1
nCk= 10
Q.3: Identify the mistakes from the following syntax of given functions and correct them.
T T T T T T
T F F T F T
F T F F T T
F F F F F F
Q.4: Fill the empty cells of Pascal’s triangle and complete the triangle up to 4 rows.
1 1
1 2 1
1 3 3 1
1 4 6 4 1