
Bash Scripting Basics Quiz
Quiz
•
Instructional Technology
•
Vocational training
•
Practice Problem
•
Hard
T Branding
Used 1+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
TN bảo vệ thông tin máy tính
Quiz
•
9th Grade
15 questions
G3 - TABLE
Quiz
•
3rd Grade
10 questions
ARREGLOS Y MATRICES EN PSEINT
Quiz
•
10th Grade
10 questions
Informatika_Sistem Komputer
Quiz
•
1st - 12th Grade
12 questions
Coding: Variables
Quiz
•
3rd - 8th Grade
10 questions
Revision - Unit 3 & 6
Quiz
•
1st Grade
10 questions
INFORMATIKA KELAS VII
Quiz
•
9th - 12th Grade
15 questions
DIAGNOSTICO TECNOLOGÍA
Quiz
•
6th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
