C. P-iii; Q-iv; R-i; S-ii;
because Syntax tree come from Syntax analyzer process by Semantic analyzer
Character stream is input to Lexical analyzer
Intermediate representation is input to Code generator
token stream come from Lexical analyzer is input to Syntax analyzer