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

UNIX/Linux Commands Quiz

This document is a quiz on UNIX/Linux commands for a course module. It contains 17 multiple choice questions testing knowledge of commands like grep, cat, cp, date and their usage. The questions cover topics like file permissions, searching files, running multiple commands, and using wildcards and quotes in patterns. The student has not yet attempted or answered any of the questions.

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)
229 views9 pages

UNIX/Linux Commands Quiz

This document is a quiz on UNIX/Linux commands for a course module. It contains 17 multiple choice questions testing knowledge of commands like grep, cat, cp, date and their usage. The questions cover topics like file permissions, searching files, running multiple commands, and using wildcards and quotes in patterns. The student has not yet attempted or answered any of the questions.

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

9/15/23, 7:30 PM 3rd Module Assessment

Dashboard / My courses / Unix /Linux Programming (CSIT803)-Semester III / #Module 3: UNIX/LINUX COMMANDS

/ 3rd Module Assessment

Question 1

Not yet answered

Marked out of 1.00

Which of these commands is used for searching a pattern in one or more file(s)?

Select one:
a. cd
b. cp
c. paste
d. grep
Clear my choice

Question 2

Not yet answered

Marked out of 1.00

Shell provides us with an interface to the operating system.

Select one:
a. True
b. False
c. May be True
d. None of these
Clear my choice

[Link] 1/9
9/15/23, 7:30 PM 3rd Module Assessment

Question 3

Not yet answered

Marked out of 1.00

How many types of permissions a file has in UNIX?

Select one:
a. 1
b. 2
c. 3
d. 4
Clear my choice

Question 4

Not yet answered

Marked out of 1.00

For which of these purposes is the bc command used?

Select one:
a. as a calculator
b. as an editor
c. as a process table viewer
d. for copying files
Clear my choice

[Link] 2/9
9/15/23, 7:30 PM 3rd Module Assessment

Question 5

Not yet answered

Marked out of 1.00

Sometimes it is not possible to copy a file.

Select one:
a. True
b. False
c. May be True
d. None of these
Clear my choice

Question 6

Not yet answered

Marked out of 1.00

Multiple arguments as filenames can be specified in cat command.

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

[Link] 3/9
9/15/23, 7:30 PM 3rd Module Assessment

Question 7

Not yet answered

Marked out of 1.00

In how many categories are the commands of UNIX operating system classified?

Select one:
a. 1
b. 2
c. Many
d. 0
Clear my choice

Question 8

Not yet answered

Marked out of 1.00

The prompt issued by the shell is called ______.

Select one:
a. prompt
b. command translator
c. command prompt
d. command executor
Clear my choice

[Link] 4/9
9/15/23, 7:30 PM 3rd Module Assessment

Question 9

Not yet answered

Marked out of 1.00

Which command is used for displaying date and calendar in UNIX?

Select one:
a. date and cal
b. DATE and CAL
c. date and calendar
d. dt and cl
Clear my choice

Question 10

Not yet answered

Marked out of 1.00

Echo command is used for _________.

Select one:
a. displaying errors
b. displaying operating system details
c. displaying diagnostic messages
d. displaying date and time
Clear my choice

[Link] 5/9
9/15/23, 7:30 PM 3rd Module Assessment

Question 11

Not yet answered

Marked out of 2.00

How can we specify more than one command in the command line at the same time?

Select one:
a. a) using ;
b. b) using >
c. c) using ==
d. d) not possible
Clear my choice

Question 12

Not yet answered

Marked out of 2.00

Which command is used for displaying contents of a file?

Select one:
a. a) cp
b. b) rm
c. c) cat
d. d) mkdir
Clear my choice

[Link] 6/9
9/15/23, 7:30 PM 3rd Module Assessment

Question 13

Not yet answered

Marked out of 2.00

Which of the following is not an option of cp command?

Select one:
a. minus z
b. minus i
c. minus R
d. minus u
Clear my choice

Question 14

Not yet answered

Marked out of 2.00

What is the output of who command?

Select one:
a. a) display information about users who are currently logged in.
b. b) display file hierarchy
c. c) display administrator information
d. 6
Clear my choice

[Link] 7/9
9/15/23, 7:30 PM 3rd Module Assessment

Question 15

Not yet answered

Marked out of 4.00

If we create a file using cat command with the same filename which already exists in the current directory, then:

Select one:
a. a) existing file is deleted
b. b) new file will be created separately
c. c) existing file will be overwritten
d. d) an error will be produced
Clear my choice

Question 16

Not yet answered

Marked out of 4.00

If there are special characters in a pattern, then we’ve to enclose them in __________.

Select one:
a. a) single quotes
b. b) double quotes
c. c) without any quotes
d. d) all quotes
Clear my choice

[Link] 8/9
9/15/23, 7:30 PM 3rd Module Assessment

Question 17

Not yet answered

Marked out of 4.00

What are meta-characters?

Select one:
a. a) special characters having predefined meaning to the shell
b. b) special symbols
c. c) shell symbols
d. d) command symbols
Clear my choice

◄ 3.6.3 The ln command

Jump to...

Module 3 Feedback Form ►

[Link] 9/9

You might also like