Which of the following classes of languages can validate an IPv4 address in dotted decimal format? It is to be ensured that the decimal values are between 0 and 255
(A) RE and higher
(B) CFG and higher
(C) CSG and higher
(D) Recursively enumerable language
Explanation: We can draw a DFA for it as given values are finite.
Option (A) is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.