Which metacharacter is used to match the start of a string i… Which metacharacter is used to match the start of a string in a regular expression? Read Details
What construct is used for looping in Bash when a condition… What construct is used for looping in Bash when a condition needs to be checked before each iteration? Read Details
What is the purpose of the BEGIN command in Awk What is the purpose of the BEGIN command in Awk Read Details
Which statement in Bash is used to compare a value against m… Which statement in Bash is used to compare a value against multiple patterns? Read Details
import os files = os.listdir(“.”) for f in files: if os.path… import os files = os.listdir(“.”) for f in files: if os.path.isfile(f): print(f) What does this code print? Read Details
x=5 y=10 if [ $x -ge 5 ] && [ $y -le 10 ]; then if [ $x -eq… x=5 y=10 if [ $x -ge 5 ] && [ $y -le 10 ]; then if [ $x -eq $y ]; then echo “A” else echo “B” fi else echo “C” fi What is printed? Read Details
What is the exit status of a command indicate in Bash? What is the exit status of a command indicate in Bash? Read Details
What is the purpose of the if name == “main”: statement in P… What is the purpose of the if name == “main”: statement in Python? Read Details
What is the purpose of the sys.argv variable in Python? What is the purpose of the sys.argv variable in Python? Read Details