System Commands End Term: 30 April 2023, Set QPD1-S1 (January 2023 term)
The IIT Madras BS System Commands (System Commands) End Term paper sat on 30 Apr 2023, in the January 2023 term, set QPD1-S1: 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
- 6
Show answer
Correct answer
Question 2
Every Monday at 00:05
Every Monday at 05:00
Everyday at 08:00
Everyday at 08:05 in May
Show answer
Correct answer
Every Monday at 00:05
Question 3
Show answer
Correct answer
Question 4
The file name with the maximum number of lines among the files that are passed as arguments is printed
The file name that has the minimum number of lines among the files that are passed as arguments is printed
The file name that is passed as the first file argument is printed
The file name that is passed as the last file argument is printed
Show answer
Correct answer
The file name with the maximum number of lines among the files that are passed as arguments is printed
Question 5
file1 and file2 have the same number of lines
file2 being the copy of file1
file2 containing all the lines that start and end with a number
file1 containing all the lines that start and end with a number
Show answer
Correct answer
file1 containing all the lines that start and end with a number
Question 6
9 45 27
9 9 18
9 27 27
9 27 18
Show answer
Correct answer
9 45 27
Question 7
Show answer
Correct answers
Question 8
Show answer
Correct answers
Question 9
Show answer
Correct answers
Question 10
file0
file1
file2
file3
file4
file5
file6
file10
Show answer
Correct answers
file0
file2
Question 11
This regex will match with 1 character palindrome
This regex will match with 2 character palindrome
This regex will match with 3 character palindrome
This regex will match with 4 character palindrome
Show answer
Correct answers
This regex will match with 2 character palindrome
This regex will match with 3 character palindrome
This regex will match with 4 character palindrome
Question 12
Show answer
Correct answer
Question 13
Which of the following command prints all the keys present in an bash associative array.
Show answer
Correct answer
Question 14
Based on the above data, answer the given subquestions.
Apparently, her code had some issues. Identify all the flaws from the following options to facilitate debugging the script and the execution steps.
Show answer
Correct answers
Question 15
Based on the above data, answer the given subquestions.
Show answer
Correct answer
