Question 1
What is the right way to declare a copy constructor of a class if the name of the class is MyClass?
MyClass (constant MyClass *arg)
MyClass (constant MyClass &arg)
MyClass (MyClass arg)
MyClass (MyClass *arg)
Question 2
Which of the following strategy is employed for overcoming the priority inversion problem?
Temporarily raise the priority of lower priority level process
Have a fixed priority level scheme
Implement kernel pre-emption scheme
Allow lower priority process to complete its job
Question 3
The state of a process after it encounters an I/O instruction is
ready
blocked
idle
running
Question 4
A starvation free job scheduling policy guarantees that no job indefinitely waits for a service. Which of the following job scheduling policies is starvation free?
Priority queuing
Shortest Job First
First Come First Served
Round robin
Question 5
A CPU scheduling algorithm determines an order for the execution of its scheduled processes. Given 'n' processes to be scheduled on one processor, how many possible different schedules are there?
n
n2
n!
2n
Question 6
Consider the following set of processes, with arrival times and the required CPU-burst times given in milliseconds.
Process Arrival Time Burst Time
P1 0 4
P2 2 2
P3 3 1
What is the sequence in which the processes are completed? Assume round robin scheduling with a time quantum of 2 milliseconds
P1, P2, P3
P2, P1, P3
P3, P2, P1
P2, P3, P1
Question 7
In the Ethernet, which field is actually added at the physical layer and is not part of the frame
preamble
CRC
address
location
Question 8
What will be the efficiency of a Stop and Wait protocol, if the transmission time for a frame is 20ns and the propagation time is 30ns?
20%
25%
40%
66%
Question 9
If the frame to be transmitted is 1101011011 and the CRC polynomial to be used for generating checksum is x4+ x + 1, then what is the transmitted frame?
11010110111011
11010110111101
11010110111110
11010110111001
Question 10
Ethernet layer-2 switch is a network element type which gives
different collision domain and same broadcast domain
different collision domain and different broadcast domain
same collision domain and same broadcast domain
same collision domain and different broadcast domain
There are 78 questions to complete.