Top 550+ Solved Operating System Architecture MCQ Questions Answer

From 46 to 60 of 627

Q. The command line argument a.out x 'a b' "c d"

a. is acceptable

b. is acceptable if the double quotes are replaced by single quotes

c. is acceptable if the single quotes arc replaced by double quotes

d. none of the above

  • a. is acceptable

Q. lint should be used

a. before compilation

b. to analyze a c code

c. after compilation

d. both (a) and (b)

  • d. both (a) and (b)

Q. Environment variables can be accessed by

a. system programs

b. c programs

c. shell scripts

d. all of these

  • d. all of these

Q. Which of the following are character special files

a. terminal

b. printer

c. modem

d. all of these

  • d. all of these

Q. If one exports a variable

a. variables placed in the environment by a child process are not inherited by the parent process

b. it is passed to all its descendant processes

c. it dies when the shell that created it dies

d. all of these

  • d. all of these

Q. Profilers are                            

a. tools that analyze the run time behaviour of a program

b. tools that check a c code for cross file consistency

c. tools that keep track of evolving versions of a file

d. none of the above

  • a. tools that analyze the run time behaviour of a program

Q. The shell command :

a. does nothing

b. can be used to cause infinite looping

c. can take arguments but it cannot act on them

d. all of these

  • d. all of these

Q. The .(dot) shell command

a. can take command line argument

b. will fork a child shell to execute the named shell script

c. can be used to change the environment of the current shell

d. all of the above

  • c. can be used to change the environment of the current shell

Q. m4

a. is a macro processor

b. can he used to preprocess c code

c. can be used to preprocess assembly language program

d. none of the above

  • c. can be used to preprocess assembly language program

Q. If 7 terminals are currently logged on. then the commanddate ; who | wc -l, displays

a. date followed by 7

b. date followed by 8

c. date followed by 1

d. an error message

  • a. date followed by 7

Q. Choose the correct answers if the command ls -l /dev/mt0 display'sbrw_rw_ _ _ _ 1 root 3, 0 Apr18 1:05 mt0

a. the \b\ indicates that it is a special file

b. mt0 indicates that it is a tape drive

c. the \ b\ indicates that data transfer is done in blocks

d. all of these

  • d. all of these

Q. cat/dev/tty

a. throws garbage onto the terminal 1

b. just echoes what you type. line by line

c. terminates if one types control at the beginning of a line

d. both (b) & ©

  • d. both (b) & ©

Q. The header files used in C programs arc usually found in

a. /bin/include

b. usr/bin/include

c. /dev/ include

d. iusr/include

  • d. iusr/include
Subscribe Now

Get All Updates & News