uiz Space

January 2026 term · System Commands · BSSE2001

System Commands End Term: 10 May 2026, Set 1 (January 2026 term)

The IIT Madras BS System Commands (System Commands) End Term paper sat on 10 May 2026, in the January 2026 term, set 1: 20 questions for 100 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
20
Marks
100
Duration
180 min
Numerical
8
MCQ
8
MSQ
4

Updated

Official paper: System Commands 06 May 26 · No negative marking.

Question 1

+5 marksNumerical answer

You are given a file emp.txt with the following contents

Show answer

Correct answer: 3

Question 2

+5 marksNumerical answer
Show answer

Correct answer: 6

Question 3

+5 marksNumerical answer

What is the output after executing the following shell script?

Show answer

Correct answer: 3

Question 4

+5 marksNumerical answer

What is the output after executing the following shell script?

Show answer

Correct answer: 0

Question 5

+5 marksNumerical answer

A developer runs the following shell commands to create a directory structure and count the number of files present:

Counts number of files found.

Show answer

Correct answer: 5

Question 6

+5 marksNumerical answer

A data analyst is processing a file that contains product categories and sales values:

Show answer

Correct answer: 30

Question 7

+5 marksNumerical answer

A commit tree has

Total number of Git objects stored = ?

Show answer

Correct answer: 22

Question 8

+5 marksOne correct option
  1. A

    2

  2. B

    4

  3. C

    1

  4. D

    Error

Show answer

Correct answer

  • C

    1

Question 9

+5 marksOne correct option

After executing the following shell script

What is printed on the terminal?

  1. A

    Hello World

  2. B

    World Hello

  3. C

    Hello

  4. D

    World

Show answer

Correct answer

  • B

    World Hello

Question 10

+5 marksOne correct option
  1. A

    Delete all duplicates

  2. B

    Remove adjacent duplicate lines

  3. C

    Sort lines

  4. D

    Remove blank lines

Show answer

Correct answer

  • B

    Remove adjacent duplicate lines

Question 11

+5 marksOne correct option
  1. A

    7

  2. B

    6

  3. C

    4

  4. D

    5

Show answer

Correct answer

  • D

    5

Question 12

+5 marksOne correct option
  1. A

    when file exists

  2. B

    when foo found

  3. C

    always

  4. D

    never

Show answer

Correct answer

  • B

    when foo found

Question 13

+5 marksOne correct option

A developer creates the following Makefile in an empty project directory:

  1. A

    1

  2. B

    2

  3. C

    3

  4. D

    0

Show answer

Correct answer

  • B

    2

Question 14

+5 marksOne correct option

If two developers clone the same remote repository and independently create commits on the same file and push without pulling, what will happen?

  1. A

    Last push overwrites previous

  2. B

    Remote automatically merges

  3. C

    Push rejected for non-fast-forward

  4. D

    Both commits are appended linearly

Show answer

Correct answer

  • C

    Push rejected for non-fast-forward

Question 15

+5 marksOne or more correct options

Select all that apply.

  1. A

    Output contains one N

  2. B

    Output contains two N

  3. C

    Output starts with N

  4. D

    Infinite loop

Show answer

Correct answers

  • A

    Output contains one N

  • C

    Output starts with N

Question 16

+5 marksOne or more correct options

Select all that apply.

  1. A

    Shows only IPs

  2. B

    Shows full DNS trace

  3. C

    Suppresses headers

  4. D

    Faster output

Show answer

Correct answers

  • A

    Shows only IPs

  • C

    Suppresses headers

  • D

    Faster output

Question 17

+5 marksOne or more correct options

Select all that apply.

  1. A

    Runs 6 times daily

  2. B

    Standard error is redirected

  3. C

    Executes only in the morning hours

  4. D

    Log file is overwritten

Show answer

Correct answers

  • A

    Runs 6 times daily

  • B

    Standard error is redirected

  • C

    Executes only in the morning hours

Question 18

+5 marksOne or more correct options

A DevOps engineer writes the following shell script to check whether a string variable is lexicographically greater than the value "b" before proceeding with a deployment step:

The script is executed in a Linux environment.
What is the result of executing the above script?

Select all that apply.

  1. A

    YES

  2. B

    NO

  3. C

    creates a file named b

  4. D

    syntax error

Show answer

Correct answers

  • A

    YES

  • C

    creates a file named b

Question 19

+5 marksOne correct option

Consider the following data to answer the given sub-questions.
The employees.txt file contains the following data:

The attendance.txt file contains the following data:

And the script report.awk is :

If an employee ID is missing in the attendance file, what happens?

  1. A

    Script crashes

  2. B

    days[id] becomes 0

  3. C

    Treated as present

  4. D

    Skipped

Show answer

Correct answer

  • B

    days[id] becomes 0

Question 20

+5 marksNumerical answer

Consider the following data to answer the given sub-questions.
The employees.txt file contains the following data:

The attendance.txt file contains the following data:

And the script report.awk is :

The Value of the present variable is?

Show answer

Correct answer: 3