JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
GNU Compiler Collection interview questions
GNU Compiler Collection interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 5
1. Which one of the following command creates the executable file a.out?
A. gcc -o sanfoundry.c
B. gcc sanfoundry.c
C. gcc -o a.out
D. gcc a.out
Show Correct Answer
Correct Answer is :
gcc sanfoundry.c
2. 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
Show Correct Answer
Correct Answer is :
sanfoundry
3. 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
Show Correct Answer
Correct Answer is :
sanfoundry.o
4. Which gcc option includes debugging info in the generated object code?
A. -g
B. -c
C. -p
D. none of the mentioned
Show Correct Answer
Correct Answer is :
-g
5. 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
Show Correct Answer
Correct Answer is :
stop compilation process after the generation of assembly code file & generate sanfoundry.s file
Similar Interview Questions
Search for latest jobs
Find Jobs