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 40 of 87

  • A. ls
  • B. ls -1
  • C. ls -x
  • D. lc

Explanation: `ls -x` lists directory entries across the screen in multiple columns. `ls -1` deliberately places one filename on each line, so it does…

Correct answer: ls -x
  • A. Execute permission for the owner
  • B. Write permission for others
  • C. Read and write permission of groups
  • D. All of the above

Explanation: The digits `6`, `5`, and `2` mean owner `rw-`, group `r-x`, and others `-w-`, respectively.

Correct answer: Write permission for others
  • A. C shell
  • B. Korn shell
  • C. Bourne shell
  • D. Smith shell

Explanation: The Bourne shell, `sh`, was the original widely used Unix shell and became the foundation for many later shells.

Correct answer: Bourne shell
  • A. chmod u-x, go+r note
  • B. chmod go+r, u+x note
  • C. chmod g-x, uo+r note
  • D. chmod go+x, u-x note

Explanation: `u-x` removes execute permission from the user, and `go+r` adds read permission for the group and others.

Correct answer: chmod u-x, go+r note
  • A. lk
  • B. ln
  • C. cp
  • D. tar

Explanation: The `ln` command creates hard or symbolic links between filenames. `cp` makes a separate copy, while `tar` packages files into an archive…

Correct answer: ln
  • A. find -mtime +365 | rm
  • B. grep (/usr/*) - mtime + 365 | -ok rm
  • C. find -name - mtime + 365 / - ok rm
  • D. find /user/* \(-mtime + 365 - a - atime +365 \) - OK rm {} \;

Explanation: The find expression combines -mtime +365 and -atime +365, so both modification and access must be older than one year; -ok rm asks for…

Correct answer: find /user/* \(-mtime + 365 - a - atime +365 \) - OK rm {} \;
  • A. count p
  • B. wc
  • C. wcount
  • D. countw

Explanation: wc, or word count, reports a file's number of lines, words, and characters, and commonly also its bytes.

Correct answer: wc
  • A. to move cursor left by one position
  • B. to move cursor right by one position
  • C. to move cursor down by one line
  • D. to move cursor to the beginning of the line specified by the number

Explanation: In vi, placing a line number before G moves the cursor to that numbered line, so 24G moves to line 24.

Correct answer: to move cursor to the beginning of the line specified by the number
  • A. ic
  • B. ai
  • C. sm
  • D. ts

Explanation: The vi setting ic means ignore case during pattern searches, so uppercase and lowercase letters are treated as equivalent.

Correct answer: ic
  • A. who | tee user.lst
  • B. who > user.lst
  • C. who >> user.lst
  • D. who < user.lste

Explanation: tee sends the command's output to both standard output and the specified file, so who | tee user.lst displays the result while saving it.

Correct answer: who | tee user.lst
  • A. copy programs/wb misc/wbx
  • B. cp programs/wb misc/wbx
  • C. tar programs/wb misc/wbx
  • D. copy a:programs/wb b:misc/wbx

Explanation: cp copies the source path programs/wb to the destination path misc/wbx.

Correct answer: cp programs/wb misc/wbx
  • A. more
  • B. pg
  • C. cat
  • D. lp

Explanation: pg displays text one page at a time and is traditionally associated with viewing a file in fixed screen-sized pages, such as 24 lines.

Correct answer: pg
  • A. s
  • B. r
  • C. w
  • D. d

Explanation: Within the traditional mail command, s saves the current message to a separate file, normally followed by its filename.

Correct answer: s
  • A. .exrc
  • B. .profile
  • C. .autoexec
  • D. autoexec.bat

Explanation: The .profile file contains shell commands executed when a user logs in, such as environment-variable and path settings.

Correct answer: .profile
  • A. pid
  • B. du
  • C. ps
  • D. au

Explanation: ps displays information about active processes, including their process IDs, owners, and status.

Correct answer: ps
  • A. head - r
  • B. tail
  • C. eof
  • D. bof

Explanation: `tail` displays the last part of a file, whereas `head` displays its beginning.

Correct answer: tail
  • A. write
  • B. mail
  • C. wall
  • D. mesg

Explanation: `wall` broadcasts a message to all users currently logged in to the system.

Correct answer: wall
  • A. sort
  • B. sh
  • C. st
  • D. sort -r

Explanation: `sort` arranges input lines in ascending lexicographic order by default, which is usually described as alphabetical order.

Correct answer: sort
  • A. logic
  • B. profile
  • C. shell
  • D. erxc

Explanation: The shell is the command interpreter between the user and the UNIX kernel, accepting commands and launching programs.

Correct answer: shell
  • A. cd
  • B. changedir
  • C. chdir
  • D. cdir

Explanation: `cd` changes the shell's current working directory. The other names are not the standard UNIX command used for this purpose.

Correct answer: cd