Multiple choice technology programming languages

Select the output of the following SQL statement : SELECT RPAD(name,10,'x') from client_table where name='TEST';

  1. xxxxxxTEST

  2. TESTxxxxxx

  3. ' TEST'

  4. 'TEST '

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

RPAD function pads the string on the RIGHT side with the specified character to reach the given length. 'TEST' has 4 characters, so 6 'x' characters are added to reach length 10, resulting in 'TESTxxxxxx'.