Answer:
B. blocking I/O
Explanation:
Most of the input and output request placed to the computer considers the blocking request. It means that the controls given cannot be returned to the given application until and unless the input/output is complete.
Thus, blocking the input/output does not return till the input and output is complete.
With a blocking I/O, the process is moved to a wait queue when the I/O request is made, and it moved backs to the ready queue as soon as the request is complete, thereby allowing the other processes to run in the meantime.
Thus (B) blocking I/O is the answer.
Answer:
Explanation:
import java.Util;
public class Eggs{
public static void main (String [] args)
{
int noOfEggs, dozen, units;
float total;
Scanner input = new Scanner(System.in);
noOfEggs = input.nextInt();
if(noOfEggs < 0)
{
System.out.print("Invalid");
}
else
{
if(noOfEggs >= 12)
{
dozen = noOfEggs/12;
units = noOfEggs % 12;
}
else
{
dozen = 0;
units = noOfEggs;
}
total = dozen * 3.25 + (units * 45)/100;
System.out.print("You ordered "+noOfEggs+" eggs.\n");
System.out.print("That's "+dozen+" dozen at $3.25 per dozen and "+units+" loose eggs at 45 cents each for a total of $"+total);
}
}
}
Answer
You should maintain course and speed unless the give-way vessel fails to take action.
Explanation
In the water ways when two boats are approaching nearly and then they may come to collision the boat on the right is the one which is considered as the stand-on vessel and it should be given way by the other boat or vessel. On this situation it should maintain course and speed unless the give-way vessel fails to take action. If it fails to take action what you should do is, you should take action and move away from the vessel, do not go toward the vessel nor pass in front of it.
Google experienced censorship in china. :)