Top 550+ Solved Operating System Architecture MCQ Questions Answer

From 31 to 45 of 627

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

  • a. binary files

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

  • c. locking

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 ©

  • 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 ©

  • 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

  • a. text file

Q. If cat x. prints garbage. then x is probably a

a. data file

b. binary file

c. text file

d. source file

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

  • 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 ©

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

  • d. both (a) and (b)

Q. Which of the following are not filter programs?

a. date

b. sort

c. cat

d. grep

  • a. date

Q. Redirection in pipes can be achieved by using

a. >

b. >>

c. tee

d. lpr

  • c. tee

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

  • 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

  • d. none of the above

Q. The system identifies a file by its

a. name

b. absolute path

c. both (a) and (b)

d. mode number

  • d. mode number

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)

  • b. file size
Subscribe Now

Get All Updates & News