Quiz Space

January 2024 term · System Commands · BSSE2001

System Commands End Term: 28 April 2024, Set QDF1 (January 2024 term)

The IIT Madras BS System Commands (System Commands) End Term paper sat on 28 Apr 2024, in the January 2024 term, set QDF1: 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.

Questions
15
Marks
100
Duration
180 min
MCQ
9
Numerical
1
Written
1
MSQ
4

Updated

Official paper: IIT M FOUNDATION DIPLOMA AN EXAM QDF3 28 Apr 2024 · No negative marking.

Question 1

+6 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 2

+6 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 3

+6 marksOne correct option
  1. A

    Prints the count of even numbers between 10 and 20.

  2. B

    Prints the count of odd numbers between 10 and 20.

  3. C

    Prints the sum of even numbers between 10 and 20.

  4. D

    Prints the sum of odd numbers between 10 and 20.

Show answer

Correct answer

  • A

    Prints the count of even numbers between 10 and 20.

Question 4

+6 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 5

+6 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 6

+6 marksOne correct option

What environment variable stores the path to the user’s home directory?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 7

+6 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 8

+8 marksOne correct option
  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • C

Question 9

+8 marksOne correct option

Which AWK script from the options can count the frequency of each word if executed on a text file? Note: The text file contains only words separated by spaces.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 10

+7 marksNumerical answer
Show answer

Correct answer: 5

Question 11

+7 marksWritten answer
Show answer

Correct answer: World

Question 12

+6 marksOne or more correct options

You want to find lines in a text file where the third field is a numeric value between 10 and 20 inclusive. Which command(s) would you use?

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answers

  • A
  • D
  • E

Question 13

+6 marksOne or more correct options

Select the correct option(s) to validate whether a string variable contains only digits in a bash script.

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • C

Question 14

+8 marksOne or more correct options

You're tasked with extracting phone numbers from a text document in the format of either (123) 456-7890 or 123-456-7890. Which regular expression (ERE) would you use to match both formats?

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • C
  • D

Question 15

+8 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • B
  • C