Ans: B Both I and II are true
L={w∣na(w)=nb(w)}L={w∣na(w)=nb(w)}
is deterministic context free language, but not linear.
L={anbn}∪{anb2n}L={anbn}∪{anb2n}
is linear, but not deterministic context free language.
ref: peter linz
(it is an snapshot of peter linz book. page no. 306)