Operating System Architecture Set 11

On This Page

This set of Operating System Architecture Multiple Choice Questions & Answers (MCQs) focuses on Operating System Architecture Set 11

Q1 | If one exports a variable
  • variables placed in the environment by a child process are not inherited by the parent process
  • it is passed to all its descendant processes
  • it dies when the shell that created it dies
  • all of these
Q2 | Profilers are                            
  • tools that analyze the run time behaviour of a program
  • tools that check a c code for cross file consistency
  • tools that keep track of evolving versions of a file
  • none of the above
Q3 | The shell command :
  • does nothing
  • can be used to cause infinite looping
  • can take arguments but it cannot act on them
  • all of these
Q4 | Which of the following tools can be used to keep track of evolving versions of a file
  • make
  • yacc
  • sccs
  • dv
Q5 | The .(dot) shell command
  • can take command line argument
  • will fork a child shell to execute the named shell script
  • can be used to change the environment of the current shell
  • all of the above
Q6 | m4
  • is a macro processor
  • can he used to preprocess c code
  • can be used to preprocess assembly language program
  • none of the above
Q7 | If 7 terminals are currently logged on. then the commanddate ; who | wc -l, displays
  • date followed by 7
  • date followed by 8
  • date followed by 1
  • an error message
Q8 | Choose the correct answers if the command ls -l /dev/mt0 display'sbrw_rw_ _ _ _ 1 root 3, 0 Apr18 1:05 mt0
  • the \b\ indicates that it is a special file
  • mt0 indicates that it is a tape drive
  • the \ b\ indicates that data transfer is done in blocks
  • all of these
Q9 | cat/dev/tty
  • throws garbage onto the terminal 1
  • just echoes what you type. line by line
  • terminates if one types control at the beginning of a line
  • both (b) & ©
Q10 | The header files used in C programs arc usually found in
  • /bin/include
  • usr/bin/include
  • /dev/ include
  • iusr/include
Q11 | A C program should be compiled with -g option (like cc -g x . c) to use
  • proof
  • make
  • lprof
  • sdb
Q12 | The difference between a pipe and a regular file is that
  • unlike a regular file, pipe is not a file.
  • the data in a pipe is transient. unlike the contents of a regular file
  • pipes forbid random accessing. while regular files do allow this
  • both (b) and ©
Q13 | Context switch changes the process mode from………
  • user to kernel mode
  • kernel to user mode
  • kernel mode to the kernel process
  • both (a) and (b)
Q14 | cc command sequentially invokes
  • preprocessor. compiler and link editor
  • compiler and link editor
  • preprocessor, compiler. assembler and link editor
  • compiler, assembler and link editor
Q15 | The cc command
  • can take more than one argument
  • can act on files with . or . o extension
  • creates . o files by default when more than one argument with .,- extension is present
  • if provided with more than one argument. immediately terminates it the first argument fails to compile successfully
Q16 | The mv command changes
  • only the directory entry
  • only the directory entry and i-node
  • only the i-node number
  • none of the above
Q17 | Which of the following programs are not interactive?
  • passwd
  • date
  • grep
  • both (b) & ©
Q18 | Choose the correct statements.
  • any process has an associated owner id and group id
  • effective id defines who you are for the duration of a process
  • real id defines who you are for the duration of a process
  • both (a) & (b)
Q19 | No shell script can take input from
  • stdin
  • the output of the previously executed command redirected to it
  • the shell holds the script
  • none of the above
Q20 | The disadvantage of a pipe is that
  • it is a one way communication channel
  • it dies along with the process that created it
  • it can\t he shared by unrelated processes
  • all of these
Q21 | The state of signals are
  • preserved across a fork call
  • not preserved across an exec call
  • preserved across an exec call
  • both (a) & (b)
Q22 | Which of the following displays the exit status of the last executed command?
  • echo $4
  • echo $$
  • echo $?
  • echo $!
Q23 | Which of the following file names cannot be displayed if la ls* is run?
  • .x
  • ?x
  • both (a) & (b)
  • hidden
Q24 | Which of the following initiates the sequence of events that ultimately allows a user to login?
  • clri
  • sync
  • login
  • init
Q25 | What is ‘ps’ command for?
  • prints the status
  • prints the process status
  • prints the execution status
  • none