Multiple choice technology mainframe

x='MIND' y='WORKS' K=xy L=x||y M=x' 'y Which of the following will display 'MINDWORKS'?

  1. SAY K

  2. SAY L

  3. SAY M

  4. SAY XY

  5. SAY MINDWORKS

Reveal answer Fill a bubble to check yourself
B,E Correct answer
Explanation

L=x||y uses the concatenation operator (||) to join 'MIND' and 'WORKS' directly, producing 'MINDWORKS'. SAY L would display this result. M=x' 'y uses an abbreviated concatenation with space but still produces 'MINDWORKS'. SAY MINDWORKS displays the literal string. K=xy attempts to concatenate undefined variables (not string literals) and would not work.