Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 10 pages
Exam (elaborations)

DCOM 142 FINAL QUESTIONS & ANSWERS

Document preview thumbnail
Preview 2 out of 10 pages

DCOM 142 FINAL QUESTIONS & ANSWERS

Content preview

DCOM 142 FINAL QUESTIONS & ANSWERS


Which keystrokes invoke the pico or nano search function? - Answers -F6

Ctrl-W

Three keystrokes that can initiate a search-and-replace operation in nano are F14, , and
. - Answers -Ctrl+\
Esc+R

For which type of file is nano least likely to be useful for examining or editing? -
Answers -A LibreOffice word processing document

While in vi's command mode, you can type to undo a change. - Answers -u

To save a file and exit the vi text editor in command mode, type - Answers -ZZ

If you have never used a text editor before, the nano text editor is usually the best one
to learn first. - Answers -True

ASCII supports unique characters(not including control characters.) - Answers -128

GUI text editors for ASCII are superior to text-mode ASCII text editors because the GUI
editors support underlining, italics, and multiple fonts. - Answers -False

Unicode is useful for encoding most European languages but not not Asian languages. -
Answers -False

How would you remove two lines of text from a file when using vi? - Answers -In
command mode, position the cursor on the first line and type 2dd.

What is the name of the software that we downloaded. - Answers -Wingide

How would you write a test that says "if /tmp/foo is a directory or USERS is greater than
5"? - Answers -test -d /tmp/foo -o $USERS -gt 5

A conditional that lets you make multiple comparisons with a pattern is called: -
Answers -case

A file begins with #!/bin/csh. This means: - Answers -Running the script will invoke
/bin/csh to interpret the rest of the file

Most of nano's commands take the form of: - Answers -Control and another character

, How would you finish your script with an exit code of 42? - Answers -exit 42

Given the following script that is run through ./test.sh hello goodbye:

if [ -f $2 ]; then

echo "I am here"

fi



When will "I am here" be printed? - Answers -If a file called "goodbye" exists in the
current directory

The number of users logged in is in a variable called USERS. How would you test to
see if 5 users are logged in? - Answers -test $USERS -eq 5

What does this shell script do?

FOO=/tmp/foo

if [ ! -d $FOO ]; then

mkdir $FOO

fi - Answers -Creates /tmp/foo if it does not exist

Which shell command accepts input from the user's keyboard? - Answers -read

The if command looks for what exit code to consider a condition to be true? - Answers -
0

What is the correct way to assign the word "Hello" to a variable? - Answers -.
A="Hello"

Which of the following are correct about for and while loops? (choose two - Answers -
while loops have a test each cycle to determine if it should run again

for loops operate over a fixed list of items

Given the following part of a script:

if [ -f $1 ]; then

echo "I am here"

Document information

Uploaded on
January 24, 2026
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GEEKA
3.8
(366)
Sold
2165
Followers
1449
Items
60438
Last sold
8 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions