Question Paper
Class / Subject: Class 8 (ICSE) · Computer Applications
Chapter: Chapter 3 — Chapter 3: Programming with Variables and Loops (Advanced)
Time Allowed: 32 minutes
Max Marks: 16
1. What is a variable? [1]
(A) A named storage location for a value
(B) A fixed value that never changes
(C) A type of hardware
(D) A type of printer
2. Can a variable's value change? [1]
(A) Yes
(B) No, never
(C) Only once
(D) Variables have no value
3. What is an example of assigning a variable? [1]
(A) score = 0
(B) Only printing text
(C) Only deleting data
(D) Nothing useful
4. What data types can variables hold? [1]
(A) Numbers, text and true/false values
(B) Only numbers
(C) Only text
(D) Nothing specific
5. What is a boolean? [1]
(A) A true/false value
(B) A type of number only
(C) A type of text only
(D) A type of hardware
6. What does using variables make programs? [1]
(A) Flexible and reusable
(B) Rigid and unchangeable
(C) Confusing and useless
(D) Slower always
7. Why avoid rewriting a whole program? [1]
(A) Variables let us change values instead
(B) Rewriting is always necessary
(C) Variables have no benefit
(D) No reason
8. Why learn about variables? [1]
(A) They're fundamental to programming
(B) No reason
(C) It's not useful
(D) Only for tests
9. What is a nested loop? [1]
(A) A loop inside another loop
(B) A single loop only
(C) A type of variable
(D) A type of conditional
10. What does the inner loop do in a nested loop? [1]
(A) Runs fully for each outer loop repetition
(B) Runs only once total
(C) Runs before the outer loop starts
(D) Never runs
11. What can a nested loop help create? [1]
(A) A grid pattern
(B) Only a single line
(C) Nothing useful
(D) Only text
12. What can loops be combined with? [1]
(A) Variables and conditionals
(B) Nothing else
(C) Only other loops, nothing else
(D) Only text
13. What can combining these concepts create? [1]
(A) Sophisticated programs like games
(B) Only simple text
(C) Nothing useful
(D) Only errors
14. What might a game use nested loops for? [1]
(A) Scoring and levels
(B) Nothing useful
(C) Only colours
(D) Only sound
15. Why learn to combine programming concepts? [1]
(A) To build increasingly complex programs
(B) No reason
(C) It's not useful
(D) Only for tests
16. What is an example of using an outer and inner loop? [1]
(A) Rows and dots in a grid
(B) A single, unrelated action
(C) Nothing specific
(D) Only one loop, no nesting