Top 550+ Solved Operating System Architecture MCQ Questions Answer

From 136 to 150 of 627

Q. Effective group id can be set using following permission

a. 777

b. 2666

c. 4744

d. 1711

  • b. 2666

Q. Sticky bit can be set using following permission

a. 777

b. 2666

c. 4744

d. 1711

  • d. 1711

Q. The permission -rwxr-sr– represented in octal expression will be

a. 777

b. 2766

c. 2744

d. 2754

  • d. 2754

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

  • b. the rm command prompts for a confirmation, the command is successful upon confirmation

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

  • c. the last change time of the file is updated

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

  • b. chmod –r +x/home/user1/direct

Q. The permission -rwxr-xr-t represented in octal expression will be

a. 777

b. 1755

c. 1754

d. 2754

  • b. 1755

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–

  • 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

  • c. chmod u=rw 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

  • 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

  • b. chmod 640 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

  • b. 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)

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

Get All Updates & News