
Bash Scripting Basics Quiz

Quiz
•
Instructional Technology
•
Vocational training
•
Hard
T Branding
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
ms word

Quiz
•
1st Grade - Professio...
20 questions
a123

Quiz
•
1st - 5th Grade
20 questions
Modern Technologies - BTEC ICT

Quiz
•
9th - 10th Grade
15 questions
BCS Logic and coding

Quiz
•
Professional Development
13 questions
"Desafio Linux: Testando Seu Conhecimento em Sistemas Operaciona

Quiz
•
Professional Development
15 questions
informatika sınaqları

Quiz
•
KG - University
10 questions
Microsoft Excel

Quiz
•
University
20 questions
QUIZ das girls

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade