On This Page
This set of Operating System Architecture Multiple Choice Questions & Answers (MCQs) focuses on Operating System Architecture Set 15
Q1 | A user executes the following command successfully:$ chmod +x file1.txt Which of the following is true of the output of this command?
- he command results in adding execute permission to the user who ran this command
- the command results in adding execute permission for the owner of the file
- the command results in an error since the file is not an executable file
- the command results in adding execute permission for all users (i.e., user,group & others)
Q2 | What does chmod +t do?
- wrong syntax
- set effective userid for filename
- set effective groupid for filename
- set the sticky bit
Q3 | Which of the following umask settings allow execute permission to be set by default on regular files
- 222
- 111
- none of the given choices
Q4 | The command chmod 4777 a.out
- will set the suid bit of a.out
- will set the suid bit of a.out only if the command is issued by root
- is not a valid command
- will set the sticky bit of a.out
Q5 | If 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
- the file will be moved to/lost+found directory and can be recovered only by administrator’s
Q6 | When mv f1 f2 is executed which file’s inode is freed?
- f1
- f2
- new inode will be used
- new inode will be used
Q7 | . 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 alone can execute
- every one can read and write and execute
Q8 | When you use the ln command, which of the following occurs?
- a file is created that points to an existing file
- a file is created that is a copy of an existing file
- a file is moved from one location to another
- a file is renamed
Q9 | srwxr-xrw- is a
- internet socket file
- unix domain socket file
- symbolic link
- shared file
Q10 | Binary or executable files are:
- regular files
- device files
- special files
- directory files
Q11 | The directory file contains
- file names & file sizes
- file names & inode numbers
- file names & address
- file names & permissions
Q12 | Which directory contain device special files?
- /etc
- /etc/dev
- /root/bin
- /dev
Q13 | Which of the following is not a valid file type on Linux
- socket
- softlink
- inode
- fifo
Q14 | Which of the following is not correct statement regarding file types?
- hard links share same inode number
- soft links cannot be created across partitions
- socket files are unix domain sockets
- character file is a special file
Q15 | Which are the two types of device files?
- character & block
- character & socket
- block & fifo
- input & output
Q16 | Which is an example for character special file?
- hard disk
- cd-rom
- terminal
- memory
Q17 | Which is an example for block special file?
- virtual terminal
- cd-rom
- terminal
- serial modem
Q18 | All device files are stored in which directory?
- /etc
- /bin
- /dev
- usr
Q19 | Which command is used to check filesystem usage in a system?
- mount
- df
- du
- dd
Q20 | Which among the following allows fast file system recovery?
- ext2
- journaling
- caching
- sysfs
Q21 | Which filesystem can be used to change certain kernel parameters at runtime using sysctl command?
- ext3
- sysfs
- ext4
- procfs
Q22 | Filesystem for CDROM is:
- ext3
- sysfs
- ext4
- procfs
Q23 | Which file system has journaling capability?
- ext2
- ext4
- isofs
- procfs
Q24 | Which file contains the filesystems to be automatically mounted during boot?
- /etc/mount
- /etc/fstab
- /etc/inittab
- /etc/boot