A) Frames. Is the anwser!!
Answer:
Total Memory= 4 KB = 4096 bytes = 32768 bits
Explanation:
<em><u>1. Data lines are 8 From D0 to D7</u></em>
so
Total memory at single address locations is 8 bits.
<em><u>2. Address lines are 12 (A0 to A11)</u></em>
There are 12 address lines but 3 out 12 are for selction of chip or memory bank.
so only 9 pins are there to address the locations on one chip.
Total No. of address locations on single chip = 2^9 = 512 locations
as 1 location is 1 byte so total memory of single chip is 512 bytes.
<u><em>3. Total Memory Bank </em></u>
There are total 3 selection pins for memory bank.
so
Total chips = 2^3 = 8.
<em><u>4. Total Memory </u></em>
Total size of 1 chip = 512 bytes
Total size of 8 chip = 8x512 bytes = 4096 bytes = 4096/1024 kb = 4 kb
<em>So total memory of system is 4 Kb = 4096 bytes = 32768 bits</em>
Answer:
Where are the following? You have to post the full question if you want help.
Explanation:
Answer:
The solution code is written in Python 3:
- def modifyList(listNumber):
- posCount = 0
- negCount = 0
-
- for x in listNumber:
- if x > 0:
- posCount += 1
- else:
- negCount += 1
-
- if(posCount == len(listNumber)):
- listNumber.append(max(listNumber))
-
- if(negCount == len(listNumber)):
- listNumber.append(min(listNumber))
-
- print(listNumber)
-
- modifyList([-1,-99,-81])
- modifyList([1,99,8])
- modifyList([-1,99,-81])
Explanation:
The key step to solve this problem is to define two variables, posCount and negCount, to track the number of positive value and negative value from the input list (Line 2 - 3).
To track the posCount and negCount, we can traverse through the for-loop and create if else statement to check if the current number x is bigger than 0 then increment posCount by 1 otherwise increment negCount (Line 5- 9).
If all number in the list are positive, the posCount should be equal to the length of the input list and the same rule is applied to negCount. If one of them happens, the listNumber will append either the maximum number (Line 11 -12) or append the minimum number (Line 14-15).
If both posCount and negCount are not equal to the list length, the block of code Line 11 -15 will be skipped.
At last we can print the listNumber (Line 17).
If we test our function using the three sets of input list, we shall get the following results:
[-1, -99, -81, -99]
[1, 99, 8, 99]
[-1, 99, -81]