Multiple choice technology programming languages

x='Hi' y='Everybody' z='Hello' The value of z should be "Hi Everyone Hello" Which of the below options can be used to generate this?

  1. catt(' ',x,y,z)

  2. cat(' ',x,y,z)

  3. catx(' ',x,y,z)

  4. x||y||z

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The question asks to generate "Hi Everyone Hello" from x='Hi', y='Everybody', and z='Hello', but the output has "Everyone" instead of y's value "Everybody". If we assume the target is "Hi Everybody Hello", catx(' ', x, y, z) is correct as it concatenates strings stripping blanks and inserting a space separator.