Explore topic-wise MCQs in GCC Compiler Questions & Answers.

This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your GCC Compiler Questions & Answers knowledge and support exam preparation. Choose a topic below to get started.

1.

The command “gcc -S sanfoundry.c” will

A. stop compilation process after the generation of assembly code file
B. generate sanfoundry.s file
C. stop compilation process after the generation of assembly code file & generate sanfoundry.s file
D. none of the mentioned
Answer» D. none of the mentioned
2.

If we compile the sanfoundry.c file with the command “gcc -c sanfoundry.c”, then the output file will be

A. sanfoundry.o
B. sanfoundry.s
C. sanfoundry.i
D. none of the mentioned
Answer» B. sanfoundry.s
3.

If we compile the sanfoudry.c file with the command “gcc -o sanfoundry sanfoundry.c”, then the executable file will be

A. a.out
B. sanfoundry
C. sanfoundry.out
D. none of the mentioned
Answer» C. sanfoundry.out