uiz Space

January 2024 term · System Commands · BSSE2001

System Commands Quiz 1: 25 February 2024 (January 2024 term)

The IIT Madras BS System Commands (System Commands) Quiz 1 paper sat on 25 Feb 2024, in the January 2024 term: 16 questions for 100 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
16
Marks
100
Duration
120 min
MSQ
10
MCQ
3
Numerical
3

Updated

Official paper: IIT M DIPLOMA AN2 EXAM QDD2 25 Feb 2024 · No negative marking.

Question 1

+6 marksOne or more correct options

Ajit is writing an essay in English. He realizes that he has used both the American English and British English spellings for the same words in his essay. He wants to find all such occurrences for the words "color/colour" and "program/programme". Help him by selecting the correct regular expression which will capture the British version as well as American version of the words from the text. Make sure It only collects the words which has correct spellings in either of the format. Note: It is an Extended Regular Expression (ERE)

Select all that apply.

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

Correct answers

  • C
  • D

Question 2

+6 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • C

Question 3

+6 marksOne or more correct options

For a log file 'file.txt' the user wants to change the permissions such that he gives read, write, and execute to the owner; read and execute to the group and others. which of the following commands will accomplish the same?

Select all that apply.

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

Correct answers

  • B
  • D

Question 4

+6 marksOne or more correct options

Select all that apply.

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

Correct answers

  • C
  • E

Question 5

+6 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • D

Question 6

+6 marksOne or more correct options

Following bash script is run to find if a given file has a 'txt' extension. Which of the following option(s) will achieve the same?

Select all that apply.

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

Correct answers

  • A
  • E

Question 7

+9 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • C
  • E

Question 8

+9 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • B
  • C

Question 9

+8 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • D

Question 10

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

Correct answer

  • A

Question 11

+6 marksOne correct option
  1. A

    10

  2. B

    20

  3. C

    test1010

  4. D

    will result in error

Show answer

Correct answer

  • B

    20

Question 12

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

Correct answer

  • D

Question 13

+4 marksNumerical answer

How many soft links are present in the list?

Show answer

Correct answer: 2

Question 14

+4 marksNumerical answer

Assume that each directory has 2 hard links (one for the current working directory and another from its parent directory) and a link each for the sub-directory's parent directory. How many subdirectories are present in the current working directory?

Show answer

Correct answer: 14

Question 15

+6 marksOne or more correct options

From the given information, which of the following types are present in the list?

Select all that apply.

  1. A

    regular file

  2. B

    directory

  3. C

    hard links

  4. D

    soft/symbolic links

  5. E

    character files

  6. F

    block files

  7. G

    named pipe files

  8. H

    socket files

Show answer

Correct answers

  • B

    directory

  • D

    soft/symbolic links

  • E

    character files

Question 16

+6 marksNumerical answer
Show answer

Correct answer: 5