Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Device DriversLinux OS ManagementLinux MakefileLinux EnvironmentLinux OS Shell Interviews Quizzes

Accounts

AccountingAccounts PayableAuditJunior AccountantSenior Accountant

Analysis

Data AnalystFinancial AnalystGISGIS AnalysisStatistics

Banking

ICICI Bank LtdLoan OfficerRecovery OfficerTreasuryUnderwriter

Basic Job

BehavioralBusiness intelligenceFreshers GraduatePuzzlesTargeted Selection

Best Engineering

Automobile EngineeringChemical EngineeringCivil EngineeringElectrical EngineeringMechanical Engineering

Best Multimedia

3D AnimationCoreldrawDesign EngineerGraphics DesignerInterior Design

Community

Cable OperatorFirefighter SpecialistFuneral DirectorSpeech PathologistTranslator

New Artist

Art DirectorAstrologistInternational RelationshipSociologyVisual Arts

9th Class

9th Class Biology9th Class Chemistry9th Class Computer Studies9th Class Pakistan StudiesEnglish Grammar Section 9th Class

Accounting

Accounting ManagementBank Probationary Officer (PO)Financial Accounting Exam MCQsManagerial Accounting Exam MCQs

Civil Engineering

Building ConstructionRailwaysRCC Structures DesignSoil Mechanics and Foundation EngineeringSurveying

Engineering

Electrical EngineeringElectronic DevicesElectronics EngineeringEngineering MechanicsSoftware Engineering

Information Technology (IT)

Basics of ComputerComputer KnowledgeComputer OrganizationFundamentals Of ComputerWireless Communication

Soft Skills Quizzes MCQs

Communication Skills Exam MCQsCorporate Communication Exam MCQsLeadership Skills Exam MCQsNegotiation Skills Exam MCQsTime Management Exam MCQs

Linux OS Interviews

Awk Programming IQBash Arithmetic Expressions IQDevice Drivers IQGCC Compiler IQLinux Administrator IQLinux Commands IQLinux Debugging IQLinux Environment IQLinux General IQLinux IPC IQLinux Makefile IQLinux OS IQLinux OS Editors IQLinux OS Management IQLinux OS Shell IQLinux Proc Filesystem IQLinux Search Pattern IQLinux Shared & Static Libraries IQLinux Socket Programming IQLinux Startup and Shutdown IQLinux Sysfs IQLinux Systems IQLinux Threads IQLinux Ubuntu IQSignal Handling IQSystem Calls IQ

Role-specific Linux Makefile Interview Questions & Answers:

Download Interview PDF

1. If make command is executed as "make -j 2?, then:
a) two jobs will run simultaneously
b) only two will be executed
c) it will give an error
d) none of the mentioned?

a) two jobs will run simultaneously

2. What is makefile?
a) makefile describes to the make command that how to compile the program
b) makefile contains various statements related with the compilation of target
c) both (a) and (b)
d) none of the mentioned?

a) makefile describes to the make command that how to compile the program

3. Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?
a) chmod 046 textfile
b) chmod 640 textfile
c) chmod 310 textfile
d) chmod rw r nil textfile?

b) chmod 640 textfile

4. Binary or executable files are:
a) regular files
b) device files
c) special files
d) directory files?

a) Regular files

5. Which of the following umask settings doesn't allow execute permission to be set by default on directory files?
a) 222
b) 111
c) 000
d) 444

c) 000

6. Which of the following umask settings allow execute permission to be set by default on regular files?
a) 222
b) 111
c) 000
d) None of the given choices

d) None of the given choices

7. The command chmod 4777 a.out:
a) will set the suid bit of a.out
b) will set the suid bit of a.out only if the command is issued by root
c) is not a valid command
d) will set the sticky bit of a.out

a) will set the suid bit of a.out

8. What does chmod +t do?
a) wrong syntax
b) set effective userid for filename
c) set effective groupid for filename
d) set the sticky bit

d) set the sticky bit

9. A user executes the following command successfully:
$ chmod +x file1.txt
Which of the following is true of the output of this command?
a) The command results in adding execute permission to the user who ran this command
b) The command results in adding execute permission for the owner of the file
c) The command results in an error since the file is not an executable file
d) The command results in adding execute permission for all users (i.e., user,group & others)

d) The command results in adding execute permission for all users (i.e., user,group & others)

10. If you are a root user, how can you grand execute permission only for the owner of the file project1?
a. chmod +x project1
b. chmod u+x project1
c. chmod a+x project1
d. chmod U+X project1

