Home / Education / Notes / Computer Science / Compiler / MCQS of Principles of compiler Design |NTS PTS|CSS

MCQS of Principles of compiler Design |NTS PTS|CSS

 

1:Cross compiler is compiler

(a)which is the return the language that is different from the source language

(b)that generator object code for its host machine (c) which is the written in a language that is save as the source language (d)that run on one machine but produce object code for the another looking machine number

2:incremental compiler is a compiler

(a)which is the written in a language that is different from the source language (b)that generate object code for the for it host machine (c) which is written in a language that is same as the source language (d)that allow modified portion of a program to be compiled

(3) for which of the following reason in inter operator interpreter is prepared to a compiler

(a)take less time to execute (b) it is much helpful in the initial stage of the program development (C) debugging can be faster and easier (d)it need less computer source

5: the cost of development a compiler is proportional to be

(a)complexity of the source language complexity of the source language

(b)complexity of the architecture of the target machine

(c)flexibility of the available instruction set (d)none of the above

6:check an ideal compiler should

(a)be smaller in size (b) take less time for compilation (c) be written in high level language (d)produce object code that is smaller in size and execute faster

7: an optimizing compiler

(a)is optimized to occupy less space  (b)is optimized to take less time for execution (C)optimized the code (d) none of the above

9:whether is given pattern constitutes a token or not

(a)depend on the source language  (b)depend on the target language  (C)depend on the compiler (d)none of the above

9: whether a given pattern constitutes a token or not

(a)depend on the source language (b) depend on the get language (C) depend on compiler (d) none of the above comments is true

11: which of the following grammar or not pase-structure?

(a)regular (B) contacts free (c) context sensitive (D) none of the above

17: representing the syntax by a grammar advantages because

(a)it is concise  (b) it is accurate (c)automation becomes easy

(d)the intermediate code can be generated easily and efficiently

18: cfg can be recognized by

(a)push down automata (b)2 way linear bounded automata (c)finite state automata (D) none of the above

19:CFG can be recognized by

(a)pushdown automata (b) two way linear bounded automata (C) final finite state automata (D) none of the above

20: choose the correct statement

(a)sentence of A grammar is a sentential form without any terminals

(b)sentence of a grammar should be e available from the start State (c) sentence of a grammar should be Frontier of a derivation tree in which they root not has the start state is the label (d)all of the above

21: A grammar can be have

(a)a in no-terminal that can’t derive any string of the terminals

(b)a non-internal a that can be present in any sentential form (c) the only symbol on the left hand side of a production (d) none of the above

22: a top down parser generates

(a)leftmost derivation (b) rightmost derivation (c) rightmost derivation in Reverse (d)leftmost derivation in Reverse

23: a bottom up parser generate

 

(a)left most derivation (b) the rightmost derivation (c) rightmost derivation in Reverse (d) leftmost derivation in rivers

25: the grammar E→E+E |E*g |a, is

(a)ambiguous (b) unambiguous (c)ambiguous or not depend on the given sentence (d) none of the above

 

About Abid Zai

Website designer, website developer, blogger and a writer. These are the things I like, love and live for. Having years of experience in each field. Developing sites since childhood. Getting the most complicated things done is my specialty. Providing each and everything of top most quality to each and every client.

Check Also

chemistry mcqs for m phil

50+ MCQS of Chemistry With Answer | 1st Year Chemistry Notes

Chemistry MCQs. Mcqs for students MCAT ECAT ETEA, PPSC Test, FPSC Test, SPSC Test, KPPSC …

Leave a Reply

Your email address will not be published. Required fields are marked *

gtag('config', 'UA-42680632-6');

Watch Dragon ball super

google-site-verification: google6825e300458cac34