Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
System Commands
Networking, packages & admin tools
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- MSQ: One or more options correct. Select all to score.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
Quiz 1 · 26 Oct 2025 (AN)Quiz 1
- Q1MCQ3 Marks·Choose one option
Which command will give information on open network ports on the machine?
- A

- B

- C

- D

- A
- Q2MSQ3 Marks·Choose all correct options
Which command is used to display the IP address and network interfaces of your Ubuntu system?
- A

- B

- C

- D

- E

- A
End Term · 31 Aug 2025 (FN)End Term
- Q3MCQ5 Marks·Choose one option

- A

- B

- C

- D

- A
- Q4MSQ5 Marks·Choose all correct options

- A

- B

- C

- D

- A
End Term · 31 Aug 2025 (AN)End Term
- Q5MCQ5 Marks·Choose one option

- A

- B

- C

- D

- A
- Q6MCQ5 Marks·Choose one option
You suspect a configuration file for the package nginx was modified manually. Which command will verify this without reinstalling or removing the package?
- A

- B

- C

- D

- A
- Q7MCQ5 Marks·Choose one option

- AOnly link target runs
- BBoth compile and link run
- CNothing runs since main.o exists
- DOnly compile runs
- Q8MSQ5 Marks·Choose all correct options

- A

- B

- C

- D

- E

- A
End Term · 13 Apr 2025 (FN)End Term
- Q9MCQ6 Marks·Choose one option
Select a command to find all established suspicious TCP connections on port 80 using netstat
- A

- B

- C

- D

- A
- Q10MCQ6 Marks·Choose one option
You are working in a team with multiple developers using Git. One of your colleagues has created a feature branch from main, but over time, the main branch has received several commits. Your colleague is now attempting to merge the feature branch into main, but a conflict arises in a file that was modified both in the main branch and in the feature branch. How would you resolve the conflict, ensuring that the feature branch is up-to-date with the latest changes from main and that no work is lost? Additionally, how would you ensure that this situation is prevented in the future?
- Aa. Merge the feature branch into main without updating main. Resolve conflicts directly in the merge commit. b. Regularly merge main into the feature branch to avoid future conflicts.
- Ba. Switch to the feature branch and run git pull origin feature-branch. b. Resolve the conflict directly in main, then push the changes.
- Ca. Ensure main is up-to-date by pulling the latest changes. b. Switch to the feature branch and merge main into it. c. Resolve the conflicts, commit the changes, and push the feature branch. d. Merge the feature branch into main via a pull request. e. Prevent future conflicts by encouraging regular updates between branches.
- Da. Merge the feature branch into main without resolving conflicts. b. Use git reset to undo any conflicts and continue with the merge.