100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

COSC 109 Final Exam Study Questions and Answers

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
06-12-2025
Written in
2025/2026

COSC 109 Final Exam Study Questions and Answers

Institution
COSC
Course
COSC









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
COSC
Course
COSC

Document information

Uploaded on
December 6, 2025
Number of pages
7
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

COSC 109 Final Exam Study
Questions and Answers7

In awk, what is the built-in variable that refers to the number of fields on the current record? -
ANSWERS-NF



In awk, which of the following gives the entire line of the current record? - ANSWERS-$0



Consider this statement which appears in an awk script:



printf("***%10s***%-8.2f***\n","Bob",123.45678)



What will be the corresponding output for this statement? - ANSWERS-*** Bob***123.46 ***



Display the contents of the file Exam.txt. - ANSWERS-cat Exam.txt



What command line would you enter to display all lines in file fum.txt that start with a number,
contains the string "Take 5" and ends with a non-numeric character? - ANSWERS-grep '^[0-
9].*Take 5.*[^0-9]' fum.txt



For all Java files in the current directory, display all lines containing the word Class at the
beginning of the line. Remember that filenames ending with ".java" are Java files. - ANSWERS-
cat *.java | grep '^Class'



File foo.txt and fee.txt are sorted files. Provide a command that displays all lines that are in file
foo.txt but are not in fee.txt - ANSWERS-comm -23 foo.txt fee.txt

, Which DOS command is used to list the names of files in the current folder? - ANSWERS-dir



In the vim editor, what command do you use to save and quit? - ANSWERS-:wq



In the vim editor, what command do you use to move the cursor to the end of the current line?
- ANSWERS-$



In the vim editor, what command would delete the last line of the file? - ANSWERS-Gdd



Which UNIX command is used to provide a second name (like an alias) for a file? - ANSWERS-ln



Which UNIX command is used to list the contents of a file? - ANSWERS-cat



What UNIX command can be used to see which user is the owner of a file? - ANSWERS-ls -l



In UNIX, which of the following is used to redirect the input door of a command to come from
another command's output door? - ANSWERS-|



Which directory is the root directory? - ANSWERS-/



Permissions can be granted to different group classifications. Which of the following is NOT one
of these group classifications? - ANSWERS-Root



5 bits can represent at most ____ different things - ANSWERS-32



The FAT12 file system can have up to_____entries in its File Allocation Table. - ANSWERS-4096

Get to know the seller

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.
Bensuda Oxford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
847
Member since
3 year
Number of followers
445
Documents
21474
Last sold
2 days ago
ECONOMICS,NURSING,BIOLOGY AND ALL REVISION MATERIALS

DEDICATED TO PROVIDE YOU WITH THE BEST LEARNING MATERIALS THAT WILL IMPROVE YOUR GRADES ,WELCOME TO ALIZGRADES AND LETS DO IT TOGETHER!!! GOODLUCK!!!!!!!

3.7

158 reviews

5
74
4
24
3
25
2
11
1
24

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Frequently asked questions