Page 84 - 2502_Pakistan-kifayat_C-8
P. 84
b. I help the computer make smarter decisions when there is more than
one condition.
c. I am a set of instructions that are carried out in order, one after another.
d. I mean putting one block of code inside another, like an IF inside a LOOP.
2. Competency-based/Application-based questions.
a. Zayd is making a game. He wants the character to move 5 steps forward but only if the player has
collected more than 10 coins. What statement should he use?
b. Fatima is programming a dancing character. She wants it to keep moving endlessly. Which loop can
she use to achieve this?
DIY In The Lab Century #Technology Literacy
21 st
Skills
To
Subject Programming
Write a pseudocode to check if a voter is eligible to vote or not, if the age is greater than or equal to 18. If it
is, display "Eligible"; otherwise, display "Not Eligible".
For The Teacher
Discuss about some real-life examples of conditional situations to teach the concept of conditions.
Explain the concept of nesting in with some real-life examples.
82 Premium Edition-VIII

