Answer:
The program in Python is as follows:
wordInput = input()
myList = wordInput.split(" ")
for i in myList:
print(i,myList.count(i))
Explanation:
This gets input for the word
wordInput = input()
This splits the word into a list using space as the delimiter
myList = wordInput.split(" ")
This iterates through the list
for i in myList:
Print each word and its count
print(i,myList.count(i))
Messages travel from one computer to another until they will find a proper computer to whom that message is addressed.
Answer:
Let our mask be 1010000...000. Notice that, if we apply XOR operation to any number with this mask, the first and third bits will be complemented and all other bits will be unchanged. Since for each individual bit, XOR with 0 does not change the value of bit and XOR with 1 changes the value of bit.
Explanation:
To give a hexadecimal number, we should know the number of bits in representation of number.
Answer:
1. Write through
2. Write back
3. Write back
4. Write through.
Explanation:
The answers are given accordingly as above.