Operating System Architecture Set 6

On This Page

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

Q1 | The file that stores an integer as a sequence of characters is a
  • text file
  • data file
  • binary file
  • core
Q2 | Which is the earliest and most widely used shell that came with the UNIX system?
  • c shell
  • korn shell
  • bourne shell
  • smith shell
Q3 | System call mknod creates a
  • new file
  • new directory
  • new binary file
  • none of these
Q4 | A pipe a mechanism that allow a stream of data between to be passed between……..
  • reader and writer process
  • reader process
  • writer process
  • none of these
Q5 | Which command is used to display the top of the file?
  • cat
  • head
  • more
  • grep
Q6 | Which of the following keys is used to replace a single character with new text?
  • s
  • s
  • r
  • c
Q7 | Which command sends the word count of the file infile to the newfile.
  • wc infile >newfile
  • wc newfile
  • wc infile - newfile
  • wc infile | newfile
Q8 | Which command is used to remove the read permission of the file 'note' from both the group and others?
  • chmod go+r note
  • chmod go+rw note
  • chmod go-x note
  • chmod go-r, 4-x note
Q9 | Which of the following commands is used to display the directory attributes rather than its contents?
  • ls -1 -d
  • ls -1
  • ls -x
  • ls -f
Q10 | Which of the following files will displayed by this command cat *ch*
  • patch
  • catch
  • .ch
  • all of the above
Q11 | If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use
  • tty ^c
  • stty intr \\^c
  • stty echoe
  • stty echo \\^a
Q12 | Which of the following keys is used to move the cursor to the end of the paragraph.
  • }
  • {
  • |
  • $
Q13 | Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?
  • cat emp[!0-9]
  • more [emp][!0-9]
  • cat emp[x-z]
  • cat emp[a-z]
Q14 | The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
  • tee
  • tr
  • sort
  • grep
Q15 | Which symbol is used to separate more than one command in the same command line?
  • $
  • #
  • :
  • ;
Q16 | The agency that sits between the user and the UNIX system is called the
  • logic
  • profile
  • shell
  • erxc
Q17 | Which of the following commands is used to update access and modification times of a file?
  • grep
  • wc
  • touch
  • cat
Q18 | Which command is used to count just the number of characters in a file?
  • wc - 1
  • wc -c
  • wc -w
  • wc -r
Q19 | Which of the following commands is used to list contents of directories?
  • ls
  • lp
  • dir
  • tar
Q20 | In vi editor, forward search is performed using the command.
  • :pat
  • :pat
  • /pat
  • all of the above
Q21 | Which of the following special shell variables is used to process number of the last background job?
  • $!
  • $#
  • $*
Q22 | Which option will be used with ps command to slow the entire command line of the process being run?
  • -4
  • -f
  • -1
  • -4
Q23 | Which of the following command addresses all users who are currently hooked on?
  • write
  • mail
  • wall
  • mesg
Q24 | Which of the following directories contain all the Ales created by a user, including his login directory?
  • /tmp
  • /etc
  • /usr
  • /dev
Q25 | Which of the following commands is used to obtain a list of all files by modification time?
  • ls -1
  • ls -t
  • ls -i
  • ls -r