Quiz Space

May 2022 term · System Commands · BSSE2001

System Commands Quiz 1: 5 June 2022 (May 2022 term)

The IIT Madras BS System Commands (System Commands) Quiz 1 paper sat on 5 Jun 2022, in the May 2022 term: 20 questions for 50 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
20
Marks
50
Duration
120 min
MSQ
9
MCQ
9
Numerical
2

Updated

Official paper: IIT M DIPLOMA QUIZ1 EXAM QPE1 05 Jun 2022 IBA · No negative marking.

Question 1

+2 marksOne or more correct options

Select all that apply.

  1. A

    a

  2. B

    b

  3. C

    c

  4. D

    d

Show answer

Correct answers

  • A

    a

  • C

    c

Question 2

+2 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • D

Question 3

+2 marksOne or more correct options

Which of the following statement(s) will be true after executing the above command.

Select all that apply.

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

Correct answers

  • B
  • C

Question 4

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

Correct answer

  • D

Question 5

+3 marksOne correct option
  1. A

    Number of files in the current directory.

  2. B

    Number of directories in the current directory.

  3. C

    Number of directories and all sub-directories in the parent directory.

  4. D

    Number of directories and all sub-directories in the current directory.

  5. E

    Number of directories in the parent directory.

Show answer

Correct answer

  • D

    Number of directories and all sub-directories in the current directory.

Question 6

+4 marksOne correct option

Below are three date-time formats according to ISO 8601 in UTC

Select the extended regular expression that matches only with one of the above date-time formats.

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

Correct answer

  • C

Question 7

+4 marksOne or more correct options

Select all that apply.

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

Correct answers

  • C
  • D
  • E

Question 8

+2 marksOne correct option

The above command will print the filenames in the current working directory that,

  1. A

    Starts with an uppercase letter.

  2. B

    Starts with a lowercase letter.

  3. C

    Does not start with an uppercase letter.

  4. D

    Does not start with a lowercase letter.

Show answer

Correct answer

  • D

    Does not start with a lowercase letter.

Question 9

+2 marksOne correct option

What will be the output of the last command in the above sequence of commands?

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

Correct answer

  • B

Question 10

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

Correct answer

  • D

Question 11

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

Correct answer

  • B

Question 12

+2 marksOne correct option
  1. A

    After 10 seconds.

  2. B

    After 20 seconds.

  3. C

    After 30 seconds.

  4. D

    Immediately.

Show answer

Correct answer

  • D

    Immediately.

Question 13

+2 marksOne correct option
  1. A

    1—>b; 2—>a; 3—>a; 4—>c;

  2. B

    1—>a; 2—>b; 3—>b; 4—>d;

  3. C

    1—>a; 2—>b; 3—>b; 4—>c;

  4. D

    1—>b; 2—>a; 3—>b; 4—>c;

Show answer

Correct answer

  • D

    1—>b; 2—>a; 3—>b; 4—>c;

Question 14

+2 marksNumerical answer

Below are the commands executed in the given sequence in an empty directory(containing no files or directories). Enter the number of files that will be created at the end of the execution of the below commands.

NOTE: Enter your answer to the nearest integer.

Show answer

Correct answer: 1

Question 15

+3 marksOne or more correct options

Select the command(s) that prints the file/directory names, that start with the letter "a" and end with the letter "e" (case-sensitive) present in the current working directory.

Select all that apply.

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

Correct answers

  • A
  • C

Question 16

+3 marksOne or more correct options

Consider the long listing output of the present working directory below.

Which of the following statement(s) are true?

Select all that apply.

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

Correct answers

  • A
  • C

Question 17

+3 marksOne or more correct options

Which of the following command will output the full names of the 3 youngest employees, one name on each line.

Select all that apply.

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

Correct answers

  • A
  • B

Question 18

+3 marksOne or more correct options

Which of the following statements for hard and soft(symbolic) links are true.

Select all that apply.

  1. A

    Inode of a file and its hard link will be the same.

  2. B

    Inode of a file and its soft link will be the same.

  3. C

    Hard links become inaccessible after the file it links to is deleted.

  4. D

    Soft links become inaccessible after the file it links to is deleted.

Show answer

Correct answers

  • A

    Inode of a file and its hard link will be the same.

  • D

    Soft links become inaccessible after the file it links to is deleted.

Question 19

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

NOTE: Enter your answer to the nearest integer.

Show answer

Correct answer: 1

Question 20

+2 marksOne or more correct options

Based on the above data, answer the given subquestions.

Select all that apply.

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

Correct answers

  • E
  • F