B2.1 Programming fundamentalsB2.1.2
Construct programs that can extract and manipulate substrings
Construct programs that can extract and manipulate substrings
SL + HL≈ 55 minCommand term: ConstructPremium
In this lesson
- Using indices to identify characters and substrings in a string
- Extracting substrings and finding text with string methods in Java and Python
- Altering, replacing, splitting and joining strings
- Constructing programs that combine these operations
This lesson is part of Premium
Every topic has one free lesson. Premium unlocks every interactive lesson, the exam-style questions at the end of each one, and the rest of Praxis IB.
What's inside
- LearnStrings and indices
- CodeIdentifying and extracting
- LearnString operations: Java and Python
- LabString lab
- CodeAltering and joining strings
- CheckQuick check
- CheckQuick check
- CodeTry it: extract a domain
- ExamWorked exam answer
- ReviewMistakes examiners see
- Exam practiceExam-style questions
Ends with 4 exam-style questions worth 12 marks, with a self-marking markscheme.