Free Software Development Lifecycle MCQs with Answers

423 Software Development Lifecycle MCQs from Software Engineering, each with the correct answer and a written explanation of why it is correct. Free and unlimited, with no account needed.

Last updated

423 questions · page 11 of 22

  • 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: j
  • 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 note
  • 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
  • A. to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.
  • B. to move the cursor to the upperleft corner of the screen
  • C. to move the cursor backward to the beginning of a word
  • D. to move the cursor to the first column in the current line

Explanation: In vi, `%` moves the cursor between matching delimiters such as parentheses, brackets, and braces.

Correct answer: to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.
  • A. -4
  • B. -f
  • C. -1
  • D. -2

Explanation: The `-f` option gives a fuller process listing, including the complete command-line information.

Correct answer: -f
  • A. $
  • B. #
  • C. :
  • D. ;

Explanation: A semicolon separates commands so the shell executes them sequentially on the same command line.

Correct answer: ;
  • A. ls -l -d
  • B. ls -l
  • C. ls -x
  • D. ls -F

Explanation: The `-d` option makes `ls` display the directory entry itself rather than listing the directory's contents, and `-l` shows its attributes…

Correct answer: ls -l -d
  • A. sort
  • B. sh
  • C. st
  • D. sort -r

Explanation: `sort` orders lines alphabetically by default, while the `-r` option reverses that order.

Correct answer: sort -r
  • A. chmod u + r, g + r, o - x letter
  • B. chmod ugo = r letter
  • C. chmod a - rw letter
  • D. chmod go + r letter

Explanation: `ugo` refers to user, group, and others, and `=r` assigns read permission while removing other permissions.

Correct answer: chmod ugo = r letter
  • A. Bob Young
  • B. Mark Eving
  • C. Richard Stallman
  • D. Linus Torvalds

Explanation: Linus Torvalds created the Linux kernel, which became the core of the Linux operating system.

Correct answer: Linus Torvalds
  • A. ls | ws - c
  • B. ls | wc - w
  • C. ls | wc - l
  • D. ls | wc

Explanation: `ls` produces one directory entry per line in its normal output, and `wc -l` counts those lines.

Correct answer: ls | wc - l