Operating System Architecture Set 7

On This Page

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

Q1 | Which command is used to display the characteristics of a process?
  • pid
  • du
  • ps
  • au
Q2 | The filed separator in cut command is specified with
  • -a option
  • -d option
  • -r option
  • -x option
Q3 | Which option will be used with touch command to change the access time?
  • -a
  • -b
  • -t
  • -h
Q4 | Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
  • chmod -r a+x progs
  • chmod -r 222 progs
  • chmod -1 a+x progs
  • chmod -x a+x progs
Q5 | The second set of the three permissions (r-) indicates that
  • group has read permission only
  • other has read permission only
  • owner has read permission only
  • group has write permission only
Q6 | Which column contains all details of the permissions of a file when you issue the ls - l command?
  • second
  • fourth
  • third
  • first
Q7 | Which of the following commands is used to display your working directory?
  • second
  • fourth
  • third
  • first
Q8 | While working with mail command, which command is used to save mail i a separate file?
  • s
  • r
  • w
  • d
Q9 | Which command is used to terminate a process?
  • shutdown
  • haltsys
  • cancel
  • kill
Q10 | The cp command uses:
  • standard input file
  • standard output file
  • both input and output file
  • neither standard input nor standard output file
Q11 | Which command is used to print a file?
  • print
  • prn
  • pg
  • lp
Q12 | Which command is used to list out all the hidden files along with the other files?
  • ls -l
  • ls -x
  • ls -f
  • ls -a
Q13 | Which command is used with vi editor to search a pattern in the forward direction?
  • /
  • ?
  • //
  • ??
Q14 | The command to count the number of files in the current directory by using pipes, is
  • ls | wc
  • ls -l | ws -l
  • ls | wc -w
  • ls | ws -c
Q15 | Which of the following commands is used to get directory one level up?
  • cd
  • cd ..
  • cd/
  • chdir
Q16 | Which of the following commands is used to count the total number of lines, words, and characters contained in a file.
  • count p
  • wc
  • wcount
  • countw
Q17 | Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?
  • rm *
  • rm -r *
  • rm all
  • rm *.*
Q18 | Which of the following commands is used to change the working directory?
  • cd
  • changedir
  • chdir
  • cdir
Q19 | Services provided by kernel are………
  • controlling execution of process
  • scheduling processes
  • allocating main memory for an executing process
  • all of these
Q20 | The shell acts as an interface between the………..
  • user and kernel
  • user and operating system
  • kernel and operating system
  • none of these
Q21 | When a process executes a system call, the execution mode of the process changes from ………..
  • kernel mode to user mode
  • user mode to kernel mode
  • user mode to operating system mode
  • none of these
Q22 | when the kernel services an intrrupt, it blocks out low priority interrupts but………..
  • services middle priority interrupt
  • services higher priority interrupts
  • both a and b
  • none of these
Q23 | The commonly used UNIX commands like date, ls, cat, etc. are stored in………..
  • /dev directory
  • /bin and /usr/bin directories
  • /tmp directory
  • /unix directory
Q24 | Which of the following commands is used to summarize the disk usage?
  • chkdsk
  • fdisk
  • du
  • disk
Q25 | Which command is used to sort the lines of data in a file in alphabetical order?
  • sort
  • sh
  • st
  • sort -r