Disk access is way slower than
memory access. Caching is a technique to improve the disk access time. Block cache is a caching technique which
reduces disk accesses time. Here a
portion of disk is bought to cache for reading and a modified blocks are first
changed in cache but reflected in the disk at one go. On the other hand with write through caching
each modified block is written to cache and at the same time it is written to
the disk. Write- through caching
requires more disk I/O so they can have a negative effect on the performance.
Answer:
Nothing will happen.
Explanation:
The rules written between /* and */ will be ignored because /* and */ are the standard way of writing comment in a style sheet code. So, whatever fall in between them will be ignored during rendering of the page.
Answer:
a=4 , b=1
Explanation:
I'm not a computer science major at all but I think I can help you with this code.
Our program wants us to add 2 to a get new a value while also subtracting 1 from b value to obtain new b value. We we want to for for as long b is not 0 and a/b is nonnegative.
One round we get:
New a=0+2=2
New b=3-1=2
Let's see if we can go another round:
New a=2+2=4
New b=2-1=1
We can't go another round because b would be negative while a is positive which would make a/b negative. So our loop stops at this 2nd round.
a=4 , b=1
Other notes:
2nd choice makes no sense because a is always going to increase because of the addition on a and b was going to decrease because of the subtraction on it.
Third choice makes no sense because a/b doesn't even exist.
Fourth choice a/b is negative not nonnegative.