Question:medium

Match List-I with List-II.
List-IList-II
(A) SUBSTR()(II) To extract a substring from a string.
(B) TRIM()(IV) To remove spaces from both sides of the string.
(C) INSTR()(I) To find the position of a substring in a string.
(D) LEFT()(III) To extract characters from the left side of the string.

Show Hint

String functions help manipulate and analyze text: \texttt{SUBSTR()} extracts, \texttt{INSTR()} finds, \texttt{TRIM()} cleans, \texttt{LEFT()} extracts from the left.
Updated On: Feb 16, 2026
  • (A)-(I), (B)-(II), (C)-(III), (D)-(IV)
  • (A)-(II), (B)-(IV), (C)-(I), (D)-(III)
  • (A)-(I), (B)-(II), (C)-(IV), (D)-(III)
  • (A)-(III), (B)-(IV), (C)-(I), (D)-(II)
Show Solution

The Correct Option is B

Solution and Explanation

Step 1: SUBSTR().
Purpose: To extract a portion of a string → (II).
Step 2: TRIM().
Purpose: To eliminate leading and trailing whitespace from a string → (IV).
Step 3: INSTR().
Purpose: To locate the starting position of a substring within a string → (I).
Step 4: LEFT().
Purpose: To extract characters from the beginning (left side) of a string → (III).
Final Answer: \[\boxed{(A)-(II), (B)-(IV), (C)-(I), (D)-(III)}\]
Was this answer helpful?
0