Free Software Design and Architecture MCQs with Answers

493 Software Design and Architecture 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

493 questions · page 5 of 25

  • A. init 0
  • B. Shutdown -t
  • C. Shutdown -g -y0
  • D. Ctrl+Alt+Del

Explanation: `init 0` changes the system to runlevel 0, which shuts the system down.

Correct answer: init 0
  • A. SMB (Samba) Connectivity
  • B. IPX/NetWare Connectivity
  • C. Dial-up Workstation
  • D. All of the above

Explanation: SMB, provided by Samba on Linux, enables file and printer sharing with Windows clients.

Correct answer: SMB (Samba) Connectivity
  • A. cut sales empl.lst
  • B. /sales > empl.lst
  • C. grep sales empl.lst
  • D. cat | /sales > empl.lst

Explanation: `grep sales empl.lst` searches `empl.lst` and prints every line containing the string `sales`.

Correct answer: grep sales empl.lst
  • A. /usr/local
  • B. /usr/src/linux
  • C. /usr/sre/redhat
  • D. /usr/bin

Explanation: In traditional Linux layouts, kernel source and header files are placed under `/usr/src/linux`, which is the usual starting point for…

Correct answer: /usr/src/linux
  • A. fdisk
  • B. mkfs
  • C. fsck
  • D. mount

Explanation: `mkfs` creates a file system on a disk partition or device. `fdisk` changes partition tables, `fsck` checks or repairs file systems, and…

Correct answer: mkfs
  • A. /home
  • B. /proc
  • C. /var
  • D. /sbin

Explanation: `/sbin` traditionally contains essential system-administration commands and system configuration-related executables, usually intended for…

Correct answer: /sbin
  • A. chgrp
  • B. chown
  • C. chmod
  • D. chusr

Explanation: `chmod` changes file permissions for the owner, group, and other users, including read, write, and execute permissions.

Correct answer: chmod
  • A. copy wb ../misc collect ../misc mon ../misc
  • B. cp wb collect mon ../misc
  • C. copy wb collect mon /misc
  • D. tar wb collect mon /misc

Explanation: `cp wb collect mon ../misc` copies all three files to the `misc` directory one level above the current `programs` directory.

Correct answer: cp wb collect mon ../misc
  • A. wc - r
  • B. wc - w
  • C. wc - c
  • D. wc - l

Explanation: In `wc`, the `-l` option counts newline characters, which normally corresponds to the number of lines in a text file.

Correct answer: wc - l
  • A. chmod g+x note
  • B. chmod u+w note
  • C. chmod u+x note
  • D. chmod ugo+x note

Explanation: The `u` permission class means the file owner, and `+x` adds execute permission, so `chmod u+x note` targets exactly the owner.

Correct answer: chmod u+x note
  • A. I
  • B. i
  • C. a
  • D. A

Explanation: In vi command mode, uppercase `A` moves to the end of the current line and enters insert mode, appending text there.

Correct answer: A
  • A. r
  • B. R
  • C. s
  • D. S

Explanation: Uppercase `R` enters replace mode and replaces successive characters from the cursor toward the right until the mode is exited.

Correct answer: R
  • A. 16
  • B. 4
  • C. 2
  • D. 1

Explanation: Under the traditional MBR partition scheme, a drive can contain at most four primary partition entries.

Correct answer: 4
  • A. x
  • B. y
  • C. a
  • D. z

Explanation: In vi’s normal mode, x removes the character under the cursor, making it the single-character deletion command.

Correct answer: x
  • A. /usr/tmp
  • B. /etc/default
  • C. /etc/skel
  • D. /etc/users

Explanation: The /etc/skel directory contains template files copied into a new user’s home directory when the account is created.

Correct answer: /etc/skel
  • A. copy
  • B. cp
  • C. cpio
  • D. tar

Explanation: cp is the standard Unix command for copying files and directories. cpio and tar primarily create or extract archives, while copy is not…

Correct answer: cp
  • A. [!ijk]
  • B. [ijk]
  • C. ?
  • D. *

Explanation: The ? shell wildcard matches exactly one character, whereas * matches zero or more characters.

Correct answer: ?
  • A. which
  • B. pwd
  • C. i /4
  • D. who am i

Explanation: who am i displays the effective username of the current session, often helping identify the logged-in account.

Correct answer: who am i
  • A. Open System Software
  • B. Original Source Software
  • C. Open Source Software
  • D. Original System Server

Explanation: OSS means Open Source Software, whose source code is available for inspection, modification, and redistribution under its licence.

Correct answer: Open Source Software
  • A. a program that places programs into memory and prepares them for execution
  • B. a program that automate the translation of assembly language into machine language
  • C. is a program that appears to execute a source program as if it were machine language
  • D. program that accepts a program written in a high level language and produces an object program

Explanation: An interpreter executes a source program by translating and performing its instructions during execution, giving the appearance that the…

Correct answer: is a program that appears to execute a source program as if it were machine language