0 votes 0 votes Compiler Design compiler-design syntax-directed-translation ace-test-series + – ashish pal asked Dec 20, 2017 • edited Mar 7, 2019 by Rishi yadav ashish pal 331 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Ashwin Kulkarni commented Dec 20, 2017 reply Follow Share Answer is Option C. Here, A1.evenx is checking whether number of x's are even or odd in A1. But A has 1 more x than A1. Because A = xA1y(Hence one x is appended). (A.n or A1.n => counting number of x's) Hence option B = A.n = A1.n + 1 And by taking mod it checks whether they are even or odd. Now Option A is ofcourse true because A has 1 more x than A1. Hence if A1 calculates x's as even definitely A has +1 (hence even changes to odd and viceversa) 0 votes 0 votes Yogesh Mandge commented Dec 22, 2017 reply Follow Share I think the answer is C too but the correct answer provided by ACE's faculty is only A. 0 votes 0 votes Aakash_ commented Nov 30, 2018 reply Follow Share yes Answer is C, ACE has given wrong answer. https://gateoverflow.in/172276/compiler-design-test-series-question 0 votes 0 votes Please log in or register to add a comment.