Compilers Questions and Answers – Error Recovery in LR phase – 2

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Error Recovery in LR phase – 2”. 1. The grammar S → aSa | bS | c is? a) LL(1) but not LR(1) b) LR(1) but not LR(1) c) Both LL(1) but not LR(1) & LR(1) but not LR(1) d) None of the … Read more

advertisement

Compilers Questions and Answers – Error Recovery in LR phase – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Error Recovery in LR phase – 1”. 1. Choose the correct statement. a) CFG is not LR b) Ambiguous Grammar can never be LR c) CFG is not LR & Ambiguous Grammar can never be LR d) None of the mentioned 2. How … Read more

advertisement

Compilers Questions and Answers – Storage Allocation – 2

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Storage Allocation – 2”. 1. Suppose that a bus has 16 data lines and requires 4 cycles of 250 nests each to transfer data. The bandwidth of this bus would be 2 Megabytes/sec. If the cycle time of the bus was reduced to … Read more

advertisement

Compilers Questions and Answers – Storage Allocation – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Storage Allocation – 1”. 1. The idea of cache memory is based __________ a) On the property of locality of reference b) On the heuristic 90-10 rule c) On the fact that references generally tend to cluster d) All of the mentioned 2. … Read more

advertisement

Compilers Questions and Answers – Symbol Table Organization – 2

This set of Compilers Assessment Questions and Answers focuses on “Symbol Table Organization – 2”. 1. Generally Dynamic RAM is used as main memory in a computer system as it ____________ a) Consumes less power b) Has higher speed c) Has lower cell density d) Needs refreshing circuitry 2. Write Through technique is used in … Read more

advertisement

Compilers Questions and Answers – Symbol Table Organization – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on ” Symbol Table Organization – 1″. 1. The main memory in a Personal Computer (PC) is made of __________ a) Cache memory b) Static RAM c) Dynamic Ram d) Cache memory & RAM 2. Cache memory works on the principle of _________ a) … Read more

advertisement

Compilers Questions and Answers – Runtime Storage Location – 2

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Runtime Storage Location – 2”. 1. The instruction ‘ORG O’ is a ______ a) Machine Instruction b) Pseudo instruction c) High level instruction d) Memory instruction 2. ‘Aging registers’ are _______ a) Counters which indicate how long ago their associated pages have been … Read more

advertisement

Compilers Questions and Answers – Runtime Storage Location – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Runtime Storage Location – 1”. 1. The load instruction is mostly used to designate a transfer from memory to a processor register known as _______ a) Accumulator b) Instruction Register c) Program counter d) Memory address Register 2. A group of bits that … Read more

advertisement

Compilers Questions and Answers – Switch Case – 2

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Switch Case – 2”. 1. How many times will the following loop be executed? ch = ‘b’; while(ch >= ‘a’ && ch <= ‘z’) a) 0 b) 25 c) 26 d) 1 2. Consider the following program. switch(input) { case ‘1’: printf("One"); case … Read more

advertisement

Compilers Questions and Answers – Switch Case – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Switch Case – 1”. 1. Select the output for following set of code. static void Main(string[] args) { int movie = 1; switch (movie << 2 + movie) { default: Console.WriteLine("A"); break; case 4: Console.WriteLine("B"); break; case 5: Console.WriteLine("C"); break; case 8: Console.WriteLine("D"); … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.