Skip to main contentSkip to solution

Match the LIST-I with LIST-II

LIST-ILIST-II
A.SELECT MID("Informatics", 3)I.form
B.SELECT MID("Informatics", 3, 4)II.formatics
C.SELECT LEFT("Informatics", 4)III.ics
D.SELECT RIGHT("Informatics", 3)IV.Info

Solution

✅ Correct Option: 4
List IList II
(A) SELECT MID("Informatics", 3)(II) formatics
(B) SELECT MID("Informatics", 3, 4)(I) form
(C) SELECT LEFT("Informatics", 4)(IV) Info
(D) SELECT RIGHT("Informatics", 3)(III) ics

MID(string, start, length) counts positions from 1. In "Informatics", position 3 is "f" (I-1, n-2, f-3). With no length given, MID returns everything from position 3 to the end, so the result is "formatics". With length 4, it returns only 4 characters from position 3, so the result is "form".

LEFT(string, n) takes the first n characters and RIGHT(string, n) takes the last n characters.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question