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
View Answer
Explanation: None.
2. The preprocessor removes the _______ from the source code.
a) comments
b) header files
c) both comments and header files
d) none of the mentioned
View Answer
Explanation: None.
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
View Answer
Explanation: None.
4. The assembly code is converted into the machine code by
a) compiler
b) assembler
c) linker
d) none of the mentioned
View Answer
Explanation: None.
5. What is the role of linker in the compilation process?
a) linker links the object code with the library code
b) linker converts machine code into executable machine code
c) linker generates an executable file
d) all of the mentioned
View Answer
Explanation: None.
6. If sanfoundry.c is compiled with GCC, then the sanfoundry.s file will contain the
a) assembly code
b) machine code
c) preprocessed code
d) expanded source code
View Answer
Explanation: None.
7. The object file contains the
a) assembly code
b) machine code
c) modified source code
d) none of the mentioned
View Answer
Explanation: None.
8. If we do not specify the executable file name at the compilation time in GCC, then in linux the compiler creates executable named as
a) a.out
b) a.exe
c) x.out
d) x.exe
View Answer
Explanation: None.
9. The macros specifies in source code are expanded by
a) preprocessor
b) assembler
c) compiler
d) linker
View Answer
Explanation: None.
10. The preprocessor creates the file with extension
a) .a
b) .i
c) .s
d) .o
View Answer
Explanation: None.
Sanfoundry Global Education & Learning Series – Linux Administration & Programming.
Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.
To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.
- Check Information Technology Books
- Check Linux Books
- Apply for Programming Internship
- Practice Programming MCQs