Skip to main content

Paper - II (x) — Operating Systems MCQ — 132 Practice Questions with Answers

Paper - II (x) — Operating Systems is a Computer Systems (Senior CI) topic in the RAS/RPSC syllabus. This page gathers exam-style Paper - II (x) — Operating Systems multiple-choice questions with correct answers and explanations, so aspirants can test recall and revise frequently examined concepts.

Practice 132 Paper - II (x) — Operating Systems multiple-choice questions with detailed answers and explanations. Ideal for RAS/RPSC exam preparation.

132 Questions Computer Systems (Senior CI)

Reviewed by: Aspirant Academy Editorial Team

Practice Questions

Q1. A file system uses a single-level indexed allocation scheme. One index block is reserved for a file and contains 256 direct data-block addresses. If each data block is 4 KB, and the index block itself is not counted as file data, what is the maximum file size addressable through that one index block?

A 16 MB
B 1 MB Correct
C 256 KB
D 4 MB

Explanation

Indexed allocation stores block addresses in an index block; the addressed blocks hold the file data. Here the index block has 256 direct entries and each entry points to one 4 KB data block. The maximum addressable file data is therefore 256 x 4 KB = 1024 KB, which is 1 MB. The index block is metadata and is explicitly excluded from the file-size calculation.

Q2. Which shell variable commonly holds the exit status of the most recently executed command in Bourne-style shell scripting?

A $0
B $? Correct
C $#
D $*

Explanation

Bourne-style shell scripts commonly test $? after a command to check whether it succeeded. By convention, zero indicates success and a non-zero value indicates some kind of failure or exceptional condition.

Q3. Which Linux file traditionally stores user account entries such as login name, UID, GID, home directory and login shell?

A /etc/hosts
B /etc/fstab
C /etc/passwd Correct
D /etc/shadow

Explanation

The passwd database is the standard account listing on Linux systems. With shadow passwords, the encrypted password data is kept separately in /etc/shadow, while /etc/passwd still records account identity and login environment fields.

Q4. A system has one resource type with 12 instances. The allocation vector is (2, 4, 1, 3), the maximum-demand vector is (4, 6, 5, 5), and the currently available count is 2. Which statement is correct about the state under the banker's safety test?

A It is safe; one safe sequence is P1, P2, P4, P3. Correct
B It is unsafe because P3 has need 4, which is greater than the initial available count.
C It is deadlocked because total allocated resources equal 10.
D It is safe only if P3 runs before P4.

Explanation

For a single resource type, Need = Max - Allocation = (2, 2, 4, 2). Starting with Available=2, P1 can complete and release 2, making 4 available; P2 can then complete and release 4, making 8 available; P4 and P3 can then complete. Since at least one such sequence exists, the state is safe, not deadlocked.

Q5. Which rsync option is archive mode, commonly used for backups because it preserves directories and important file attributes?

A -c
B -a Correct
C -n
D -z

Explanation

rsync -a selects archive mode, a common backup choice because it recurses through directories and preserves items such as links, permissions, owners, groups, and times. Dry-run, compression, and checksum modes address different needs.

You've seen 5 of 132 sample questions

Unlimited practice on Paper - II (x) — Operating Systems comes with the RAS Test Series + Practice pack. Sign up to save progress; practice sets open with a pack or Gate Pass.

More questions (pack required)

Pack unlocks practice

Q6.

A
B
C
D
Pack unlocks practice

Q7.

A
B
C
D
Pack unlocks practice

Q8.

A
B
C
D
Pack unlocks practice

Q9.

A
B
C
D
Pack unlocks practice

Q10.

A
B
C
D
Pack unlocks practice

Q11.

A
B
C
D
Pack unlocks practice

Q12.

A
B
C
D
Pack unlocks practice

Q13.

A
B
C
D
Pack unlocks practice

Q14.

A
B
C
D
Pack unlocks practice

Q15.

A
B
C
D

127 more questions can appear in generated practice.

Frequently Asked Questions

How many Paper - II (x) — Operating Systems MCQ questions are available?
There are 132 Paper - II (x) — Operating Systems practice MCQs available on Aspirant Academy, with detailed answers and explanations for each question.
Are answers and explanations provided for Paper - II (x) — Operating Systems MCQs?
Yes, every Paper - II (x) — Operating Systems question comes with the correct answer and a detailed explanation to help you understand the underlying concept.
How is Paper - II (x) — Operating Systems relevant to the RAS/RPSC exam?
Paper - II (x) — Operating Systems falls under the Computer Systems (Senior CI) section of the RAS/RPSC syllabus. It is a frequently tested area and regular practice with these MCQs will strengthen your preparation.
Can I practice Paper - II (x) — Operating Systems questions in Hindi?
Yes, Aspirant Academy offers bilingual support. You can practice Paper - II (x) — Operating Systems MCQs in both English and Hindi, including questions, options, and explanations.

More Topics in Computer Systems (Senior CI)

Continue your Computer Systems (Senior CI) preparation with these related topics.

Explore Other Subjects

Want unlimited practice on Paper - II (x) — Operating Systems?

Unlimited practice comes with the RAS Test Series + Practice pack. Create a free account to save progress and choose a pack or Gate Pass when you are ready.

Browse all subjects