Which of the following determines whether the string stored in the part variable begins with the letter

Question:

Which of the following determines whether the string stored in the part variable begins with the letter A? 

a. if (part.begins("A")) 

b. if (part.beginswith("A")) 

c. if (part.substr(0, 1) == "A") 

d. if (part.substr(1) == "A")

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: