PLEASE HELP! 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 ?

PLEASE HELP 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 l class=

Respuesta :

Answer:

a

Explanation:

Prefix function will grab length character(s) from a string while concat function will join 2 strings into 1.

For initials, use prefix on firstName and lastName to grab the first character. Then join the two together using concat to give the initials:

So the answer is a.

The correct choice to the given function is "initials <--- concat (prefix (FirstName, 1), prefix (lastName, 1))", and its explanation as follows:

Prefix function:

To assign the correct string, we must examine the "cancat ()" and "prefix ()" methods in this problem.

The string consists of the first letter of the string "firstName" followed by the first letter of the string "lastName", is to be set to the variable initials.

Please find the attached file for the complete solution.

Find out more bout the prefix function here:

brainly.com/question/14912735

Ver imagen codiepienagoya
Ver imagen codiepienagoya