Search Header Logo

Quiz 2

Authored by Parul Choudhary

Computers

University

Used 7+ times

Quiz 2
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

30 sec • 1 pt

Which command reads user input from the terminal and assign this value to a variable name?

get

read

set

echo

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following statement is true about variables in shell?

variables do not require declaration before assigning value to them

variables are case sensitive

to extract the contents of a variable, we have to provide the variable a preceding $

all of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this program?

  1. var1=10

  2. $var1=20

  3. echo $var1

  4. exit 0

program will print 10

program will generate a warning message

program will print 20

program will print 10 & 20

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to display the operating system name

unix

os

kernel

uname

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command changes a file’s group owner

cgrp

chgrp

change

group

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to extract a column from a text file

cut

paste

get

tar

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to display disk consumption of a specific directory

du

dd

ds

df

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?