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
concat(str1, str2) Returns a single string consisting of str1 followed by str2. For example, concat("key", "board") returns "keyboard".
prefix(str, length) Returns the fir
st length characters of str or str if length is greater than the number of characters in str. For example, prefix("delivery",3) returns "del" and prefix("delivery",100) 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!