Top 550+ Solved Operating System Architecture MCQ Questions Answer
Q. A C program should be compiled with -g option (like cc -g x . c) to use
a. proof
b. make
c. lprof
d. sdb
Q. The difference between a pipe and a regular file is that
a. unlike a regular file, pipe is not a file.
b. the data in a pipe is transient. unlike the contents of a regular file
c. pipes forbid random accessing. while regular files do allow this
d. both (b) and ©
Q. Context switch changes the process mode from………
a. user to kernel mode
b. kernel to user mode
c. kernel mode to the kernel process
d. both (a) and (b)
Q. cc command sequentially invokes
a. preprocessor. compiler and link editor
b. compiler and link editor
c. preprocessor, compiler. assembler and link editor
d. compiler, assembler and link editor
Q. The cc command
a. can take more than one argument
b. can act on files with . or . o extension
c. creates . o files by default when more than one argument with .,- extension is present
d. if provided with more than one argument. immediately terminates it the first argument fails to compile successfully
Q. The mv command changes
a. only the directory entry
b. only the directory entry and i-node
c. only the i-node number
d. none of the above
Q. Choose the correct statements.
a. any process has an associated owner id and group id
b. effective id defines who you are for the duration of a process
c. real id defines who you are for the duration of a process
d. both (a) & (b)
Q. No shell script can take input from
a. stdin
b. the output of the previously executed command redirected to it
c. the shell holds the script
d. none of the above
Q. The disadvantage of a pipe is that
a. it is a one way communication channel
b. it dies along with the process that created it
c. it can\t he shared by unrelated processes
d. all of these
Q. The state of signals are
a. preserved across a fork call
b. not preserved across an exec call
c. preserved across an exec call
d. both (a) & (b)
Q. Which of the following displays the exit status of the last executed command?
a. echo $4
b. echo $$
c. echo $?
d. echo $!
Q. Which of the following file names cannot be displayed if la ls* is run?
a. .x
b. ?x
c. both (a) & (b)
d. hidden
Q. Which of the following initiates the sequence of events that ultimately allows a user to login?
a. clri
b. sync
c. login
d. init
Q. What is ‘ps’ command for?
a. prints the status
b. prints the process status
c. prints the execution status
d. none