JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
Quiz on Shell Scripting
Test you skills on Shell scripting
* Indicates required question
Email
*
Record my email address with my response
Which command is used to execute a shell script?
*
1 point
run
execute
sh
script
What is the purpose of the shebang (#!) line at the beginning of a shell script?
*
1 point
It specifies the interpreter to be used to execute the script.
It defines the shell's environment variables.
It comments out the script.
The line that sets the script's execution permissions.
How do you assign the output of a command to a variable in shell scripting?
*
1 point
var = $(command)
var := $(command)
var = command
var := command
shows the count of the arguments passed to the script.*
*
1 point
%#
$#
$$
%$
What is the purpose of the "if" statement in shell scripting?
*
1 point
It is used to define a loop.
It is used to define a function.
It is used to make decisions based on conditions.
It is used to redirect input/output.
Which loop construct is used to iterate over a list of values in shell scripting?
*
1 point
for loop
while loop
until loop
do-while loop
How do you comment out a line in a shell script?
*
1 point
// Comment
/* Comment */
# Comment
<!-- Comment -->
Which command is used to read user input in shell scripting?
*
1 point
echo
print
read
input
Submit
Clear form
This content is neither created nor endorsed by Google. -
Terms of Service
-
Privacy Policy
Does this form look suspicious?
Report
Forms