Explore topic-wise MCQs in Makefile Questions & Answers.

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

1.

If our makefile is named as “sanfoundry”, then which one of the following command will compile the code with this makefile

A. make -a sanfoundry
B. make -f sanfoundry
C. make sanfoudry
D. make
Answer» C. make sanfoudry
2.

The command “make sanfoundry” will

A. create the executable if sanfoundry.c file is present in the current directory
B. create the object file named as sanfoundry.o
C. give an error
D. none of the mentioned
Answer» B. create the object file named as sanfoundry.o