Which of the following returns a string type value?
Which of the following returns a string type value?
Solution
✅ Correct Option: 3
mid() extracts a substring from a given string, so its result is itself a string. For example, returns "OMP".
Option 2: instr() works on strings but returns the position of a substring, which is an integer.
Options 1 and 4: mod() returns the remainder (a number), and dayofmonth() returns the day number (1 to 31) of a date.
Related questions:
2025: 3 June Shift 2
2025: 27 May Shift 2
2026: 26 May Shift 1
2026: 21 May Shift 1
2025: 14 May Shift 1