a).
This languageconsist of four consecutive digits or called segment where a zero segment, followed by a one segment after that another zero-segment followed by another one segment.
Let the given language is context-free and pumping lemma is showing by the variablefor the given language .
Now consider the string or the given language is belonging to . That is . After that write this string as in the order of.
Where,
Now, there are two cases according to this statement:
case 1: contains more than one type of character. that is at least one of contains both zeros and ones. And when pumping lemma is applied than, now insert an extra into the prescribed sequence after the resulting string will contain at least 3 zero segments and 3 one segments.
, then pumping once would result in an additional zero, zero segment followed by two one’s segment.
But, strings in contain only four segments.
case 2: contain only one type of character or contain one type of language and they both are all zeros or all ones.
Since,
contains letters from at most two segments of itself.
Pumping once to increases the number of characters in one or two of the segments. From here, the number of characters in each language are not equal.
So, there it shows,
Therefore, the given language is not context free language.