DCOM 142 Final Exam questions n
answered graded A+ 2025/2026
Which of the following statements is included is a case statement to denote the end of a case
statement? - correct answer ✔✔esca
What key(s) will enable insert mode in "vi" editor? - correct answer ✔✔"i" key
What key will you use to delete a line in "vi" editor? - correct answer ✔✔"dd"
what key will you use to delete a line in "vi" editor? - correct answer ✔✔"dd"
After using a text editor to create a shell script, what step should you take before typing to use
the script by typing its name? - correct answer ✔✔Set one or more executable bits using chmod
Which of the following entries is maintained at the first line of the bash script? - correct answer
✔✔#!/bin/bash
Which of the following extensions is used at the end of the script name? - correct answer
✔✔.sh
What is the effect of the following short script, ex1, if it's called as ex1 big.c big.cc? #!/bin/bash
cp $2 $1 - correct answer ✔✔it copies the contents of big.cc to big.c, eliminating the old big.c
Given the following script that is run through ./test.sh hello goodbye :
, if [ -f $2 ]; then echo "I am here" fi - correct answer ✔✔if a file called "goodbye" exists in the
current directory the script will always print "I am here"
True or False; Valid looping statements in Bash include for, while and if-elseif-fi. - correct answer
✔✔False
True or False: A user types myscript laser.txt to run a script called myscript. within myscript, the
$0 variable holds the value laser.txt - correct answer ✔✔False
Which of the following is a physical arrangement in a computer that contains the computer's
basic hardware and components? - correct answer ✔✔Motherboard
Which of the following is the valid device file name for the first IDE hard drive on the system? -
correct answer ✔✔/dev/hda
Which of the following are valid partitioning types (choose two) - correct answer ✔✔MBR
GPT
Choose all of the following statements that are true in regard to virtual RAM (choose three) -
correct answer ✔✔Virtual RAM is used when available physical RAM is low.
Virtual RAM is stored on a hard drive.
Virtual RAM is also called swap space.
What command is used to display all hard drive partitions? - correct answer ✔✔fdisk -l
Which of the following tools is best suited to installing a software package and all of its
dependencies on a Debian computer? - correct answer ✔✔apt-get
answered graded A+ 2025/2026
Which of the following statements is included is a case statement to denote the end of a case
statement? - correct answer ✔✔esca
What key(s) will enable insert mode in "vi" editor? - correct answer ✔✔"i" key
What key will you use to delete a line in "vi" editor? - correct answer ✔✔"dd"
what key will you use to delete a line in "vi" editor? - correct answer ✔✔"dd"
After using a text editor to create a shell script, what step should you take before typing to use
the script by typing its name? - correct answer ✔✔Set one or more executable bits using chmod
Which of the following entries is maintained at the first line of the bash script? - correct answer
✔✔#!/bin/bash
Which of the following extensions is used at the end of the script name? - correct answer
✔✔.sh
What is the effect of the following short script, ex1, if it's called as ex1 big.c big.cc? #!/bin/bash
cp $2 $1 - correct answer ✔✔it copies the contents of big.cc to big.c, eliminating the old big.c
Given the following script that is run through ./test.sh hello goodbye :
, if [ -f $2 ]; then echo "I am here" fi - correct answer ✔✔if a file called "goodbye" exists in the
current directory the script will always print "I am here"
True or False; Valid looping statements in Bash include for, while and if-elseif-fi. - correct answer
✔✔False
True or False: A user types myscript laser.txt to run a script called myscript. within myscript, the
$0 variable holds the value laser.txt - correct answer ✔✔False
Which of the following is a physical arrangement in a computer that contains the computer's
basic hardware and components? - correct answer ✔✔Motherboard
Which of the following is the valid device file name for the first IDE hard drive on the system? -
correct answer ✔✔/dev/hda
Which of the following are valid partitioning types (choose two) - correct answer ✔✔MBR
GPT
Choose all of the following statements that are true in regard to virtual RAM (choose three) -
correct answer ✔✔Virtual RAM is used when available physical RAM is low.
Virtual RAM is stored on a hard drive.
Virtual RAM is also called swap space.
What command is used to display all hard drive partitions? - correct answer ✔✔fdisk -l
Which of the following tools is best suited to installing a software package and all of its
dependencies on a Debian computer? - correct answer ✔✔apt-get