10. Consider the following procedures for string manipulation. Procedure Call Еxplanation concat (str1, str2) Returns a single string consisting of strl followed by str2. For example, concat ("key",...


I need the answer please !


10. Consider the following procedures for string manipulation.<br>Procedure Call<br>Еxplanation<br>concat (str1, str2)<br>Returns a single string consisting of strl followed by str2. For example, concat (

Extracted text: 10. Consider the following procedures for string manipulation. Procedure Call Еxplanation concat (str1, str2) Returns a single string consisting of strl followed by str2. For example, concat ("key", "board") returns "keyboard". prefix (str, length) Returns the first 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 ? initials + concat(prefix(firstName, 1), prefix(lastName, 1)) В initials + concat (prefix(firstName, 2), prefix (lastName, 2)) C initials + prefix(concat (firstName, lastName), 1) D initials t prefix(concat (firstName, lastName), 2)

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here