MCQS | Which method is used to check for prefix in Swift?

Question:Which method is used to check for prefix in Swift?

1.hasPrefix

2. isPrefix

3. isPart

4.has