All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 02 · MOCK TEST

Computer System Architecture — Mock Test 5

25 questions · about 30 minutes. Press End Mock any time to see your score and the correct answers.

0 / 25 answered 00:00
Q1. Level – 0 DFD is also called as:
Q2. Given two statements:
Assertion A: Validity checks real need of system users
Reason R: Completeness checks system user defined requirements
In the light of the above statements, choose the correct answer:
Q3. If every requirement can be checked by a cost-effective process, then SRS is called
Q4. The process to gather the software requirement from client, analyze and document is known as
Q5. The Software Requirement Specification (SRS) is said to be ________ if and only if no subset of individual requirements described in it conflict with each other.
Q6. Let n1 be the number of requirements for which all reviewers have identical interpretations and n2 be the total number of requirements. Which of the following is used to determine the specificity of the requirements?
Q7. Which one of the following statements, related to the requirements phase in Software Engineering, is incorrect?
Q8. Requirements prioritisation and negotiation belongs to:
Q9. Which of the following statements are CORRECT?
(A) A process always checks the state of the currently executing process to enter its critical section.
(B) Spin locks use busy waiting.
(C) Periodically testing a variable until some value appears is known as busy waiting.
(D) A critical region/section is the part of a program where shared memory (a shared resource) is accessed.
(E) A printer daemon continuously checks to see if there are any files to be printed.
Q10. At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and 'x' V operations were performed on this semaphore. If the final value of the semaphore is 5, what is x?
Q11. Match List I with List II:
List I: (A) Critical region (B) Wait/Signal (C) Working set (D) Deadlock
List II: (I) Hoare's monitor (II) Mutual exclusion (III) Principle of locality (IV) Circular wait
Choose the correct match from A-D to I-IV.
Q12. At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and 'x' V operations were performed on this semaphore. If the final value of the semaphore is 5, what is x?
Q13. In the design protocol of the critical section problem, each process must ask permission to enter the critical section in …… code; it then executes in the critical section; once it finishes executing in the critical section it enters the …… code. The process then enters the …… code.
Q14. Consider a system with five processes P0 through P4 and three resource types A, B and C, with 7, 2 and 6 total instances respectively. At time T0 the system state is:
ProcessAllocation (A,B,C)Request (A,B,C)
P0010000
P1200202
P2303000
P3211100
P4022002
Available = (0, 0, 0). Applying the deadlock detection algorithm, the system is:
Q15. The Bounded Buffer problem is also known as the ________.
Q16. Two atomic operations permissible on semaphores are ________ and ________.
Q17. Three processes share a single counting semaphore S whose initial value is 1. All three execute wait(S) one after another, in the order P2, P1, P3. After this, P2 exits its critical section by executing signal(S), and then P1 exits by executing signal(S). What is the value of S after these five operations?
Q18. In the UNIX operating system, when a process creates a child process using the fork() system call, which of the following is genuinely shared between the parent and child process, rather than being copied?
Q19. A system has 12 instances of a resource R shared among four processes. The maximum need and current allocation of each process are:
ProcessMax NeedCurrent Allocation
P183
P294
P352
P431
With reference to the current allocation, is the system in a safe state? If so, what is a safe sequence?
Q20.

Match List I with List II

Figure
Figure
Q21.

The write operation in I/O operation does the following-

Q22.

Which of the following gates do not give output 1 when both the inputs are 0 -

A. NAND gate

B. NOR gate

C. X-OR gate

D. X-NOR gate

Q23.

Which of the following statements are true ?

A. In the write-through policy, only the cache is updated

B. In the write-back policy, both cache and main memory are updated

C. Cache coherence problems exist in multiprocessors with private caches because of the need to share writable data

D. Cache coherence problem can be solved by means of hardware-only scheme

Choose the correct answer from the options given below:

Q24.

The right sequence of suboperations that are performed in arithmetic pipeline is-

A. Align the mantissas

B. Add or subtract the mantissas

C. Normalize the result

D. Compare the exponents

Choose the correct answer from the options given below:

Q25.

Correct the order of instruction cycle:

A. Read the effective address

B. Fetch the information

C. Execute the instruction

D. Decode the instruction