0% found this document useful (0 votes)
326 views9 pages

5th Module Assessment (26 Marks) Unix Linux Programming (CSIT803) - Semester III

This document is a quiz for a 5th module assessment on Unix/Linux programming. It contains 17 multiple choice questions testing knowledge of commands like sed, awk, shutdown, userdel, mount, df, and su. The questions cover stream editors, mounting file systems, setting file size limits, communicating with users via wall, pattern matching in awk, and obtaining root privileges.

Uploaded by

sayshahbazz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
326 views9 pages

5th Module Assessment (26 Marks) Unix Linux Programming (CSIT803) - Semester III

This document is a quiz for a 5th module assessment on Unix/Linux programming. It contains 17 multiple choice questions testing knowledge of commands like sed, awk, shutdown, userdel, mount, df, and su. The questions cover stream editors, mounting file systems, setting file size limits, communicating with users via wall, pattern matching in awk, and obtaining root privileges.

Uploaded by

sayshahbazz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

9/15/23, 8:06 PM 5th Module Assessment

Dashboard / My courses / Unix /Linux Programming (CSIT803)-Semester III / #Module 5: sed AND awk / 5th Module Assessment

Question 1

Not yet answered

Marked out of 1.00

Which of the following commands is known as stream editor?

Select one:
a. sed
b. gnu
c. grep
d. tr
Clear my choice

Question 2

Not yet answered

Marked out of 1.00

Which option do we use with the shutdown command to override the default waiting time?

Select one:

a. -s
b. -e
c. -g
d. -i
Clear my choice

https://amigo.amityonline.com/mod/quiz/attempt.php?attempt=587558&cmid=178058 1/9
9/15/23, 8:06 PM 5th Module Assessment

Question 3

Not yet answered

Marked out of 1.00

To remove users from the system we use userdel. State whether it is True or False.

Select one:
a. True
b. False
c. Partially True
d. Partially False
Clear my choice

Question 4

Not yet answered

Marked out of 1.00

Mounting a file system attaches that file system to a ________.

Select one:
a. directory
b. file
c. name
d. None of these
Clear my choice

https://amigo.amityonline.com/mod/quiz/attempt.php?attempt=587558&cmid=178058 2/9
9/15/23, 8:06 PM 5th Module Assessment

Question 5

Not yet answered

Marked out of 1.00

Whenever you mount or unmount a file system, the /etc/mnttab also known as _____ file is modified with the list of
currently mounted file systems.

Select one:
a. mont pointer
b. mount table
c. mount point
d. None of these
Clear my choice

Question 6

Not yet answered

Marked out of 1.00

What is the correct syntax for using sed?

Select one:
a. sed options file(s)
b. sed options ‘action’
c. sed options ‘address action’ file(s)
d. sed ‘action’ file(s)
Clear my choice

https://amigo.amityonline.com/mod/quiz/attempt.php?attempt=587558&cmid=178058 3/9
9/15/23, 8:06 PM 5th Module Assessment

Question 7

Not yet answered

Marked out of 1.00

Which of the following commands is used with sed for outputting as well as printing the selected lines?

Select one:
a. q
b. n
c. p
d. i
Clear my choice

Question 8

Not yet answered

Marked out of 1.00

Which command shuts down and reboot the system?

Select one:
a. shutdown -g2
b. shutdown -y -g0 -i6
c. shutdown -g2 -g0
d. shutdown -g2 i6
Clear my choice

https://amigo.amityonline.com/mod/quiz/attempt.php?attempt=587558&cmid=178058 4/9
9/15/23, 8:06 PM 5th Module Assessment

Question 9

Not yet answered

Marked out of 1.00

_______ command is used for setting limits on file size.

Select one:
a. limit
b. flimit
c. ulimit
d. flim
Clear my choice

Question 10

Not yet answered

Marked out of 1.00

_________ command allows superuser to communicate with the users.

Select one:
a. comm
b. cron
c. date
d. wall
Clear my choice

https://amigo.amityonline.com/mod/quiz/attempt.php?attempt=587558&cmid=178058 5/9
9/15/23, 8:06 PM 5th Module Assessment

Question 11

Not yet answered

Marked out of 2.00

Which of these commands is used to obtain root privileges?

Select one:
a. uname –p
b. whereis
c. su
d. suspend
Clear my choice

Question 12

Not yet answered

Marked out of 2.00

For pattern-matching, awk uses regular expressions in ____ style.

Select one:
a. a) sed
b. b) grep
c. c) perl
d. d) print
Clear my choice

https://amigo.amityonline.com/mod/quiz/attempt.php?attempt=587558&cmid=178058 6/9
9/15/23, 8:06 PM 5th Module Assessment

Question 13

Not yet answered

Marked out of 2.00

Which field is not stored in /etc/passwd?

Select one:
a. username
b. encrypted password
c. UID, GID
d. password
Clear my choice

Question 14

Not yet answered

Marked out of 2.00

Which of these commands is used for quitting after selecting 3 lines from file emp.lst?

Select one:
a. a) sed -n 3 emp.lst
b. b) sed -i 1-3 emp.lst
c. c) sed ‘3q’ emp.lst
d. d) sed -n
Clear my choice

https://amigo.amityonline.com/mod/quiz/attempt.php?attempt=587558&cmid=178058 7/9
9/15/23, 8:06 PM 5th Module Assessment

Question 15

Not yet answered

Marked out of 4.00

A default ______ file is created when you install a system depending on the selections you make when installing system
software.

Select one:
a. /etc/vtab
b. /etc/vfstab
c. /etc/sup
d. None of these
Clear my choice

Question 16

Not yet answered

Marked out of 4.00

State whether it is True or False. Consider the following commands. $ sed -n ‘1,2p’ emp.lst, $ sed -n ‘3,$!p’ emp.lst. The
output of both commands will be the same.

Select one:
a. TRUE
b. FALSE
c. May be
d. Can't say
Clear my choice

https://amigo.amityonline.com/mod/quiz/attempt.php?attempt=587558&cmid=178058 8/9
9/15/23, 8:06 PM 5th Module Assessment

Question 17

Not yet answered

Marked out of 4.00

To report free space on the disk, which command do we use?

Select one:
a. (A). df
b. (B). fd
c. (C). du
d. (D). sg
Clear my choice

◄ 5.3.5 Ensuring System Security

Jump to...

Module 5 Feedback Form ►

https://amigo.amityonline.com/mod/quiz/attempt.php?attempt=587558&cmid=178058 9/9

You might also like