Answer:
Enter a number: 7
Enter a number: 10
Traceback (most recent call last):
File "main.py", line 3, in <module>
print (numi + num2)
NameError: name 'numi' is not defined
Explanation:
The typo in the print statement causes a run-time error, where obviously num1+num2 was expected, and an output of 17.
Answer:
The receiver will not detect the error.
Explanation:
The byte sent by transmitter: 10101010
The byte received by receiver due to channel noise: 10011010
If you see the bold part of the both sent and received bytes you can see that the number of bits changed is 2.
The two communicating devices are using a single-bit even parity check. Here there are two changed bits so this error will not be detected as this single bit even parity check scheme has a limit and it detects the error when the value of changed bit is odd but here it is even.
This parity scheme basically works well with the odd number of bit errors.
This is port 80 for clear-text connections and 443 for encrypted (TLS) connections.