Question Paper
Class / Subject: Class 10 (ICSE) · Computer Applications
Chapter: Chapter 5 — Chapter 5: User-Defined Methods
Time Allowed: 32 minutes
Max Marks: 16
1. What does a method have? [1]
(A) A name, parameters and return type
(B) Only a name
(C) Only parameters
(D) Only a return type
2. What does 'void' mean for a method? [1]
(A) No value is returned
(B) A value is always returned
(C) The method doesn't exist
(D) The method has no name
3. What do methods help do? [1]
(A) Break programs into manageable pieces
(B) Make programs harder to understand
(C) Combine everything into one block
(D) Nothing useful
4. What happens when a method is called? [1]
(A) Its code executes
(B) Nothing happens
(C) The program stops
(D) The method is deleted
5. What can a returned value be used for? [1]
(A) Used in the calling code
(B) Nothing, it's discarded always
(C) Only for printing
(D) Only for errors
6. What do methods promote? [1]
(A) Organisation and reusability
(B) Confusion and repetition
(C) Nothing useful
(D) Slower programs always
7. What are parameters? [1]
(A) Inputs to a method
(B) Outputs from a method only
(C) The method's name
(D) Nothing specific
8. Why learn user-defined methods? [1]
(A) To write organised, maintainable programs
(B) No reason
(C) It's not useful
(D) Only for tests
9. What does a method have? [1]
(A) A name, parameters and return type
(B) Only a name
(C) Only parameters
(D) Only a return type
10. What does 'void' mean for a method? [1]
(A) No value is returned
(B) A value is always returned
(C) The method doesn't exist
(D) The method has no name
11. What do methods help do? [1]
(A) Break programs into manageable pieces
(B) Make programs harder to understand
(C) Combine everything into one block
(D) Nothing useful
12. What happens when a method is called? [1]
(A) Its code executes
(B) Nothing happens
(C) The program stops
(D) The method is deleted
13. What can a returned value be used for? [1]
(A) Used in the calling code
(B) Nothing, it's discarded always
(C) Only for printing
(D) Only for errors
14. What do methods promote? [1]
(A) Organisation and reusability
(B) Confusion and repetition
(C) Nothing useful
(D) Slower programs always
15. What are parameters? [1]
(A) Inputs to a method
(B) Outputs from a method only
(C) The method's name
(D) Nothing specific
16. Why learn user-defined methods? [1]
(A) To write organised, maintainable programs
(B) No reason
(C) It's not useful
(D) Only for tests