Quiz Space

System Commands OPPE 2: January 2026 (January 2026 term)

Question 1

+20 marksProgramming

Given a list of filenames (with extensions), one per line, write a script that prints the unique file extensions, sorted alphabetically.

Instructions

  • Write your script in script.sh.
  • Read input from standard input.
  • Extensions are case-insensitive; output in lowercase with a leading dot.
  • Output should be sorted alphabetically and contain unique extensions only.

Sample Input

hello.txt
bye.pdf
cats.txt
video.mp4
music.mp3
document.docx
list.txt
song.mp3
movie.MP4

Sample Output

.docx
.mp3
.mp4
.pdf
.txt

Constraints

  • Filenames always contain at least one dot.
  • Extensions may be in any case; output must be lowercase.

Question 2

+20 marksProgramming

Given a number n, determine if it is a prime number.

Instructions

  • Write your script in script.sh.
  • Read an integer n from standard input.
  • Print "Prime" if n is a prime number, or "Not Prime" if it is not.
  • The script should be executable by your user.

Sample Input

5

Sample Output

Prime

Constraints

  • 1 <= n <= 10^6

Question 3

+20 marksProgramming

You receive a message encoded multiple times with base64. Decode it iteratively; stop when the decoded text contains a non-base64 character (the original message always does). Print the iteration number and decoded text for each step.

Instructions

  • Write your script in script.sh.
  • Read the encoded message from standard input.
  • For each iteration print: N: decoded_text
  • Stop when the decoded text contains a non-base64 character.

Sample Input

WVVjNU0wbEhSbmxhVTBJMVlqTlZMME5uUFQwSwo=

Sample Output

1: YUc5M0lHRnlaU0I1YjNVL0NnPT0K
2: aG93IGFyZSB5b3U/Cg==
3: how are you?

Constraints

  • The original message is guaranteed to contain a non-base64 character.
  • Non-base64 characters are anything outside [A-Za-z0-9+/=].

2 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 Jan 2026 paper

The IIT Madras BS System Commands (System Commands) OPPE 2 paper sat on Jan 2026, in the January 2026 term (T1 2026): 5 questions for 100 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 Jan 2026 at a glance
TermJanuary 2026 term (T1 2026)
SubjectSystem Commands
Course codeBSSE2001
Questions5
Marks100
Duration180 min
Programming5
Official paperOPPE 2, Jan 2026
Negative markingNo negative marking.
Updated

Same OPPE 2, other subjects

More System Commands