Question 30 Consider the following procedures for string manipulation. Procedure Call Explanation concat(strl, Returns a single string consisting of strl followed by str2. For example, concat("key",...


Question 30<br>Consider the following procedures for string manipulation.<br>Procedure Call<br>Explanation<br>concat(strl,<br>Returns a single string consisting of strl followed by str2. For example, concat(
"/>
Extracted text: Question 30 Consider the following procedures for string manipulation. Procedure Call Explanation concat(strl, Returns a single string consisting of strl followed by str2. For example, concat("key", "board") returns "keyboard". str2) Sub prefix(str, 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 %3D length) 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) ) initials + prefix(concat(firstName, lastName), 1) initials + prefix(concat(firstName, lastName), 2) >

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here