Practice
String Extraction and Lowercase
2023/Oct/Nov·Variant 2·Q7·[5 marks]
MEDIUMString Processing
The string "Learning Never Exhausts The Mind" is stored in a variable Quote.
Write pseudocode to:
- Store that string in
Quote - Extract and output the last 8 characters (
"The Mind") - Output the entire string in lowercase
Source: 2023 Oct/Nov Variant 2 Q7
Input: None — the string is hardcoded in the program.
Output: Two lines — The Mind then learning never exhausts the mind
Note: SUBSTRING(str, start, length) returns length characters from position start. The string has 32 characters, so "The Mind" starts at position 25.
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: Fixed string operations
Expected: The Mind
learning never exhausts the mind
Ctrl+Enter
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade