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

  • A. x
  • B. X
  • C. dd
  • D. D

Explanation: In vi command mode, `x` deletes the character at or beneath the cursor.

Correct answer: x
  • A. 1024 bytes
  • B. 2048 bytes
  • C. 512 bytes
  • D. 256 bytes

Explanation: Traditional Unix file systems use physical disk blocks of 512 bytes, although modern Unix-like systems may use different block sizes.

Correct answer: 512 bytes
  • A. erase
  • B. delete
  • C. rm
  • D. dm

Explanation: The `rm` command removes files and, with suitable options, directories.

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

Explanation: `chmod ugo=r note` assigns read permission to the user, group, and others while removing write and execute permissions.

Correct answer: chmod ugo=r note
  • A. mesg
  • B. grep
  • C. halt
  • D. sleep

Explanation: `mesg` controls whether other users may send messages to a terminal, with `mesg n` restricting incoming messages.

Correct answer: mesg
  • A. rename
  • B. remove
  • C. mv
  • D. ren

Explanation: Unix uses `mv` both to move a file and to rename it when the destination is in the same directory or has a new name.

Correct answer: mv
  • A. group has read permission only
  • B. other has read permission only
  • C. owner has read permission only
  • D. group has write permission only

Explanation: Unix permissions are grouped as owner, group, and others, in that order.

Correct answer: group has read permission only
  • A. ls -1
  • B. ls -t
  • C. ls -i
  • D. ls -R

Explanation: The `-t` option sorts directory entries by modification time, showing the most recently modified files first.

Correct answer: ls -t
  • A. $!
  • B. $#
  • C. 0
  • D. $*

Explanation: The special variable `$!` expands to the process ID of the most recently started background job.

Correct answer: $!
  • A. remove
  • B. rm
  • C. mv
  • D. del

Explanation: `rm` is the standard Unix/Linux command for removing files. `mv` moves or renames a file, while `remove` and `del` are not the standard…

Correct answer: rm
  • A. ^pat
  • B. $pat
  • C. pat$
  • D. pat^

Explanation: In grep regular expressions, `^` anchors a pattern to the beginning of a line, so `^pat` matches lines that start with `pat`.

Correct answer: ^pat
  • A. chmod go+r note
  • B. chmod go+rw note
  • C. chmod go-x note
  • D. chmod go-r note

Explanation: In `chmod`, `go` selects the group and others classes, while `-r` removes read permission, making `chmod go-r note` the required command.

Correct answer: chmod go-r note
  • A. nfsmount
  • B. knfsd
  • C. mount
  • D. All of the above

Explanation: The `mount` command attaches a filesystem, including an NFS filesystem, to the directory tree; NFS is typically specified with a type or…

Correct answer: mount
  • A. $
  • B. 3 dw
  • C. 3 x
  • D. 3 dd

Explanation: In vi, `dw` deletes one word, so `3dw` deletes three words from the cursor position.

Correct answer: 3 dw
  • A. Linus Torvalds
  • B. Richard Stallman
  • C. Bob Young
  • D. All of the above

Explanation: Richard Stallman founded the Free Software Foundation in 1985 to promote free software and related freedoms.

Correct answer: Richard Stallman
  • A. del
  • B. mv
  • C. rm
  • D. remove

Explanation: `rm` removes files in Unix/Linux systems. `mv` renames or moves a file, whereas `del` and `remove` are not the standard Unix command for…

Correct answer: rm
  • A. /etc/.profile
  • B. /etc/.bashrc
  • C. /etc/.log
  • D. /etc/profile

Explanation: `/etc/profile` is read for system-wide shell initialization, so its settings apply by default to users with login shells.

Correct answer: /etc/profile
  • A. to exit status of ast command executed.
  • B. to process number of the current shell
  • C. to list the positional parameters
  • D. to name the command being executed

Explanation: `$*` expands to all positional parameters supplied to the shell script or function, generally as one word when quoted.

Correct answer: to list the positional parameters
  • A. h
  • B. k
  • C. j
  • D. i

Explanation: In vi command mode, `h` moves the cursor one position left. The commands `j` and `k` move down and up, while `i` enters insert mode.

Correct answer: h
  • A. tee
  • B. grep
  • C. cat
  • D. more

Explanation: `tee` copies standard input to a file while also sending the same data to standard output, so the output is both saved and displayed.

Correct answer: tee