x='MIND' y='WORKS' K=xy L=x||y M=x' 'y Which of the following will display 'MINDWORKS'?
-
SAY K
-
SAY L
-
SAY M
-
SAY XY
-
SAY MINDWORKS
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.