b. chmod u+x project1

Download Interview PDF

11. Which command is used to assign read-write permission to the owner?
a) chmod a+r file
b) chmod o+r file
c) chmod u=rw file
d) chmod og-r file

c) chmod u=rw file

12. Which make command option ignores all errors in commands executed to remark files?
a) -i
b) -j
c) -k
d) -l

a) -i

13. Given the command:
$ chmod o-w datafile

a) sets write permission to everyone for datafile
b) sets write permission to others for datafile
c) clears write permission to everyone for datafile
d) clears write permission to others for datafile

d) clears write permission to others for datafile

14. With a umask value of 112, what is the default permission assigned to newly created regular file?
a) -x-x-wx
b) -rw-rw-r-
c) -r-xr-x-r-
d) -rw-rw-r-

d) -rw-rw-r-

15. The permission -rwxr-xr-t represented in octal expression will be:
a) 0777
b) 1755
c) 1754
d) 2754

b) 1755

16. As we type "make" command on the terminal:
a) make reads the makefile in the current directory
b) make reads the makefile in the parent directory
c) make reads the makefile in the predefined environment variable
d) none of the mentioned

a) make reads the makefile in the current directory

17. 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:
a) -q
b) -r
c) -s
d) -t

a) -q

18. Which option of make command print the commands that would be executed, but do not execute them?
a) -m
b) -n
c) -o
c) -p

b) -n

19. If our makefile is named as "google", then which one of the following command will compile the code with this makefile:
a) make -a google
b) make -f google
c) make sanfoudry
d) make

b) make -f google

20. The command "make google" will:
a) create the executable if google.c file is present in the current directory
b) create the object file named as google.o
c) give an error
d) none of the mentioned

a) create the executable if google.c file is present in the current directory

21. The makefile starts executing from:
a) first target
b) first target whose name starts with "."
c) first target whose name does not starts with "."
d) none of the mentioned

c) first target whose name does not starts with "."

22. What is phony target in the makefile?
a) the target which is not a filename
b) the target which is a filename
c) the target which does not used for compilation
d) none of the mentioned

a) the target which is not a filename

23. Which one of the following provides all dependencies in the makefile?
a) $^
b) $*
c) $:
d) none of the mentioned

a) $^

24. 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) both (a) and (b)
d) none of the mentioned

c) both (a) and (b)

Download Interview PDF

25. Which one of the following is not a valid makefile directive?
a) if
b) elif
c) endif
d) none of the mentioned

d) none of the mentioned

26. In the make-file the target and dependencies are separated by the character:
a) -
b) :
c) /
d) none of the mentioned

b) :

27. Which one of the following is used for the target file-name in the make-file?
a) $@
b) $*
c) $?
d) none of the mentioned

a) $@

28. Macros for the make-file can be defined in:
a) makefile
b) command line
c) both (a) and (b)
d) none of the mentioned

c) both (a) and (b)

29. 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

a) VPATH

30. Running "make" command without the arguments starts the target ____ in the makefile.
a) ".phony"
b) "clean"
c) first
d) none of the mentioned

c) first

31. In make-file the comment begins with the character:
a) $
b) #
c) /*
d) none of the mentioned

b) #

32. If the umask value is 0002. What will be the permissions of new directory:
a) 777
b) 775
c) 774
d) 664

b) 775

33. If we want to execute the make-file by just giving the "make" command, make-file should be named as:
a) Make-file
b) makefile
c) MAKEFILE
d) none of the mentioned

a) Makefile

34. The permission -rwxr-sr- represented in octal expression will be:
a) 0777
b) 2766
c) 2744
d) 2754

d) 2754

35. A user does a chmod operation on a file. Which of the following is true?
a) The last accessed time of the file is updated
b) The last modification time of the file is updated
c) The last change time of the file is updated
d) None of the above

c) The last change time of the file is updated



SHARE




FORUM
PRIVACY
TERMS & CONDITIONS
FEED BACK

Submit Your Feedback:


×

Thank You For Your Feedback!

Your message has been sent successfully.

Disclaimer
Interview Questions Answers .ORG is responsive and optimized web portal for individuals to get preparation for their job interviews, learning and training. Content at Interview Questions Answers .ORG might be simplified to improve our users experience. We constantly review our content to avoid errors and copyright violations, but we cannot warrant full correctness of all the content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.

Interview Questions Answers .ORG
Face Book Twitter Linkedin