They do not make as big of a impression than a famous university when applying for jobs.
what is the ropeak??need only one Ans the 2nd Ans will be reported.
Answer:
- def processDict(dict):
- for x in dict:
- print(dict[x])
-
- dictA = {
- "Name": "Tom",
- "Age": 21,
- "Gender": "Male"
- }
-
- processDict(dictA)
Explanation:
Firstly create a function and name it as processDict that takes one input dictionary, dict (Line 1).
Create a for loop to iterate through each of the dictionary key, x, and use that key to look up the corresponding value and print it out (Line 2-3).
We test the function using a sample dictionary (Line 5-11). We shall get the output:
Tom
21
Male
Answer
First part:
The transmitted 8-bit sequence for ASCII character '&' with odd parity will be 00100110. Here leftmost bit is odd parity bit.
Second part:
The invalid bit sequence are option a. 01001000 and d. 11100111
Explanation:
Explanation for first part:
In odd parity, check bit of either 0 or 1 is added to the binary number as leftmost bit for making the number of 1s in binary number odd.
If there are even number of 1s present in the original number then 1 is added as leftmost bit to make total number of 1s odd.
If there are odd number of 1s present in the original number then 0 is added as leftmost bit to keep the total number of 1s odd.
Explanation for second part:
A valid odd parity bit sequence will always have odd number of 1s.
Since in option a and d, total number of 1s are 2 and 6 i.e. even number. Therefore they are invalid odd parity check bit sequences.
And since in option b and c, total number of 1s are 5 and 7 i.e. odd numbers respectively. Therefore they are valid odd parity check bit sequences.