Operating System Architecture Set 24

On This Page

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

Q1 | How do you find out what's your shell ?
  • echo $shell
  • echo $shell
  • echo $shell
  • echo shell
Q2 | What is command to find out todays date ?
  • time
  • date
  • cal
  • cd
Q3 | What's the command to find out users on the system ?
  • who
  • whoami
  • user
  • pwd
Q4 | How do you find current directory you are in ?
  • cd
  • pwd
  • chdir
  • mkdir
Q5 | Which variable contains current shell process id ?
  • $*
  • $?
  • $$
  • $!
Q6 | Which command is used to debug a shell script program ?
  • set
  • set -x
  • debug
  • db
Q7 | How do you remove a file ?
  • del
  • rm
  • cd
  • rmdir
Q8 | How do you find your own username ?
  • who
  • user
  • whoami
  • root
Q9 | Which of the following display content of file1 ?
  • cat file1
  • cat > file1
  • cat >> file2
  • cat
Q10 | Which of the following creates a file named file1 ?
  • cat file1
  • cat > file1
  • cat < file1
  • cat
Q11 | What are the files attributes for executing perl programs ?
  • 666
  • 755
  • 766
  • 777
Q12 | What is default administrator username ?
  • administrator
  • admin
  • superuser
  • root
Q13 | The name of the Unix scheduling utility is
  • sched
  • cron
  • sc
  • timer
Q14 | Examples of repetitive tasks performed by system administrators
  • disk space inventories
  • security audits
  • system backups
  • all of the above
Q15 | Another term for shell programs is
  • compiled
  • interpreted
  • command processed
  • none of the above
Q16 | The Unix slang for " #! " is
  • hash-bang
  • shboom
  • shebang
  • more than one of the above
Q17 | Which of the following is not true of program variables
  • can be exported to the entire system
  • can be used only within the shell program
  • can hold data
  • all of the above
Q18 | Flow control in a shell program allows parts of a shell program to be executed
  • repeatedly
  • conditionally
  • all of the above
  • none of the above
Q19 | Shell script is preferable to other forms of programming because it
  • makes programming task easier
  • occupies less space
  • enhances portability
  • all of these
Q20 | Choose the incorrect statements.
  • shell scripts can accept arguments
  • shell scipts are interp
  • shell scripts are interpreted
  • shell scripts are compiled
Q21 | Files that store data in the same format as used in program are called
  • binary files
  • executable file
  • source file
  • core
Q22 | Which of the following file names can be found in more than one directoy?
  • date
  • passwd
  • bin
  • both b and c
Q23 | Which one of the following options is not a shell in UNIX system?
  • bourne shell
  • c shell
  • net shell
  • korn shel
Q24 | Which command is used to display the top of the file?
  • cat
  • more
  • head
Q25 | Lint should be used
  • before compilation
  • after compilation
  • to analyze a c code
  • none of the above