Top 550+ Solved Operating System Architecture MCQ Questions Answer
Q. f user tries to remove (rm) a readonly file (444 permission), what will happen?
a. the file is removed successfully (and silently)
b. the rm command prompts for a confirmation, the command is successful upon confirmation
c. he rm command prompts for a confirmation, however the operation fails because of insufficient permissions
d. the rm command fails because of insufficient permissions
Q. 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
Q. If the umask value is 0002. what will be the permissions of new directory
a. 777
b. 775
c. 774
d. 664
Q. What is the command to set the execute permissions to all the files and subdirectories within the directory/home/user1/direct
a. chmod –r +x/home/user1/direct
b. chmod –r +x/home/user1/direct
c. chmod –f –r +x/home/user1/direct
d. chmod –f +x/home/user1/dire ct
Q. 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–
Q. 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
Q. 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. lears write permission to others for datafile
Q. 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
Q. 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
Q. A user executes the following command successfully:$ chmod +x file1.txt Which of the following is true of the output of this command?
a. he 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)