Top 550+ Solved Operating System Architecture MCQ Questions Answer
Q. Executing cat /etc/password > /dev/sda as superuser will
a. write data into a regular file called/dev/sda
b. write data to the physical device sda
c. it
d. none of the above
Q. rom where would the read statement read if the following statements were executed? exec < file1 exec < file2 exec < file3 read line
a. it would read all the files
b. it would not read any files
c. t would read all the files in reverse order
d. it would read only file3
Q. Why is man command used
a. to shut down
b. search all files
c. deleting files
d. getting help command on format
Q. Which of the following features of unix may be used for interprocess communication
a. signals
b. pipes
c. semaphores
d. all of these
Q. The command echo welcome >/dev/tty
a. echoes welcome in all the terminals that are switched on
b. echoes welcome in all the " that are logged on
c. echoes welcome only in the terminal in which it is run
d. both (a) and ( c)
Q. /dev/null
a. is a file
b. has write permission for all
c. is the unix builtin dustbin
d. all of these
Q. The advantage of binary files over text files is that
a. it is compact
b. it can be accessed faster
c. they are more reliable
d. all of these
Q. The permission bits of a filenoname,can be set to - rws - - * - - * by the command
a. chmod 711 noname
b. chmod go -rw noname
c. chmod 2711 noname
d. none of above
Q. /bin/passwork has the user execution permission set to 's' because
a. this facility assigns to the user, permissions of the program owner temporarily
b. it should allow users who don\t have write permission to/etc/passwd to write to it
c. /etc/passwd is write protected
d. all of these
Q. If are does not want anyone else to read or write to a file named datfile,except through a program in a file filex,then he may use
a. chmod u+s filex; chmod go -rw datfile
b. chmod 4711 filex; chmod go -rw datfile
c. chmod 4711 datfile; chmod go - rw filex
d. both a & b
Q. Writing a c program that accepts input from keyboard,rather than from a file is advantageous because
a. keyboard is a file that is already open
b. it can be used in a pipe,if it writes to stdout
c. both a & b
d. non of above
Q. Consider the following program main ( ){ printf ("Aayush won a football match on\n"); system ("date");printf("In Berlin"); } if a.out is the executable code corresponding to the above source code,then the command a.out >out f
a. redirects the output of date to a file out f
b. displays the output of date on the screen
c. prints everything on screen
d. prints the two messages on the screen
Q. The Hardware at centre of UNIX system provides………….
a. basic services
b. operating system with basic services
c. kernel service
d. none of these