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 5 of 22

  • A. s
  • B. S
  • C. a
  • D. i

Explanation: The vi command `i` enters insert mode immediately before the cursor, so new text appears to its left.

Correct answer: i
  • A. cat
  • B. cut
  • C. grep
  • D. paste

Explanation: `cut` extracts selected fields or character columns from each input line, commonly using a delimiter with the `-d` and `-f` options.

Correct answer: cut
  • A. grep
  • B. tail
  • C. head
  • D. cat

Explanation: `tail` displays the end of a file and shows the final 10 lines by default.

Correct answer: tail
  • A. chmod 4=7, g = 6, o = 1 letter
  • B. chmod a = 761 letter
  • C. chmod u = rwx, g = rw, o = x letter
  • D. chmod 167 letter

Explanation: In `761`, the digits represent user, group, and other permissions: 7 is `rwx`, 6 is `rw-`, and 1 is `--x`.

Correct answer: chmod u = rwx, g = rw, o = x letter
  • A. 2GB
  • B. 128MB
  • C. 64MB
  • D. 32MB

Explanation: Under the Linux 2.2.x limit referenced by this question, one swap partition could be at most 2 GB.

Correct answer: 2GB
  • A. vi
  • B. Outlook
  • C. Scheduler
  • D. cron

Explanation: `cron` runs commands according to scheduled times defined in crontab entries, making it suitable for recurring jobs.

Correct answer: cron
  • A. Session
  • B. Data-link
  • C. Application
  • D. Network

Explanation: The OSI Application layer provides network services closest to end-user applications and therefore forms the user-facing interface.

Correct answer: Application
  • A. ??
  • B. //
  • C. ?
  • D. /

Explanation: In vi, `/pattern` searches forward from the current position, while `?pattern` searches backward.

Correct answer: /
  • A. Using useradd
  • B. Using adduser
  • C. Using linuxconf
  • D. All of the above

Explanation: `useradd` and `adduser` create users, while `linuxconf` also provided user-management functions on older Linux systems.

Correct answer: All of the above
  • A. r user-list
  • B. m user-list
  • C. d user-list
  • D. e user-list

Explanation: In the Unix `mail` program, `m user-list` starts a message addressed to the specified user or list.

Correct answer: m user-list
  • A. A
  • B. a
  • C. i
  • D. I

Explanation: Uppercase `A` moves to the end of the current line and enters insert mode, so new text is appended there.

Correct answer: A
  • A. cp
  • B. cpio
  • C. cp - p
  • D. copy

Explanation: `cpio` copies files and directory structures into and out of archive files, which is the significance of “in and out” in the question.

Correct answer: cpio
  • 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