Shell Programming Quiz ex.no 2

Shell Programming Quiz ex.no 2

University

10 Qs

quiz-placeholder

Similar activities

DSA Day 1

DSA Day 1

University

15 Qs

Array of Structure

Array of Structure

University

13 Qs

ARRAYLIST - JAVA

ARRAYLIST - JAVA

University

15 Qs

Struktur Data

Struktur Data

University

10 Qs

Lesson 2 - Passing Data to Subsystems

Lesson 2 - Passing Data to Subsystems

University

10 Qs

Java Arrays

Java Arrays

University

10 Qs

ARRAYS AND FUNCTIONS

ARRAYS AND FUNCTIONS

University

15 Qs

Kuis laravel pretest

Kuis laravel pretest

University

11 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

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?