
Bash Scripting introduction
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Jose Peiron
Used 3+ times
FREE Resource
Enhance your content in a minute
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of $#?
Shows the Process ID of the current script.
Shows the count of the arguments passed to the script.
Shows the end status of the last process to execute.
Returns the current line number of the script.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of $?
It gives more details about the ? command
It shows Variable $
It gives the exit status of the last command that was executed.
It is used with echo to show the current status of the echo command
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of this line "#! /bin/bash"
Is used on top of a script file to determine the output of the script
Instructs the user not to use /bin/bash
Determines the location of the engine which is to be used to execute the script
Its used to make the script look prettier
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command shows if /usr/bin is in the current shell search path?
cat PATH
echo $PATH
echo %PATH
cat $PATH
echo %PATH%
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is it possible to determine if an executable file is a shell script which is read by Bash?
The r bit is set.
The file must end with .sh.
The first line starts with #!/bin/bash.
/bin/bash has to be run in debug mode.
Scripts are never executable files.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements may be used to access the second command line argument to a script?
"$ARG2"
$1
"$2"
"$1"
'$2'
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
Round-1 "Bhikaiji Rustom Cama – QuizTory Masters"
Quiz
•
Professional Development
20 questions
Google Classroom Test
Quiz
•
Professional Development
20 questions
SPARK FIDDLE
Quiz
•
Professional Development
20 questions
Basics of programming - Quiz - 01
Quiz
•
University - Professi...
20 questions
Kuis Pelatihan API Kutim By GIZ
Quiz
•
University - Professi...
20 questions
C-Quest
Quiz
•
Professional Development
20 questions
machineLearning Test
Quiz
•
Professional Development
20 questions
JavaScript - Cuestionario de Repaso
Quiz
•
Professional Development
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
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
