Question: Consider the following procedures for string manipulation. Procedure Call Explanation concat ( str 1 , str 2 ) Returns a single string consisting of str
Consider the following procedures for string manipulation.
Procedure Call Explanation
concatstr str Returns a single string consisting of str followed by str For example, concatkey "board" returns "keyboard".
prefixstr length Returns the fir
st length characters of str or str if length is greater than the number of characters in str For example, prefixdelivery returns "del" and prefixdelivery returns "delivery".
The variable initials is to be assigned a string consisting of the first letter of the string firstName followed by the first letter of the string lastName. Which of the following assigns the correct string to initials
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
