Answer:
Explanation:
temporal locality can be defined as: when a particular memory is referenced or accessed several times within a specific period of time. In the question, i think the variable that exhibit temporal locality are I, J and 0(all the variable). This is because the variable J and 0 are accessed several times within the loop. I would not have been part of it, but in the A[I][J]=B[I][0]+A[J][I], the variable "I" is also accessed in the addition. this is why it is part of the temporal locality.
Answer:
nrToCheck = int(input("How many numbers do you need to check? "))
nrEven = 0
nrOdd = 0
for i in range(nrToCheck):
number = int(input("Enter number: "))
if (number % 2):
nrOdd = nrOdd + 1
print("{} is an odd number".format(number))
else:
nrEven = nrEven + 1
print("{} is an even number".format(number))
print("You entered {} even number(s).".format(nrEven));
print("You entered {} odd number(s).".format(nrOdd));
It is a) true because its compouse by organs and body tissues
Answer:
Explanation:
<u>Application Differences:</u>
<u>SRAM</u>
SRAM stands for Static Random Access Memory DRAM stands for Dynamic Random Access Memory
Faster access is due to the usage of transistors to store single bit of data
SRAMs are used for cache memories due to faster access time
<u>DRAM</u>
DRAM stands for Dynamic Random Access Memory
DRAMs are used for main memories due to comparatively slower access time.
DRAMs use capacitor to store bits where each capacitor holds a single bit
<u>Parameter differences</u>
<u>Speed:</u> SRAMs are faster due to presence of transistors. DRAMs are slower due to presence of capacitors
<u>Size:</u> Due to complexity involved in the internal circuits, SRAMs are smaller in capacity for same size of the chip. DRAMs are larger as compared to SRAMs since their capacity for a given physical size is more.
<u>Cost:</u> SRAMs are costlier and the per bit storage cost is more than that of the DRAMs. DRAMs are cheaper and the per bit storage cost is less than that of the SRAMs