Bash Scripting Basics Quiz

Bash Scripting Basics Quiz

Vocational training

15 Qs

quiz-placeholder

Similar activities

SJDMNHS Google Classroom 2

SJDMNHS Google Classroom 2

Professional Development

10 Qs

(LS) CPA CPF5 Storage Device

(LS) CPA CPF5 Storage Device

6th - 12th Grade

10 Qs

teknologi informasi dan komunikasi

teknologi informasi dan komunikasi

8th Grade

10 Qs

BCS Network Security Test 1

BCS Network Security Test 1

University - Professional Development

20 Qs

MOODLE LMS

MOODLE LMS

10th Grade - Professional Development

20 Qs

Il Computer

Il Computer

8th Grade

12 Qs

Python

Python

University

15 Qs

Level 2 Digital Technologies

Level 2 Digital Technologies

8th Grade - Professional Development

18 Qs

Bash Scripting Basics Quiz

Bash Scripting Basics Quiz

Assessment

Quiz

Instructional Technology

Vocational training

Practice Problem

Hard

Created by

T Branding

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command prints "Hello World" to the terminal?

print "Hello World"

echo "Hello World"

say "Hello World"

write "Hello World"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you assign the value "5" to a variable named x?

x = 5

x=5

set x = 5

let x = 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does $x represent in a Bash script?

A new variable

The value of variable x

A command

An error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command lists all files in the current directory?

dir

ls

list

ls -l

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What’s the output of echo $((2 + 3))?

2 + 3

5

$((2 + 3))

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you make a script executable?

chmod +x script.sh

execute script.sh

chmod -x script.sh

run script.sh

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this loop print: for i in {1..3}; do echo $i; done?

1 2 3

123

1

Error

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?