Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Compiler Design  >  Test: Loop Unrolling - Computer Science Engineering (CSE) MCQ

Test: Loop Unrolling - Computer Science Engineering (CSE) MCQ


Test Description

11 Questions MCQ Test Compiler Design - Test: Loop Unrolling

Test: Loop Unrolling for Computer Science Engineering (CSE) 2024 is part of Compiler Design preparation. The Test: Loop Unrolling questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Loop Unrolling MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Loop Unrolling below.
Solutions of Test: Loop Unrolling questions in English are available as part of our Compiler Design for Computer Science Engineering (CSE) & Test: Loop Unrolling solutions in Hindi for Compiler Design course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Loop Unrolling | 11 questions in 10 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Compiler Design for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Loop Unrolling - Question 1

Which of the following is the function of the semantic analysis phase of compilation proc 

Detailed Solution for Test: Loop Unrolling - Question 1
  • The semantic analysis phase of compilation is responsible for ensuring that the source code is semantically correct. This involves checking for type consistency, scope resolution, and type conversions.
  • Type conversion is a critical part of the semantic analysis phase as it ensures that operations are performed on compatible data types.
Test: Loop Unrolling - Question 2

A compiler for a high-level language that runs on one machine and produces code for a different machine is called

Detailed Solution for Test: Loop Unrolling - Question 2

 So done by the definition.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Loop Unrolling - Question 3

Cross-compiler ______

Detailed Solution for Test: Loop Unrolling - Question 3

A compiler for a high-level language that runs on one machine and produces code for a different machine is called a cross compiler.

Test: Loop Unrolling - Question 4

Cross compiler is used in Bootstrapping.

Detailed Solution for Test: Loop Unrolling - Question 4

Bootstrapping to a new platform. When a software is developed for a new platform, a cross compiler is used to compile necessary tools such as the OS and a native compiler.

Test: Loop Unrolling - Question 5

Is GCC a cross Compiler ?

Detailed Solution for Test: Loop Unrolling - Question 5

GCC, a free software collection of compilers, also can be used as cross compile. It supports many languages and platforms.

Test: Loop Unrolling - Question 6

The __________ is a technique for building cross compilers for other machines.

Detailed Solution for Test: Loop Unrolling - Question 6

The Canadian Cross is a technique for building cross compilers for other machines. Given three machines X, Y, and Z, one uses machine X (e.g. running Windows XP on an IA-32 processor) to build a cross compiler that runs on machine Y (e.g. running Mac OS X on an x86-64 processor) to create executables for machine Z.

Test: Loop Unrolling - Question 7

__________ was developed from the beginning as a cross compiler.

Detailed Solution for Test: Loop Unrolling - Question 7

Free Pascal was developed from the beginning as a cross compiler. The compiler executable (ppcXXX where XXX is target architecture) is capable of producing executables for all OS of the same architecture.

Test: Loop Unrolling - Question 8

What will be output of the following code?

#include<stdio.h>
intmain(){
printf("%d\t",sizeof(6.5));
printf("%d\t",sizeof(90000));
printf("%d",sizeof('A'));
return 0;
}

Detailed Solution for Test: Loop Unrolling - Question 8

 GCC compilers (32 bit compilers) size of:
double is 8 byte
long int is 8 byte
Character constant is 2 byte.

Test: Loop Unrolling - Question 9

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;
}

Detailed Solution for Test: Loop Unrolling - Question 9

 Consider on the expression:
x = 10 +- 10u + 10u +- 10;
10: It is signed integer constant.
10u: It is unsigned integer constant.
X: It is signed integer variable.
As we know operators enjoy higher precedence than binary operators. So
x = 10 + (-10u) + 10u + (-10);
= 10 + -10 + 10 + (-10);
= 0
So, Corresponding signed value of unsigned 10u is +10.

Test: Loop Unrolling - Question 10

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;
}

Detailed Solution for Test: Loop Unrolling - Question 10

In the following declaration
const int *p;
p can keep address of constant integer.

Test: Loop Unrolling - Question 11

Which of the following is the function of the semantic analysis phase of compilation proc 

Detailed Solution for Test: Loop Unrolling - Question 11
  • The semantic analysis phase of compilation is responsible for ensuring that the source code is semantically correct. This involves checking for type consistency, scope resolution, and type conversions.
  • Type conversion is a critical part of the semantic analysis phase as it ensures that operations are performed on compatible data types.
26 videos|66 docs|30 tests
Information about Test: Loop Unrolling Page
In this test you can find the Exam questions for Test: Loop Unrolling solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Loop Unrolling, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

26 videos|66 docs|30 tests
Download as PDF

Top Courses for Computer Science Engineering (CSE)