GCC Compiler Interview Questions & Answers Download PDF
GCC Compiler frequently Asked Questions in various Linux GCC Compiler job Interviews by interviewer. The set of questions here ensures that you offer a perfect answer posed to you. So get preparation for your new job hunting
50 Linux GCC Compiler Questions and Answers:
Linux GCC Compiler Interview Questions Table of Contents:
![Linux GCC Compiler Job Interview Questions & Answers Linux GCC Compiler Job Interview Questions and Answers](https://globalguideline.com/public/images/interview/24.png)
1 :: The correct sequence of GCC compilation process is:
a) preprocessing -> compilation -> assemble -> linking
b) assemble -> preprocessing -> compilation -> linking
c) preprocessing -> assemble -> compilation -> linking
d) none of the mentioned
a) preprocessing -> compilation -> assemble -> linking
3 :: The compiler converts:
a) assembly code into machine code
b) preprocessed source code into assembly code
c) machine code into assembly code
d) none of the mentioned
b) preprocessed source code into assembly code
4 :: The a.out file is in the:
a) ELF format
b) EXE format
c) both (a) and (b)
d) none of the mentioned
a) ELF format
6 :: The macros specifies in source code are expanded by:
a) pre-processor
b) assembler
c) compiler
d) linker
a) preprocessor
8 :: The object file contains the:
a) assembly code
b) machine code
c) modified source code
d) none of the mentioned
b) machine code
12 :: Which one of the following command can be used to provide executable permissions for a file?
a) chmod +x
b) chmod 777
c) both (a) and (b)
d) none of the mentioned
c) both (a) and (b)
13 :: Command line parameters are passed by the:
a) preprocessor
b) assembler
c) compiler
d) linker
d) linker
14 :: Which compilation step makes sure that all the undefined symbols in the code are resolved?
a) linking
b) compiling
c) preporcessing
d) none of the mentioned
a) linking
Explanation:
An undefined symbol is one for which there is no definition available.
Explanation:
An undefined symbol is one for which there is no definition available.
15 :: Which one of the following is not true?
a) we need to manually go through all intermediate stages to generate an executable in gcc
b) gcc compilation process always contains 4 stages
c) both (a) and (b)
d) none of the mentioned
a) we need to manually go through all intermediate stages to generate an executable in gcc
16 :: The COFF stands for:
a) common object file format
b) combined operation for file formats
c) combined object file format
d) none of the mentioned
a) common object file format
17 :: The lines in our code that begin with the "#" character are:
a) pre-processor directives
b) macros
c) header files
d) none of the mentioned
a) preprocessor directives
22 :: The assembly code generated depends upon the:
a) processor architecture
b) RAM size
c) both (a) and (b)
d) none of the mentioned
c) both (a) and (b)
24 :: Which gcc option stops compilation process after preprocessing stage?
a) -e
b) -f
c) -E
d) -F
c) -E
25 :: Pipes are used rather than temporary files for communication between the various stages of compilation in gcc when:
a) -pipe option is used
b) -temp option is used
c) -disable -temp option is used
d) none of the mentioned
a) -pipe option is used
![Linux GCC Compiler Interview Questions & Answers Linux GCC Compiler Interview Questions and Answers](https://globalguideline.com/public/images/interview/18.png)