Answer:
while (quantity >= 50)
Explanation:
Required
Stop when quantity is less than 50
To do this, we make use of a while statement and the syntax is:
while (condition){ }
If the loop should stop when quantity is less than 50; then it means the loop would continue when quantity is greater or equal to 50
So, we have:
while (quantity >= 50)
Answer:
Following are the statement is given below
if(updateDirection ==1) // check condition
{
++numUsers; // increments the value
}
else
{
--numUsers; // decrement the value
}
Explanation:
Following are the description of statement
- Check the condition in the if block .If the "updateDirection" variable is 1 then then control moves to the if block otherwise control moves to the else block statement.
- In the if block the statement is "++numUsers" it means it increment the value by 1 .
- In the else block the statement is "--numUsers" it means it decrement the value by 1 .
I think its the new age either that or end times
Answer:
Option A is the correct answer choice for the above question.
Explanation:
The computer system needs intercommunication which is done inside the processor to process the task given by the user. There are two types of model is used for intercommunication--
- Message passing and
- Shared memory
The difference between two is that message passing passes the message on two points at a single unit of time whereas shared memory simultaneous shares the multiple messages. That's why shared memory is faster than message passing.
- Hence option A is the correct choice because it also refers to the above concept. While the other is not correct because--
- Option B states that message passing is faster than shared memory which is wrong.
- Option C states that message passing is used for large data but shared memory is used for large data.
- Option D states that shared memory is unavailable in some processor which is wrong.