Quiz Space

System Commands · End Term · 10 May 2026 · January 2026 term · Set 1-2

Question 14: After executing the following shell script Which of the …

Question 14

+5 marksOne or more correct options

After executing the following shell script

Which of the following statements are true?

Select all that apply.

  1. A

    total becomes the number of lines

  2. B

    total prints empty or 0

  3. C

    loop runs in a subshell

  4. D
Show answer

Correct answers

  • B

    total prints empty or 0

  • C

    loop runs in a subshell

Question 14 of 20 in the IIT Madras BS System Commands (System Commands) End Term paper sat on 10 May 2026, in the January 2026 term (System Commands 06 May 26). It carries 5 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2Figure question
  3. Q3Figure question
  4. Q4Figure question
  5. Q5Figure question
  6. Q6A system administrator writes the following shell script to test whether a remote host is reachable before initiating a…
  7. Q7What is the output produced by the above script?
  8. Q8A system administrator creates the following script named cleanup.sh to prevent the application log file from growing t…
  9. Q9A developer writes the following Bash script to process all .txt files present in the current working directory : The s…
  10. Q10Figure question
  11. Q11What is the output after executing the shell script
  12. Q12A data engineer is given a file file.txt containing product names collected from multiple sources.\ The file may contai…
  13. Q13A repository has: How many total commits will exist after all merges?
  14. Q15Figure question
  15. Q16Figure question
  16. Q17Consider the files f1 and f2 with their content\ File f1 with content : File f2 with content :
  17. Q18Which commands can create a new branch reference?
  18. Q19The attendance.txt file contains the following data: And the script report.awk is : How many employees receive bonuses?
  19. Q20The attendance.txt file contains the following data: And the script report.awk is : The Value of the absent variable is?