1. If we want to execute the makefile by just giving the “make” command, makefile should be named as
a) Makefile
b) makefile
c) MAKEFILE
d) None of the mentioned
View Answer
Explanation: None.
2. Running “make” command without the arguments starts the target ____ in the makefile.
a) “.phony”
b) “clean”
c) first
d) none of the mentioned
View Answer
Explanation: None.
3. In makefile the comment begins with the character
a) $
b) #
c) /*
d) none of the mentioned
View Answer
Explanation: None.
4. Which one of the following is used for the target filename in the makefile?
a) $@
b) $*
c) $?
d) none of the mentioned
View Answer
Explanation: None.
5. Which one of the following can be used to specify the directory to search the dependencies and target files?
a) VPATH
b) CPATH
c) FPATH
d) None of the mentioned
View Answer
Explanation: None.
6. In the makefile the target and dependencies are separated by the character
a) –
b) :
c) /
d) none of the mentioned
View Answer
Explanation: None.
7. Macros for the makefile can be defined in
a) makefile
b) command line
c) both makefile and command line
d) none of the mentioned
View Answer
Explanation: None.
8. Which one of the following is not a valid makefile directive?
a) if
b) elif
c) endif
d) none of the mentioned
View Answer
Explanation: None.
9. When a target of makefile fails to execute
a) make does not executes any other target dependent on it
b) it returns a status
c) make does not executes any other target dependent on it & it returns a status
d) none of the mentioned
View Answer
Explanation: None.
10. Which one of the following provides all dependencies in the makefile?
a) $^
b) $*
c) $:
d) none of the mentioned
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.
- Apply for Programming Internship
- Practice Programming MCQs
- Check Linux Books
- Check Information Technology Books