Company: Razorpay mcq
Difficulty: medium
Consider the following statements regarding semaphore techniques: 1. The semaphore value in this binary semaphore technique has changed to 0 because P1 has entered the Entry section with an initialized semaphore value 1. 2. The semaphore value in this counting semaphore technique has changed to 0 because P1 has entered the Entry section with an initialized semaphore value 1. 3. If the semaphore va
Which of the following does a thread NOT share with the other threads of the same process?
In Networking, what is the maximum number of valid subnets and usable hosts per subnet that you can get from a network using the subnet mask 255.255.255.224 (assuming a Class C base network)?
Predict the output of the following Java code snippet: public class Test{ public static void main(String[] args){ Student s0=new Student (); Student s1= new Student (); s0.marks(s1); }} class Student { public void marks(Student s1){ System.out.println(this==s1); }}
Consider the following set of processes arriving at time 0: P0 (Priority 3, Burst 10ms), P1 (Priority 1, Burst 1ms), P2 (Priority 4, Burst 2ms), P3 (Priority 5, Burst 1ms), P4 (Priority 2, Burst 5ms). If a non-preemptive priority scheduling scheme is used (where 1 is the highest priority), what is the average waiting time in milliseconds?
In DBMS, which of the following are the primary objectives of the database normalization process? 1. To minimize data redundancy 2. To minimize data dependency 3. To minimize insertion, update, and deletion anomalies 4. To divide a large table into multiple smaller tables
In Networking, which of the following statements is correct?