Compilers Questions and Answers – Array Reference – 2

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Array Reference – 2”. 1. In which way can SAM be stored in an array? a) char name[]=”SAM” b) char name[6]={‘S’,’A’,’M’} c) char name[6]={“S”,”A”,”M”} d) char name [6]={‘S’,’A’,’M’,’\0’} 2. Int RollNUm[30[4] is a? a) 1-d Array b) 3-D Array c) 4- D Array … Read more

advertisement

Compilers Questions and Answers – Array Reference – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Array Reference – 1”. 1. Which of the following correctly declares an array? a) Int array[ 10] b) int array c) array{10} d) array array[ 10] 2. What is the index number of the last element of an array with 29 elements? a) … Read more

advertisement

Compilers Questions and Answers – Implementation of Increment and Decrement – 2

This set of Compilers Questions and Answers for Aptitude test focuses on “Implementation of Increment and Decrement – 2”. 1. In C programming language, which of the following type of operators have the highest precedence? a) Relational Operators b) Equality Operators c) Logical Operators d) Arithmetic Operators 2. Which of the following operators has the … Read more

advertisement

Compilers Questions and Answers – Implementation of Increment and Decrement – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Implementation of Increment and Decrement – 1”. 1. What value does the variable b have after ALL of the code executes? int a; int b; a=1; b=a++; a) 1 b) 2 c) 3 d) unknown/undefined 2. What value does the variable a have … Read more

advertisement

Compilers Questions and Answers – SDT Schemes to Specify Translation of various Programming Language Construct – 2

This set of Compilers Questions and Answers for Campus interviews focuses on “Sdt Schemes to Specify Translation of Various Programming Language Construct – 2 “. 1. In which addressing mode the operand is given explicitly in the instruction? a) Absolute mode b) Immediate mode c) Indirect mode d) Index mode 2. Which of the following … Read more

advertisement

Compilers Questions and Answers – SDT Schemes to Specify Translation of various Programming Language Construct – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “SDT Schemes to Specify Translation of various Programming Language Construct – 1”. 1. Which of the following is not a feature of the compiler? a) Converts it into machine code b) None of the mentioned c) Slow for debugging d) Execution time is … Read more

advertisement

Compilers Questions and Answers – Three-Address Statements – 2

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Three-Address Statements – 2”. 1. In a two pass assembler, adding literals to literal table and address resolution of local symbols are done using? a) First pass and second respectively b) Both second pass c) Second pass and first respectively d) Both first … Read more

advertisement

Compilers Questions and Answers – Three-Address Statements – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Three-Address Statements”. 1. Which languages necessarily need heap allocation in the runtime environment? a) Those that support recursion b) Those that use dynamic scoping c) Allow dynamic data structure d) Those that use global variables 2. Given the language L-{ab, aa, baa}, which … Read more

advertisement

Compilers Questions and Answers – Intermediate Code-Generation – 2

This set of Compilers Questions and Answers for Entrance exams focuses on “Intermediate Code – Generation – 2”. 1. Consider the following two statements: P: Every regular grammar is LL(1) Q: Every regular set has LR(1) grammar Which of the following is TRUE? a) Both P and Q are true b) P is true and … Read more

advertisement

Compilers Questions and Answers – Intermediate Code-Generation – 1

This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “Intermediate code-Generation – 1”. 1. The below grammar and the semantic rules are fed to a yacc tool (which is an LALR (1) parser generator) for parsing and evaluating arithmetic expressions. Which one of the following is true about the action of yacc … 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.