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 45 of 87
- A. shutry
- B. TRY
- C. trial
- D. None of the above
Explanation: In Unix-like systems, shutry, TRY, and trial are all valid filenames because ordinary letters may be used and case is significant.
Correct answer: None of the above- A. lpq
- B. lpr
- C. lprm
- D. lpc
Explanation: lpq displays the print jobs currently waiting in printer queues. lpr submits a print job, while lprm removes one.
Correct answer: lpq- A. netstat
- B. route
- C. trace
- D. ipchains
Explanation: ipchains was a Linux firewall administration tool used before iptables became standard.
Correct answer: ipchains- A. /var/log
- B. /etc/log
- C. /mail
- D. All of the above
Explanation: Red Hat Linux stores system and mail-related log files under /var/log. The other paths are not the standard central log directory.
Correct answer: /var/log- A. oct
- B. of
- C. od
- D. cd
Explanation: The `od` command, meaning octal dump, displays file data in octal and other representations.
Correct answer: od- A. NFS
- B. SMD
- C. smbclient
- D. smbserver
Explanation: `smbclient` is the Linux command-line client for connecting to and working with SMB or Windows file shares.
Correct answer: smbclient- A. mkboot disk
- B. bootfp disk
- C. ww and rawwrite
- D. dd and rawrite
Explanation: `dd` copies a disk image at the block level, and `rawrite` writes an image to a floppy, so these tools were used to create bootable Linux…
Correct answer: dd and rawrite- A. @
- B. #
- C. $
- D. !
Explanation: In traditional vi input mode, `#` backs up over the character immediately before the cursor, making it useful for correcting typing…
Correct answer: #- A. rch
- B. R
- C. S
- D. j
Explanation: `j` is a vi movement command that moves the cursor down, not an input-mode command.
Correct answer: j890. Which command is used to save the standard output in a file, as well as display it on the terminal ?
- A. more
- B. cat
- C. grep
- D. tee
Explanation: `tee` copies standard input to a file while also sending the same data to standard output, so it remains visible on the terminal.
Correct answer: tee- A. who am i
- B. i /4
- C. pwd
- D. which
Explanation: `who am i` displays the current user's login identity and related session information.
Correct answer: who am i- A. 1
- B. 6
- C. 5
- D. 3
Explanation: Read permission is 4 and write permission is 2, so the owner's combined permission value is 4 + 2 = 6 in octal.
Correct answer: 6- A. chmod 167 note
- B. chmod u=rwx, g=rw, o=x note
- C. chmo a =761 note
- D. chmod 4=7, g=6,0 =1 note
Explanation: In `761`, the digits assign owner `7` as `rwx`, group `6` as `rw-`, and others `1` as `--x`.
Correct answer: chmod u=rwx, g=rw, o=x note894. The command to count the number of files in the current directory by using pipes, is_______________?
- A. ls | wc
- B. ls -l | wc -l
- C. ls | wc -w
- D. ls | ws -c
Explanation: `ls` sends the directory entries to `wc`, and `wc -w` counts them as words.
Correct answer: ls | wc -w- A. print
- B. prn
- C. pg
- D. lp
Explanation: `lp` sends a file to the system printer, whereas `print`, `prn`, and `pg` are not the standard Unix command for printing a file.
Correct answer: lp- A. which
- B. who
- C. who am i
- D. 1 /u
Explanation: `who` lists all users currently logged in, usually showing their terminals and login times.
Correct answer: who- A. copy programs/wb misc/wb
- B. cp programs/wb misc
- C. tar programs/wb misc/wb
- D. copy a:programs/wb b:misc/wb
Explanation: `cp programs/wb misc` copies `wb` into the `misc` directory while preserving its filename.
Correct answer: cp programs/wb misc- A. cd
- B. cd ..
- C. cd/
- D. chdir
Explanation: In Unix, `..` denotes the parent directory, so `cd ..` moves one level upward. A bare `cd` normally takes the user to the home directory.
Correct answer: cd ..- A. s
- B. S
- C. a
- D. i
Explanation: In vi, `s` deletes the character under the cursor and enters insert mode, allowing any number of replacement characters.
Correct answer: s- A. cat
- B. grep
- C. wc
- D. None of the above
Explanation: `cat`, `grep`, and `wc` can all act as Unix filters because they can read standard input and write standard output.
Correct answer: None of the above