Operating System Architecture Set 21

On This Page

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

Q1 | To invoke "bash" you type
  • bsh
  • sh
  • bsh
  • either a or c
Q2 | The last character of the "bash" prompt is usually
  • $
  • #
  • %
  • ?
Q3 | The part of the Unix operating system that interacts with the hardware is called
  • gnu project
  • the kernal
  • the shell
  • linux
Q4 | To start a process in the background, enter the command with this character at the end.
  • $
  • #
  • &
  • %
Q5 | Which of the following is not a major Unix shell?
  • x shell
  • c shell
  • bash shell
  • korn shell
Q6 | A personal run control file for bash is
  • .cshrc
  • profile
  • .bsh
  • .bashrc
Q7 | The shell in the Unix system is the
  • outer layer of a seed
  • user interface with the operating system
  • provides a prompt
  • both b and c
Q8 | Applications of Shell programming include
  • simplifying complex jobs
  • automating repetitive tasks
  • both a and b
  • none of the above
Q9 | Another term for shell programs is
  • scripts
  • c programs
  • compiled programs
  • shell command language
Q10 | Shell programs are
  • compiled
  • interpreted
  • command processed
  • none of the above
Q11 | A shell program is a
  • binary file
  • system file
  • text file
  • linked file
Q12 | Comments in a shell program are important because
  • keeps complex programs understandable
  • other programmers may try to read your program
  • you may revise an old program
  • all of the above
Q13 | 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
Q14 | In "bash", "if" constructs are ended with
  • fi
  • endif
  • end
  • none of the above
Q15 | Which of the following is not a iterative construct in "bash"?
  • if
  • for
  • until
  • while
Q16 | A loop that continues indefinitely is called a
  • indefinite loop
  • non-stop loop
  • infinite loop
  • none of the above
Q17 | The asterisk is a metacharacter which in the command "ls *.txt" means
  • any single character
  • any combination of one or more characters
  • any combination of zero or more characters
  • none of the above
Q18 | A metacharacter is any character that
  • is taken literally
  • represents any string of characters that fit its definition
  • is an "asterisk" or "question mark
  • all of the above
Q19 | Which of the following Unix utilities are not commonly used to process regular expressions?
  • grep
  • sed
  • cut
  • awk
Q20 | Which programming language has a powerful regular expression engine?
  • c++
  • perl
  • pearl
  • c
Q21 | Which meta-noncharacter is used to indicate the end of the line?
  • ^
  • ?
  • >
  • $
Q22 | Which meta-noncharacter is used to indicate the beginning of the line?
  • ^
  • ?
  • <
  • $
Q23 | The character separating fields is called a
  • separator
  • delimiter
  • blank
  • semicolon
Q24 | Awk" is a program that is primarily concerned with formatting output. It is designed to work best with pieces of data called
  • records
  • characters
  • fields
  • strings
Q25 | A bootstrap is :
  • the flat cable that connects the cpu to thre printer
  • the flat cable from the disk controller card to the disk driver
  • additional memory device
  • a small intialization program to start up the computer