All Free Software Engineering MCQs with Answers
Every Software Engineering question in the bank, across all chapters, each with the correct answer and a written explanation. Free and unlimited, with no account needed.
1,731 questions · page 37 of 87
- A. executable permission only
- B. write and executable permissions
- C. both read and executable permissions.
- D. both read and write permissions
Explanation: In a Unix permission triplet, the first position group belongs to the owner.
Correct answer: both read and write permissions- A. > symbols
- B. >> symbols
- C. < symbols
- D. << symbols
Explanation: The >> redirection operator writes output at the end of an existing file, preserving its current contents.
Correct answer: >> symbols723. Which of the following special shell variables is used to process number of the current shell ?
- A. $!
- B. $$
- C. 0
- D. $*
Explanation: The special shell variable $$ expands to the process ID of the current shell. By contrast, $!
Correct answer: $$724. Which of the following shell's wildcards are used to match any number of characters including none ?
- A. [ijk]
- B. [!ijk]
- C. ?
- D. *
Explanation: The * wildcard matches zero or more characters, so it can match an empty string as well as a sequence of characters. The ?
Correct answer: *- A. dm
- B. rm
- C. delete
- D. erase
Explanation: `rm` removes files from the filesystem. The other choices are not the standard Unix command for file removal.
Correct answer: rm- A. grep
- B. mail
- C. mesg
- D. write
Explanation: `mail`, `mesg`, and `write` are Unix communication commands, whereas `grep` searches text using pattern matching.
Correct answer: grep- A. rpcinfo
- B. serverinfo
- C. NFSinfo
- D. infserv
Explanation: `rpcinfo` queries RPC services and can show the services registered by an NFS server.
Correct answer: rpcinfo- A. Net.Net.Net.Node
- B. Net.Net.Node.Node
- C. Net.Node.Net.Node
- D. Net.Node.Node.Node
Explanation: A Class A IPv4 address uses 8 bits for the network portion and 24 bits for the host portion, represented as `Net.Node.Node.Node`.
Correct answer: Net.Node.Node.Node- A. bzimage.img
- B. tar
- C. ghost
- D. mkkickstart
Explanation: Red Hat's Kickstart mechanism automates installation using a configuration file, and `mkkickstart` is the option associated with creating…
Correct answer: mkkickstart- A. Linux
- B. BSD
- C. UnixWare
- D. DOS
Explanation: Traditional Linux systems commonly used the DOS-style partition table, also known as the MBR partition table.
Correct answer: DOS- A. cat emp[!0-9]
- B. more [emp][!0-9]
- C. cat emp[x-z]
- D. cat emp[a-z]
Explanation: In a shell glob, `[!0-9]` matches one character that is not a digit, so `cat emp[!0-9]` selects names beginning with `emp` and having a…
Correct answer: cat emp[!0-9]- A. chmod -R a+x progs
- B. chmod -R 222 progs
- C. chmod -1 a+x progs
- D. chmod -x a+x progs
Explanation: The `-R` option applies the change recursively, while `a+x` adds execute permission for the owner, group, and others.
Correct answer: chmod -R a+x progs- A. chmod ugo+r letter
- B. chmod ugo+rw letter
- C. chmod u+x letter
- D. chmod ugo+x letter
Explanation: `ugo+x` adds execute permission for the user, group, and others on `letter`. `u+x` would give execute permission only to the file owner.
Correct answer: chmod ugo+x letter- A. .exrc
- B. .profile
- C. lastlogin
- D. .mbox
Explanation: The Bourne shell reads `.profile` when a user logs in, allowing environment variables and startup settings to be established.
Correct answer: .profile- A. cd..
- B. cd/
- C. cd
- D. cd HOME.
Explanation: Running `cd` without a directory argument changes to the current user's home directory.
Correct answer: cd- A. mail
- B. mesg
- C. write
- D. grep
Explanation: `write` sends an interactive message to another logged-in user and supports two-way communication.
Correct answer: write- A. R
- B. v
- C. C
- D. u
Explanation: In the vi editor, capital `R` enters replace or overstrike mode, allowing existing characters to be replaced across a line.
Correct answer: R- A. +
- B. -
- C. =
- D. %
Explanation: The `=` operator sets an exact permission set, so it is used for absolute assignment such as `chmod u=rw file`.
Correct answer: =- A. who
- B. ls
- C. tty
- D. stty
Explanation: `tty` prints the device pathname of the terminal connected to the current session, such as `/dev/pts/0`.
Correct answer: tty- A. pg
- B. cat
- C. lp
- D. /p
Explanation: `pg` displays a file page by page, traditionally showing about 24 lines per screen on a standard terminal.
Correct answer: pg