If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

String operations


Barry is making a program to process user birthdays.
The program uses the following procedure for string slicing:
SUBSTRING (string, startPos, numChars)Returns a substring of string starting at startPos of length numChars. The first character in the string is at position 1.
His program starts with this line of code:
userBday ← "03/31/1984"
Which of these lines of code displays the month ("03")?
Choose 1 answer: