On This Page
This set of Operating System Architecture Multiple Choice Questions & Answers (MCQs) focuses on Operating System Architecture Set 14
Q1 | Which option of rmdir command will remove all directories a, b, c if path is a/b/c
- –b
- –o
- –p
- –t
Q2 | Which represents the user home directory
- /
- .
- ..
- ~
Q3 | f a file is removed in Unix using ‘rm’ then
- the file can be recovered by a normal user
- the file cannot be recovered by a user
- the file can be fully recovered provided the sytem is not rebooted
- he file will be moved to/lost+found directory and can be recovered only by administrator’s intervention
Q4 | Executing the ‘cd ..’ command when at the root level causes
- error message indicating the user can’t access beyond the root level
- behavior is unix- flavor dependent
- results in changing to the ‘home’ directory
- nothing happens
Q5 | How do you rename file “new” to file “old”?
- mv new old
- move new old
- cp new old
- rn new old
Q6 | What command is used to copy files and directories?
- copy
- cp
- rn
- cpy
Q7 | When mv f1 f2 is executed which file’s inode is freed?
- f1
- f2
- new inode will be used
- mplementation dependent
Q8 | Any file’s attribute information is stored in which structure on the disk
- inode
- data blocks
- file blocks
- directory file
Q9 | The file permission 764 means
- every one can read, group can execute only and the owner can read and write
- every one can read and write, but owner alone can execute
- every one can read, group including owner can write, owner
- every one can read and write and execute
Q10 | The permission -rwxr–r– represented in octal expression will be
- 777
- 666
- 744
- 711
Q11 | Effective user id can be set using following permission
- 777
- 2666
- 4744
- 1711
Q12 | Effective group id can be set using following permission
- 777
- 2666
- 4744
- 1711
Q13 | Sticky bit can be set using following permission
- 777
- 2666
- 4744
- 1711
Q14 | The permission -rwSr–r– represented in octal expression will be
- 777
- 2666
- 4744
- 4644
Q15 | The permission -rwxr-sr– represented in octal expression will be
- 777
- 2766
- 2744
- 2754
Q16 | f user tries to remove (rm) a readonly file (444 permission), what will happen?
- the file is removed successfully (and silently)
- the rm command prompts for a confirmation, the command is successful upon confirmation
- he rm command prompts for a confirmation, however the operation fails because of insufficient permissions
- the rm command fails because of insufficient permissions
Q17 | A user does a chmod operation on a file. Which of the following is true?
- the last accessed time of the file is updated
- the last modification time of the file is updated
- the last change time of the file is updated
- none of the above
Q18 | If the umask value is 0002. what will be the permissions of new directory
- 777
- 775
- 774
- 664
Q19 | What is the command to set the execute permissions to all the files and subdirectories within the directory/home/user1/direct
- chmod –r +x/home/user1/direct
- chmod –r +x/home/user1/direct
- chmod –f –r +x/home/user1/direct
- chmod –f +x/home/user1/dire ct
Q20 | The permission -rwxr-xr-t represented in octal expression will be
- 777
- 1755
- 1754
- 2754
Q21 | With a umask value of 112, what is the default permission assigned to newly created regular file?
- —x–x-wx
- -rw-rw-r–
- -r-xr-x-r–
- -rw-rw-r–
Q22 | Which command is used to assign read- write permission to the owner?
- chmod a+r file
- chmod o+r file
- chmod u=rw file
- chmod og-r file
Q23 | Given the command $ chmod o-w datafile
- sets write permission to everyone for datafile
- sets write permission to others for datafile
- clears write permission to everyone for datafile
- lears write permission to others for datafile
Q24 | 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?
- chmod 046 textfile
- chmod 640 textfile
- chmod 310 textfile
- chmod rw r nil textfile
Q25 | If you are a root user, how can you grand execute permission only for the owner of the file project1?
- chmod +x project1
- chmod u+x project1
- chmod a+x project1
- chmod u+x project1