Search Header Logo

USP LAB Quiz

Authored by Shubha V

Computers

University

Used 3+ times

USP LAB Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Identify the wrong answer for the below Command.

chmod 676 a.txt

chmod u=rw-,g=rwx,o=rw- a.txt

chmod u=rwx,g=rwx,o=rw- u-x a.txt

chmod u=rw-,g=rwx,o=rw- u-x a.txt

None of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which command is used to display the last 10 lines of a file?

head

tail

more

less

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What command is used to display information about only logged-in user in Linux?

who

users

logged

whoami

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Select appropriate answer for creating a file in Linux?

touch

vi

ls > b.txt

All of the above

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the command to exit from the VI editor without saving the content.

:wq

:x

:q!

:q

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the first line (shebang) in a shell script?

It defines the author of the script.

It specifies the interpreter to be used for executing the script.

It provides a summary of the script's functionality.

It gives path of the shell used

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following expression in shell programming?

[ 10 -eq 5 ]

True

False

Error: Invalid syntax.

Error: Numeric comparison not supported.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?