GCC Compiler Interview Questions And Answers
Download Linux GCC Compiler Interview Questions and Answers PDF
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. Don't miss out on our free PDF download, containing all 50 questions to help you succeed in your Linux GCC Compiler interview. It's an invaluable tool for reinforcing your knowledge and building confidence.
50 Linux GCC Compiler Questions and Answers:
Linux GCC Compiler Job Interview Questions Table of Contents:
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
Read More2 :: Which option of gcc links with a library file?
a) -l
b) -L
c) -link
d) none of the mentioned
a) -l
Read More3 :: Which option of gcc enables compiler's all warning messages?
a) -Wall
b) -War
c) -Warn
d) none of the mentioned
a) -Wall
Read More4 :: Which option of gcc adds include directory of header files?
a) -i
b) -I
c) -e
d) -E
b) -I
Read More5 :: 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
Read More6 :: 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
Read More7 :: 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
Read More8 :: 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
Read More9 :: 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
Read More10 :: 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
Read More11 :: The command line options of gcc can also be read from a file with:
a) @
b) $
c) #
d) none of the mentioned
c) #
Read More12 :: The gcc option -Wunused warns when a _____ variable is unused aside from its declaration.
a) variable
b) function
c) macro
d) none of the mentioned
a) variable
Read More13 :: The command "gcc -save-temps google.c" will generate:
a) google.i
b) google.s
c) google.o
d) all of the mentioned
d) all of the mentioned
Read More14 :: Which one of the following is not true?
a) source codes can not be compiled with static libraries in gcc
b) -O is used for optimization in gcc
c) both (a) and (b)
d) none of the mentioned
a) source codes can not be compiled with static libraries in gcc
Read More15 :: Which gcc option reports the cpu time taken by each sub-process in the compilation sequence?
a) -time
b) -cpu
c) -process
d) none of the mentioned
a) -time
Read More16 :: Which gcc option undefined a pre-processor macro?
a) -U
b) -u
c) -undefine
d) none of the mentioned
a) -U
Read More17 :: The -Wextra option of gcc:
a) is same as -w option
b) does not exist
c) enables extra warning messages
d) none of the mentioned
c) enables extra warning messages
Read More18 :: Which option of gcc makes the compiler print out each function name as it is compiled, and print some statistics about each pass when it finishes?
a) -p
b) -P
c) -q
d) -Q
d) -Q
Read More19 :: The command "cpp google.c > google.i" will:
a) create the expanded source code file google.i for the source code file google.c
b) append the content of the google.c into google.i
c) give an error
d) none of the mentioned
a) create the expanded source code file google.i for the source code file google.c
Read More20 :: Which one of the following command creates the executable file a.out?
a) gcc -o google.c
b) gcc google.c
c) gcc -o a.out
d) gcc a.out
b) gcc google.c
Read More21 :: Which gcc option includes debugging info in the generated object code?
a) -g
b) -c
c) -p
d) none of the mentioned
a) -g
Read More22 :: If we compile the google.c file with the command "gcc -o google google.c", then the executable file will be:
a) a.out
b) google
c) google.out
d) none of the mentioned
b) google
Read More23 :: If we compile the google.c file with the command "gcc -c google.c", then the output file will be:
a) google.o
b) google.s
c) google.i
d) none of the mentioned
a) google.o
Read More24 :: The -v option of gcc:
a) print the commands executed to run the stages of compilation
b) version of the gcc compiler
c) both (a) and (b)
d) none of the mentioned
a) print the commands executed to run the stages of compilation
Read More25 :: The option -fsyntax-only of gcc:
a) checks the code for syntax error
b) checks the code for fatal error
c) both (a) and (b)
d) none of the mentioned
a) checks the code for syntax error
Read More