adplus-dvertising

Welcome to the Syntax Directed Definition and Translations MCQs Page

Dive deep into the fascinating world of Syntax Directed Definition and Translations with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Syntax Directed Definition and Translations, a crucial aspect of Compiler Design. In this section, you will encounter a diverse range of MCQs that cover various aspects of Syntax Directed Definition and Translations, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Compiler Design.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Syntax Directed Definition and Translations. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Compiler Design.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Syntax Directed Definition and Translations. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Syntax Directed Definition and Translations MCQs | Page 8 of 12

Q71.
What value does the variable x have after ALL of the code above executes?

int x;
int y;
int z;
x=3;
y=4;
z = ++x * y++;
Discuss
Answer: (c).4
Q72.
What value does the variable y have after ALL of the code above executes?

int x;
int y;
int z;
x=3;
y=4;
z = ++x * y++;
Discuss
Answer: (b).5
Q73.
What will be the output of the following program?
#include<stdio.h>
int main()
{
   int i = 10;
   printf("%d", ++(-i));
   return 0;
}
Discuss
Answer: (d).None of the mentioned
Q74.
What will be the output of the following program?
#‎include‬
int main()
{
int x=4, y, z;
y = --x;
z = x--;
printf("%d, %d, %d\n", x, y, z);
return 0;
}
Discuss
Answer: (c).2,3,3
Q75.
What will be the output of the following program?
#include <stdio.h>
main()
{
   int a=1, b=3;
   b= a++ + a++ + a++ + a++ + a++;
   printf("a=%d \n b=%d",a,b); 
}
Discuss
Answer: (a).a = 6, b = 15
Q76.
What will be the output of the following program?
 #include <stdio.h>
main()
{
      int a=9, b=9;
      a=b++;
      b=a++;
      b=++b; 
      printf("%d %d",a,b);
}
Discuss
Answer: (b).10,10
Q77.
What will be the output of the following program?
 #include <stdio.h>
main()
{  int a,b;
      b = 10;
      a = ++b + ++b;
      printf("%d%d",a,b);
}
Discuss
Answer: (b).23,12
Q78.
Which of the following operators has the highest precedence?
Discuss
Answer: (a).Unary +
Q79.
If i=1 j=2,k=3, then what is the value of the expression
!((j + k) > (i + 5))

a.

6

b.

5

c.

1

d.

0

Discuss
Answer: (c).1
Q80.
The expression 5 – 2 – 3 * 5 – 2 will evaluate to 18, if – is left associative and
Discuss
Answer: (c).– has precedence over *

Suggested Topics

Are you eager to expand your knowledge beyond Compiler Design? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!