Answer:
a1="Ada Lovelace"
a2= input("Enter Password: ")
def checkpassword(a2):
if a2 == a1:
print("Correct Password")
else:
print("Wrong Password")
return 0
Explanation:
The string as password is given. Now we ask the user to input the password, and this is compared to the original password. If the passwords match, print password matched, or else print wrong password.
Answer:
a. In one’s complement format, the leftmost bit is saved for the sign where 1 indicates a negative number and 0 indicates a positive number.
Explanation:
In binary numbers, 1's complement is used to represent the signed binary numbers. In unsigned numbers, there is no need of sign. But in signed binary numbers a signed bit is required. To add the bit that is represent the sign of the number in binary, 0 represents the positive number while 1 represents the negative number.
If we have a number and want to convert it in signed binary number, we just takes it 1's complement and add the signed bit at the left of the number.
E.g.
1 = 0001
is the binary of 1, if we want to add sign, we just add the zero at left most side of the binary which make it positive as given below:
+1 = 0 0001
Now of we want to convert it into negative than, we take 1's complement in which all bits are inverted.
-1 = 1 1110
Answer:
https://www.c-sharpcorner.com/interview-question/explain-autofocus-and-autocomplete-attribute
found this on a website hope you find it useful !
I wold probably just use Microsoft Publisher because it is trustworthy and easy!