Home > Linux > Quizzes > Linux Basics Practice Test: GCC Compiler (Options & Stages of Compilation)
Linux Basics Practice Test: GCC Compiler (Options & Stages of Compilation)
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Which GCC option undefines a preprocessor macro?”
The GNU Compiler Collection (GCC) is a free, open-source compiler system that supports many programming languages, including C, C++, Fortran, and Java. It comes standard with most versions of Linux and is the official partner of GNU OS. GCC is a key component of the GNU toolchain and the standard compiler for most projects related to GNU and Linux, including the Linux kernel.  GCC is an essential tool for developers as it translates source code into an executable program that the machine can understand. It also provides options to help debug code, such as compiling code with debugging... Show more
Linux Basics Practice Test: GCC Compiler (Options & Stages of Compilation)
Time left 00:00
25 Questions

1. Pipes are used rather than temporary files for communication between the various stages of compilation in GCC when
2. The macros specifies in source code are expanded by
3. What is the job of -Werror option in GCC?
4. The assmebly code generated depends upon the
5. The preprocessor removes the _______ from the source code.
6. The -fPIC option of GCC
7. Which option of the GCC is used to warn is padding is included in structure?
8. The preprocessor creates the file with extension
9. The COFF stands for
10. The compiler converts
11. The a.out file is in the
12. The lines in our code that begin with the “#” character are
13. In the preprocessing stage of compilation
14. The GCC option -Wunused warns when a _____ variable is unused aside from its declaration.
15. If we compile the sanfoudry.c file with the command “gcc -o fatskills fatskills.c”, then the executable file will be
16. What is the role of linker in the compilation process?
17. If fatskills.c is compiled with GCC, then the fatskills.s file will contain the
18. If we compile the fatskills.c file with the command “gcc -c fatskills.c”, then the output file will be
19. The -v option of GCC
20. If we do not specify the executable file name at the compilation time in GCC, then in linux the compiler creates executable named as
21. The assembly code is converted into the machine code by
22. The correct sequence of GCC compilation process is
23. The -H option of GCC
24. Preprocessed files are given the file extension _____ for c++ programs.
25. Which one of the following command creates the executable file a.out?