System Commands End Term: 11 December 2022, Set ETD1 (September 2022 term)
The IIT Madras BS System Commands (System Commands) End Term paper sat on 11 Dec 2022, in the September 2022 term, set ETD1: 15 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.
- 15
- 100
- 180 min
- 9
- 3
- 3
Show answer
Correct answer
Question 2
soft link
hard link
either soft link or hard link
links will not work this requirement
Show answer
Correct answer
soft link
Question 3
Cut the paragraph and paste at the end of the document.
Copy the paragraph and paste at the end of the document.
Cut and paste the entire document (finally one copy of initial document).
Copy and paste the entire document (finally two copies of initial document).
Show answer
Correct answer
Copy and paste the entire document (finally two copies of initial document).
Question 4
file2 will NOT be empty at the end of execution
file3 will NOT be empty at the end of execution
The contents of file1 will be displayed in the terminal
file3 contains the contents of file1
Show answer
Correct answer
The contents of file1 will be displayed in the terminal
Question 5
Choose the regular expression to match with a string that contains at least a character repeated three times consecutively. Assume the regular expression is using Extended Regular Expression Engine (ERE).
Show answer
Correct answer
Question 6
Merge every two consecutive lines to a single line
Merge every three consecutive lines to a single line
Merge every four consecutive lines to a single line
The input remains unaltered
Show answer
Correct answer
Merge every four consecutive lines to a single line
Question 7
The lines that are distinct
The lines that are repeated exactly thrice
The lines that are repeated thrice or more
The lines that are repeated more than thrice
Show answer
Correct answer
The lines that are repeated thrice or more
Question 8
Show answer
Correct answer
Question 9
Show answer
Correct answer
Question 10
Show answer
Correct answers
Question 11
An empty line
A line having a number with only one decimal place (Ex: 10.1)
A line without a space
A line with three spaces
A line starts with two consecutive numbers
A line containing only four consecutive numbers
A line without a dot
A line with one or more dot characters
Show answer
Correct answers
An empty line
A line containing only four consecutive numbers
A line without a dot
Question 12
Show answer
Correct answers
Question 13
Show answer
Correct answer: 4
Question 14
Show answer
Correct answer: 147
Question 15
Show answer
Correct answer: 1
