adplus-dvertising

Welcome to the Introduction to Compilers MCQs Page

Dive deep into the fascinating world of Introduction to Compilers with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Introduction to Compilers, a crucial aspect of Compiler Design. In this section, you will encounter a diverse range of MCQs that cover various aspects of Introduction to Compilers, 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 Introduction to Compilers. 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 Introduction to Compilers. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Introduction to Compilers MCQs | Page 2 of 4

Explore more Topics under Compiler Design

Q11.
__________ was developed from the beginning as a cross compiler
Discuss
Answer: (a).Free Pascal
Q12.
If we compile the sam.c file with the command โ€œgcc -o sam sam.cโ€, then the executable file will be
Discuss
Answer: (b).sam
Q13.
What will be output of the following code?
#include<stdio.h>
int main()
{
    printf("%d\t",sizeof(6.5));
    printf("%d\t",sizeof(90000));
    printf("%d",sizeof('A'));
    return 0;
}
Discuss
Answer: (c).8 4 4
Q14.
What will be output of the following c code? ( according to GCC compiler)
#include<stdio.h>
int main()
{
    signed x;
    unsigned y;
    x = 10 +- 10u + 10u +- 10;
    y = x;
    if(x==y)
         printf("%d %d",x,y);
    else if(x!=y)
         printf("%u  %u",x,y);
    return 0;
}
Discuss
Answer: (a).0 0
Q15.
What will be output of the following c code?
#include<stdio.h>
int main()
{
    const int *p;
    int a=10;
    p=&a;
    printf("%d",*p);
    return 0;
}
Discuss
Answer: (b).10
Q16.
What will be output of the following c code?
#include<stdio.h>
int main()
{
    int a= sizeof(signed) +sizeof(unsigned);
    int b=sizeof(const)+sizeof(volatile);
    printf("%d",a+++b);
    return 0;
}
Discuss
Answer: (c).8
Q17.
What will be output of the following c code?
#include<stdio.h>
int main()
{
    volatile int a=11;
    printf("%d",a);
    return 0;
}
Discuss
Answer: (d).Cannot Predict
Q18.
What will be output of the following c code?
#include<stdio.h>
const enum Alpha
{
      X,
      Y=5,
      Z
}p=10;
int main()
{
    enum Alpha a,b;
    a= X;
    b= Z;
    printf("%d",a+b-p); 
    return 0; 
}
Discuss
Answer: (a).-4
Q19.
Which concept of grammar is used in the compiler
Discuss
Answer: (b).Parser
Q20.
A regular expression enables a quick test to determine objects and text strings with undependable values.
Discuss
Answer: (a).True
Page 2 of 4

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!