Home > Linux > Quizzes > Linux Basics Practice Test: Makefile
Linux Basics Practice Test: Makefile
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 50% Most missed: “Which one of the following is not a valid makefile directive?”
A Makefile is a text file that contains rules that tell Linux's make utility how to build an application. The rules are made up of three parts: Target: The file or thing that must be made Prerequisites: The files that must exist before the target can be created Commands: The shell commands that will create the target from the prerequisites  The basic syntax for a Makefile is: target, dependencies, and commands.  The dependency line in a Makefile has two parts: Target files: The first part of the dependency line, before the colon Source files: The second part of the dependency line,... Show more
Linux Basics Practice Test: Makefile
Time left 00:00
19 Questions

1. Running “make” command without the arguments starts the target ____ in the makefile.
2. If our makefile is named as “fatskills”, then which one of the following command will compile the code with this makefile
3. Which make command option ignores all errors in commands executed to remark files?
4. Which option of make command print the commands that would be executed, but do not execute them?
5. What is makefile?
6. As we type “make” command on the terminal
7. Which one of the following provides all dependencies in the makefile?
8. If we want to execute the makefile by just giving the “make” command, makefile should be named as
9. When a target of makefile fails to execute
10. Which one of the following is not a valid makefile directive?
11. The command “make fatskills” will
12. Which one of the following can be used to specify the directory to search the dependencies and target files?
13. In makefile the comment begins with the character
14. If we want to get the exit status that specified targets are up to date or not, we have to execute the make command with option
15. The makefile starts executing from
16. What is phony target in the makefile?
17. If make command is executed as “make -j 2”, then
18. Macros for the makefile can be defined in
19. In the makefile the target and dependencies are separated by the character