Top 550+ Solved Operating System Architecture MCQ Questions Answer
Q. Files that store data in the same format as used in program are called
a. binary files
b. source file
c. text file
d. core
Q. To allow only one user to work with a particular file at a particular time, one has to use
a. semaphore
b. critical region
c. locking
d. dedicated mode
Q. Which of the following remarks about realloc are true?
a. it allocates memory of required size that need not be contiguous
b. it may shift the existing block
c. it can work only with an existing block of memory
d. both (b) and ©
Q. The differences between malloc( ) and calloc() are:
a. malloc is used for dynamic allocation of memory, while cal:1c can\t be used for that purpose
b. malloc needs only one argument. while cal loc needs two.
c. unlike malloc, calloc allocates memory and initializes it to 0.
d. both (b) and ©
Q. The file that stores an integer as a sequence of characters is a
a. text file
b. data file
c. binary file
d. core file
Q. If cat x. prints garbage. then x is probably a
a. data file
b. binary file
c. text file
d. source file
Q. Which of the following file names can be found in more than one directoy?
a. passwd
b. bin
c. date
d. both (a) and (b)
Q. /bin
a. is a bucket for storing information
b. has files in binary code
c. is a directory
d. both (b) and ©
Q. The main reasons for the success of pipes are
a. the availability of many filter programs
b. unix treats devices as files
c. it provides a 2- way communication channel
d. both (a) and (b)
Q. Choose the correct statements.
a. the symbols > and | are both processed by shell
b. > can be used to direct output to a named file
c. | can be used to direct output to programs
d. all of above
Q. The command who sort - file1 > file2
a. results in an error
b. sorts the contents of file1 and puts it in file2
c. both (a) and (b)
d. none of the above
Q. The system identifies the end of a file by the
a. eof character
b. file size
c. i-node number
d. both (a) and (b)