Cross Compiler
1.

A system program that combines separately compiled modules of a program into a form suitable for execution is called ___________

A.  

Assembler

B.  

Linking loader

C.  

Cross compiler
 

D.  

None of the mentioned

2.

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

A.  

Optimizing compiler

B.  

One pass compiler

C.  

Cross compiler

D.  

Multipass compiler

3.

Cross-compiler is a compiler __________

A.  

Which is written in a different language from the source language?

B.  

That generates object code for the machine it’s running on.

C.  

Which is written in the same language as the source language?

D.  

That runs on one machine but produces object code for another machine

4.

Cross compiler is used in Bootstrapping.

A.  

True

B.  

False

5.

Is GCC a cross Complier.

A.  

Yes

B.  

No

6.

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

A.  

Brazilian Cross

B.  

Canadian Cross

C.  

Mexican Cross

D.  

X-cross

7.

__________ was developed from the beginning as a cross compiler.

A.  

Free Pascal

B.  

GCC

C.  

Pascal

D.  

None of the mentioned

8.

If we compile the sam.c file with the command “gcc -o sam sam.c”, then the executable file will be?

A.  

a.out

B.  

sam

C.  

sam.out

D.  

None of the mentioned

9.

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

8 4 2

B.  

8 4 2

C.  

8 4 4

D.  

8 4 3

10.

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

0 0

B.  

65536 -10

C.  

0 65536

D.  

Compilation error