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

  • A. rd
  • B. rmdir
  • C. dldir
  • D. rdir

Explanation: `rmdir` removes an empty directory, which is the standard command specifically intended for directory removal.

Correct answer: rmdir
  • A. ls -l *.lst
  • B. ls lst*
  • C. ls *.*
  • D. ls *[lst]

Explanation: The wildcard `*.lst` matches names ending in `.lst`, and `ls -l` lists those matches in detailed form.

Correct answer: ls -l *.lst
  • A. disk
  • B. du
  • C. fdisk
  • D. chkdsk

Explanation: `du` means disk usage and reports the space used by files and directories.

Correct answer: du
  • A. 82 and 83
  • B. 92 and 93
  • C. 63 and 64
  • D. 82 and 85

Explanation: In the traditional Linux fdisk partition-type codes, 82 denotes Linux swap and 83 denotes a Linux native file-system partition.

Correct answer: 82 and 83
  • A. ls
  • B. cat
  • C. file
  • D. more

Explanation: The `file` command examines a file's contents and identifies its type, such as text, executable, or image.

Correct answer: file
  • A. addroute
  • B. route
  • C. netstat
  • D. net

Explanation: The traditional Linux `route` command displays and modifies the kernel's IP routing table, so it can add routes to a router.

Correct answer: route
  • A. -r
  • B. -x
  • C. -i
  • D. -1

Explanation: The `-i` option enables interactive confirmation, causing `rm` to ask before removing each file.

Correct answer: -i
  • A. -a option
  • B. -d option
  • C. -r option
  • D. -x option

Explanation: In `cut`, the `-d` option defines the delimiter or field separator, such as `-d,` for comma-separated data.

Correct answer: -d option
  • A. tar
  • B. cpio
  • C. cp
  • D. copy

Explanation: `cp` is the standard Unix/Linux command for copying files and directories.

Correct answer: cp
  • A. FTP
  • B. SNMP
  • C. SMTP
  • D. RPC

Explanation: SMTP, the Simple Mail Transfer Protocol, transfers outgoing electronic mail between mail servers.

Correct answer: SMTP
  • A. wc - 1
  • B. wc -c
  • C. wc -w
  • D. wc -r

Explanation: The `-c` option makes `wc` count bytes, which normally corresponds to the number of characters in a text file.

Correct answer: wc -c
  • A. cp chap?? progs
  • B. cp chap* progs
  • C. cp chap[12] /progs/*.*
  • D. cp chap?? /progs/*

Explanation: The `?` wildcard matches exactly one character, so `chap??` selects filenames beginning with `chap` followed by exactly two characters.

Correct answer: cp chap?? progs
  • A. /sbin/usrquota
  • B. /sbin/edquota
  • C. /sbin/quotaon
  • D. /sbin/quota

Explanation: `edquota` opens the quota settings for editing and allows administrators to set soft and hard limits for users or groups.

Correct answer: /sbin/edquota
  • A. chmod ugo + x letter
  • B. chmod u + x letter
  • C. chmod u + w letter
  • D. chmod g + x letter

Explanation: In `chmod`, `u` identifies the file owner and `+x` adds execute permission, giving `chmod u+x letter`.

Correct answer: chmod u + x letter
  • A. /dev
  • B. /bin
  • C. /etc
  • D. /home

Explanation: The `/dev` directory contains special device files that provide interfaces to hardware and virtual devices.

Correct answer: /dev
  • A. chmod u+x emp[1-3]
  • B. chmod 777 emp*
  • C. chmod u+r ??? emp
  • D. chmod 222 emp?

Explanation: The pattern `emp[1-3]` matches names beginning with `emp` and ending in 1, 2, or 3, while `chmod u+x` changes the owner's execute…

Correct answer: chmod u+x emp[1-3]
  • A. ccp
  • B. du
  • C. cmp
  • D. comp

Explanation: The Unix `cmp` command compares two files byte by byte and reports where their contents first differ.

Correct answer: cmp
  • A. [Control-d]
  • B. [Control - u]
  • C. [Control-c]
  • D. [Control -P]

Explanation: In vi, Ctrl-U scrolls backward by approximately half a screen. Ctrl-D scrolls forward by half a screen, while Ctrl-C interrupts and Ctrl-P…

Correct answer: [Control - u]
  • A. -t
  • B. -tt
  • C. -4
  • D. -i

Explanation: The `-t` option is used in the command convention tested here to include the filesystem's total disk-space information.

Correct answer: -t
  • A. /
  • B. ?
  • C. //
  • D. ??

Explanation: A forward slash `/` starts a forward search in vi, moving from the cursor toward the end of the file.

Correct answer: /