GCC Compiler Interview Preparation Guide

Elevate your Linux GCC Compiler interview readiness with our detailed compilation of 50 questions. Each question is designed to test and expand your Linux GCC Compiler expertise. Suitable for all experience levels, these questions will help you prepare thoroughly. Dont miss out on our free PDF download, containing all 50 questions to help you succeed in your Linux GCC Compiler interview. Its an invaluable tool for reinforcing your knowledge and building confidence.
Tweet Share WhatsApp

50 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
Download PDFRead All Linux GCC Compiler Questions

2 :: Which option of gcc links with a library file?
a) -l
b) -L
c) -link
d) none of the mentioned

a) -l

3 :: Which option of gcc enables compiler's all warning messages?
a) -Wall
b) -War
c) -Warn
d) none of the mentioned

a) -Wall

4 :: Which option of gcc adds include directory of header files?
a) -i
b) -I
c) -e
d) -E

b) -I

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
Download PDFRead All Linux GCC Compiler Questions

6 :: The -shared option of gcc generates shared ______ for shared library.
a) object file
b) preprocessed file
c) source file
d) none of the mentioned

a) object file

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

9 :: What is the job of -Werror option in gcc?
a) it avoids all the errors present in the source code
b) it makes all warnings into errors
c) it stores all the errors of source code into a seperate file
d) none of the mentioned

b) it makes all warnings into errors

10 :: Which option of the gcc is used to warn is padding is included in structure?
a) -Wpadded
b) -Wpad
c) -Wpadding
d) none of the mentioned

a) -Wpadded
Download PDFRead All Linux GCC Compiler Questions