Which of the following are valid IP addresses? Give reason(*) if invalid.
(i) 121.23.1.45
(ii) 192.168.0.254
(iii) 192.168.0.1
(iv) 198.-1.1.1
(i), (ii) and (iii) are valid IP addresses, (iv) is not because IP address can not contain any sign other than numbers and.(dot).