Quiz Space

January 2023 term · System Commands · BSSE2001

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.

Questions
15
Marks
100
Duration
180 min
MCQ
9
MSQ
6

Updated

Official paper: IIT M DIPLOMA ET1 EXAM QPD1 S2 30 Apr 2023 · No negative marking.

Question 1

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

Correct answer

  • B

Question 2

+6 marksOne correct option
  1. A

    Every Monday at 00:05

  2. B

    Every Monday at 05:00

  3. C

    Everyday at 08:00

  4. D

    Everyday at 08:05 in May

Show answer

Correct answer

  • A

    Every Monday at 00:05

Question 3

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

Correct answer

  • A

Question 4

+6 marksOne correct option
  1. A

    The file name with the maximum number of lines among the files that are passed as arguments is printed

  2. B

    The file name that has the minimum number of lines among the files that are passed as arguments is printed

  3. C

    The file name that is passed as the first file argument is printed

  4. D

    The file name that is passed as the last file argument is printed

Show answer

Correct answer

  • A

    The file name with the maximum number of lines among the files that are passed as arguments is printed

Question 5

+7 marksOne correct option
  1. A

    file1 and file2 have the same number of lines

  2. B

    file2 being the copy of file1

  3. C

    file2 containing all the lines that start and end with a number

  4. D

    file1 containing all the lines that start and end with a number

Show answer

Correct answer

  • D

    file1 containing all the lines that start and end with a number

Question 6

+8 marksOne correct option
  1. A

    9 45 27

  2. B

    9 9 18

  3. C

    9 27 27

  4. D

    9 27 18

Show answer

Correct answer

  • A

    9 45 27

Question 7

+6 marksOne or more correct options

Select all that apply.

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

Correct answers

  • C
  • D

Question 8

+6 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • B
  • D

Question 9

+6 marksOne or more correct options

Select all that apply.

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

Correct answers

  • C
  • D

Question 10

+8 marksOne or more correct options

Select all that apply.

  1. A

    file0

  2. B

    file1

  3. C

    file2

  4. D

    file3

  5. E

    file4

  6. F

    file5

  7. G

    file6

  8. H

    file10

Show answer

Correct answers

  • A

    file0

  • C

    file2

Question 11

+8 marksOne or more correct options

Select all that apply.

  1. A

    This regex will match with 1 character palindrome

  2. B

    This regex will match with 2 character palindrome

  3. C

    This regex will match with 3 character palindrome

  4. D

    This regex will match with 4 character palindrome

Show answer

Correct answers

  • B

    This regex will match with 2 character palindrome

  • C

    This regex will match with 3 character palindrome

  • D

    This regex will match with 4 character palindrome

Question 12

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

Correct answer

  • C

Question 13

+6 marksOne correct option

Which of the following command prints all the keys present in an bash associative array.

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

Correct answer

  • C

Question 14

+8 marksOne or more correct options

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.

Select all that apply.

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

Correct answers

  • A
  • B
  • E

Question 15

+6 marksOne correct option

Based on the above data, answer the given subquestions.

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

Correct answer

  • C