Shell Programming Quiz ex.no 2

Shell Programming Quiz ex.no 2

University

10 Qs

quiz-placeholder

Similar activities

C Pointer

C Pointer

University

7 Qs

DATSRUC Week 6

DATSRUC Week 6

10th Grade - University

15 Qs

Soal Java

Soal Java

11th Grade - University

15 Qs

Data Structure#1

Data Structure#1

University

10 Qs

c language quiz

c language quiz

University

9 Qs

Kuis 3  - ASD - A

Kuis 3 - ASD - A

University

10 Qs

Python Workshop Day - 2

Python Workshop Day - 2

University

15 Qs

Object Oriented BTech

Object Oriented BTech

University

15 Qs

Shell Programming Quiz ex.no 2

Shell Programming Quiz ex.no 2

Assessment

Quiz

Computers

University

Easy

Created by

Denisha 2539

Used 2+ times

FREE Resource

AI

Enhance your content

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax to declare a variable in Shell?

variable_name = variable_value

var3 = 20

var1 : 10

var2 = Shell Programming

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to add values in Shell?

+

-

&

*

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to compare if two numbers are equal in Shell?

[ $a == $b ]

[ $a != $b ]

[ $a -eq $b ]

[ $a -ne $b ]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you concatenate two strings in Shell?

merge

append

concat

join

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to find the maximum of three numbers in Shell?

Using loops

Using comparison operators

Using if-else statements

Using arrays

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you perform arithmetic operations using switch case in Shell?

Using comparison operators

Using arrays

Using loops

Using if-else statements

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax to declare an array in Shell?

array(index) = value

array[index] : value

array{index} = value

array[index] = value

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?