GCC Compiler Interview Preparation Guide
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 hunting50 Linux GCC Compiler Questions and Answers:
1 :: Which option of gcc looks in the provided directory for library files?
a) -l
b) -L
c) -link
d) none of the mentioned
b) -L
2 :: Which option of gcc links with a library file?
a) -l
b) -L
c) -link
d) none of the mentioned
a) -l
5 :: The command "as -o google.o google.s" will:
a) generate object file google.o
b) provide an error if google.s exists
c) both (a) and (b)
d) none of the mentioned
a) generate object file google.o
7 :: The -H option of gcc:
a) prints the name of each header file used
b) is used to include header file
c) ignores the header file which are not required by source code
d) none of the mentioned
a) prints the name of each header file used
8 :: The -fPIC option of gcc:
a) generates the position independent code of shared libraries
b) opens the source file in readonly mode
c) both (a) and (b)
d) none of the mentioned
a) generates the position independent code of shared libraries