All Free Software Engineering MCQs with Answers
Every Software Engineering question in the bank, across all chapters, each with the correct answer and a written explanation. Free and unlimited, with no account needed.
1,731 questions · page 38 of 87
- A. write
- B. mesg
- C. calendar
- D. mail
Explanation: The Unix `calendar` command checks calendar files and displays scheduled reminders.
Correct answer: calendar- A. -m.n
- B. +m.n
- C. + n.m+1
- D. +(m+l).n
Explanation: In the traditional Unix `sort` syntax, `+m.n` specifies a sort key beginning at a character position within a field, so option b matches…
Correct answer: +m.n- A. password
- B. login
- C. shell
- D. home
Explanation: The seventh colon-separated field in `/etc/passwd` specifies the user’s login shell, such as `/bin/bash`.
Correct answer: shell- A. -c
- B. -i
- C. -d
- D. -s
Explanation: With `ls`, the `-s` option displays the amount of disk space allocated to each file in blocks.
Correct answer: -s- A. chkdsk
- B. fdisk
- C. du
- D. disk
Explanation: `du` means disk usage and summarizes the space consumed by files and directories.
Correct answer: du- A. ls
- B. lp
- C. dir
- D. tar
Explanation: `ls` lists the contents of a directory, with optional flags controlling details, ordering, and formatting.
Correct answer: ls- A. rm *
- B. rm -r *
- C. rm all
- D. rm *.*
Explanation: `rm -r *` recursively removes the non-hidden entries in the current directory, including their files and subdirectories.
Correct answer: rm -r *- A. ls -l
- B. ls -x
- C. ls -F
- D. ls -a
Explanation: `ls -a` includes entries whose names begin with a dot, so it shows hidden files along with ordinary files.
Correct answer: ls -a- 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: cp758. What TCP/IP protocol is used for transferring electronic mail messages from one machine to another ?
- 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