LINUX MODULE 03 QUIZ

LINUX MODULE 03 QUIZ

University

10 Qs

quiz-placeholder

Similar activities

PYTHON_CHAPTER 6

PYTHON_CHAPTER 6

University

10 Qs

CHAPTER 5 ONLINE QUIZ

CHAPTER 5 ONLINE QUIZ

University

9 Qs

Javascript

Javascript

University

12 Qs

The AI Shield

The AI Shield

University

15 Qs

Unit 28 - Quiz #1

Unit 28 - Quiz #1

University

15 Qs

PROBLEM SOLVING USING R  UNIT I  MCQS

PROBLEM SOLVING USING R UNIT I MCQS

University

15 Qs

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

استعني علي الشقا بالله

استعني علي الشقا بالله

University

10 Qs

LINUX MODULE 03 QUIZ

LINUX MODULE 03 QUIZ

Assessment

Quiz

Computers

University

Medium

Created by

DIGVIJAY SINGH THAKUR

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a shell in Linux?

Hardware interface

Software kernel

Command interpreter

Text editor

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the default shell in most Linux distributions?

Bourne Again Shell (bash)

C shell (csh)

Bourne shell (sh)

Korn shell (ksh)

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct syntax for an if statement in bash?

if [ condition ]; then

if condition: then

if (condition); then

if {condition}; then

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following symbol is used to comment a line in shell scripts?

//

/* */

#

%%

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What file extension is typically used for shell scripts?

.sh

.bash

.txt

.shell

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will the following script output?

i=5

while [ $i -gt 0 ]; do

echo $i

i=$((i-1))

done

5 4 3 2 1

1 2 3 4 5

Infinite loop

Error in syntax

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you access the first argument passed to a shell script?

$arg1

$1

$first

$0

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?