Quiz Space

September 2023 term · System Commands · BSSE2001

System Commands End Term: 24 December 2023, Set ADD3 (September 2023 term)

The IIT Madras BS System Commands (System Commands) End Term paper sat on 24 Dec 2023, in the September 2023 term, set ADD3: 15 questions for 105 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
15
Marks
105
Duration
180 min
MSQ
2
MCQ
12
Numerical
1

Updated

Official paper: IIT M DIPLOMA FN EXAM FDD1 24 Dec 2023 · No negative marking.

Question 1

+8 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • B
  • D

Question 2

+8 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • B

Question 3

+6 marksOne correct option
  1. A

    Jun 24,2009

  2. B

    April 4,2010

  3. C

    April 14,2009

  4. D

    April 24,2010

  5. E

    May 4,2010

  6. F

    May 14,2010

  7. G

    May 24,2010

  8. H

    Jun 4,2010

  9. I

    Jun 14,2009

  10. J

    Jun 24,2010

Show answer

Correct answer

  • E

    May 4,2010

Question 4

+6 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 5

+6 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 6

+7 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 7

+7 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 8

+7 marksOne correct option
  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • E

Question 9

+7 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 10

+7 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 11

+7 marksOne correct option
  1. A

    The output will be the count of all the lines with only one character present.

  2. B

    The output will be the count of all the empty lines present in the file.

  3. C

    The output will be the count of all the non-empty lines.

  4. D

    The output will be the count of the total number of lines present in the file.

Show answer

Correct answer

  • C

    The output will be the count of all the non-empty lines.

Question 12

+7 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 13

+7 marksOne correct option
  1. A

    Case 1 uses the input redirection method to read the file line-by-line.

  2. B

    Case 2 uses the pipe redirection to feed the cat output to the while loop.

  3. C

    The pipe redirection used in case 2 is inefficient compared to input redirection.

  4. D

    Case 3 uses command substitution with the for loop to read the file.

  5. E

    Case 4 is input redirection, which reads each entry in the data.txt file (assuming the file has three columns) into individual variables.

  6. F

    Case 5 reads the entire line of the data file and assigns it to the line variable.

  7. G

    None of the options are correct.

Show answer

Correct answer

  • G

    None of the options are correct.

Question 14

+9 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 15

+6 marksNumerical answer
Show answer

Correct answer: 5