Question Paper
Class / Subject: Class 10 (ICSE) · Computer Applications
Chapter: Chapter 4 — Chapter 4: String Handling
Time Allowed: 32 minutes
Max Marks: 16
1. What does length() do? [1]
(A) Finds a string's length
(B) Extracts a substring
(C) Compares strings
(D) Converts case
2. What does charAt() do? [1]
(A) Gets a character at a specific position
(B) Finds string length
(C) Compares strings
(D) Converts case
3. What does substring() do? [1]
(A) Extracts part of a string
(B) Finds string length
(C) Compares strings
(D) Converts case
4. What should be used to compare string content? [1]
(A) equals()
(B) ==
(C) length()
(D) charAt()
5. What does == compare for strings? [1]
(A) Object references, not content
(B) String content directly
(C) Nothing
(D) String length only
6. What does toUpperCase() do? [1]
(A) Converts a string to uppercase
(B) Converts to lowercase
(C) Finds length
(D) Compares strings
7. What does trim() do? [1]
(A) Removes extra spaces from beginning and end
(B) Adds spaces
(C) Converts case
(D) Finds length
8. Why learn String handling methods? [1]
(A) Essential for processing text data
(B) No reason
(C) It's not useful
(D) Only for tests
9. What does length() do? [1]
(A) Finds a string's length
(B) Extracts a substring
(C) Compares strings
(D) Converts case
10. What does charAt() do? [1]
(A) Gets a character at a specific position
(B) Finds string length
(C) Compares strings
(D) Converts case
11. What does substring() do? [1]
(A) Extracts part of a string
(B) Finds string length
(C) Compares strings
(D) Converts case
12. What should be used to compare string content? [1]
(A) equals()
(B) ==
(C) length()
(D) charAt()
13. What does == compare for strings? [1]
(A) Object references, not content
(B) String content directly
(C) Nothing
(D) String length only
14. What does toUpperCase() do? [1]
(A) Converts a string to uppercase
(B) Converts to lowercase
(C) Finds length
(D) Compares strings
15. What does trim() do? [1]
(A) Removes extra spaces from beginning and end
(B) Adds spaces
(C) Converts case
(D) Finds length
16. Why learn String handling methods? [1]
(A) Essential for processing text data
(B) No reason
(C) It's not useful
(D) Only for tests