Quiz Space

System Commands · Quiz 2 · 10 Jul 2022 · May 2022 term

System Commands Quiz 2 10 Jul 2022 — Question 8

Question 8

+6 marksOne correct option

What will the below command print?

  1. A

    Second occurrences of duplicate lines.

  2. B

    Distinct lines in the alphabetically sorted order.

  3. C

    Distinct lines in the order of first occurrence.

  4. D

    The lines that are present more than once.

Show answer

Correct answer

  • C

    Distinct lines in the order of first occurrence.

Question 8 of 18 in the IIT Madras BS System Commands (System Commands) Quiz 2 paper sat on 10 Jul 2022, in the May 2022 term (IIT M DIPLOMA QUIZ2 EXAM QPE1 10 July 2022). It carries 6 marks.

More questions from this paper

  1. Q1What is the output of the following bash script?
  2. Q2What is the expected output of the following command.
  3. Q3Figure question
  4. Q4Figure question
  5. Q5Figure question
  6. Q6Figure question
  7. Q7Figure question
  8. Q9Here is a part of information from AWK manual,
  9. Q10Figure question
  10. Q11Figure question
  11. Q12Figure question
  12. Q13The following bash script performs some operation. This script is run with some command line arguments. The command lin…
  13. Q14Figure question
  14. Q15Select all the correct statement(s) with respect to the given AWK script.
  15. Q16Select the output of the AWK script on the input given below.
  16. Q17Based on the above data, answer the given subquestions
  17. Q18Based on the above data, answer the given subquestions