Quiz Space

System Commands OPPE 2: September 2022 (September 2022 term)

Question 1

+15 marksProgramming

Write a SED script,

  • To insert a line # FUNCTION DEFINITION when the word def is found and that line should be shifted down.
  • To remove the line that has # TODO

Question 2

+15 marksProgramming

Write a SED script to replace all the colons : from input with tab character \t but when colon is preceded by backslash \: then it should be replaced with :

Question 3

+15 marksProgramming

Write a script to print only the contents inside the multi-line strings from the python file named myscript.py Note:

  1. The multi-line string will start with """ and ends with """
  2. There will be a single equal sign = before starting """ and there can be spaces in-between them.
  3. There is no text after starting """ and before """ in the same line.

5 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the System Commands OPPE 2 Sept 2022 paper

The IIT Madras BS System Commands (System Commands) OPPE 2 paper sat on Sept 2022, in the September 2022 term (T3 2022): 8 questions for 130 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureSystem Commands OPPE 2 Sept 2022 at a glance
TermSeptember 2022 term (T3 2022)
SubjectSystem Commands
Course codeBSSE2001
Questions8
Marks130
Duration180 min
Programming8
Official paperOPPE 2, Sep 2022
Negative markingNo negative marking.
Updated

More System Commands