Multiple choice technology programming languages

The input file is like below {IP:10.236.130.102} {IP:10.160.236.202} {IP:10.236.119.99} . Read the IP address and store the IP numbers alone without having the IP word in the dataset. Required output is: address {10.236.130.102} {10.160.236.202} {10.236.119.99} Choose the correct option NOTE: { } is added for readability

  1. input @ 1 'IP:' address $;
  2. input @ 'IP:' address :$16. ;
  3. input @ 'IP:' address $16 ;
  4. input @ 'IP:' address $;
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The @ 'IP:' syntax moves the column pointer to the string 'IP:', and the :$16. informat reads up to 16 characters or until the next delimiter. The colon modifier allows variable-length input.