Answer:
year = int(input("Enter a year: "))
if (year % 4) == 0:
if (year % 100) == 0:
if (year % 400) == 0:
print(str(year) + " - leap year")
else:
print(str(year) +" - not a leap year")
else:
print(str(year) + " - leap year")
else:
print(str(year) + "- not a leap year")
Explanation:
*The code is in Python.
Ask the user to enter a year
Check if the <u>year mod 4</u> is 0 or not. If it is not 0, then the year is not a leap year. If it is 0 and if the <u>year mod 100</u> is not 0, then the year is a leap year. If the <u>year mod 100</u> is 0, also check if the <u>year mod 400</u> is 0 or not. If it is 0, then the year is a leap year. Otherwise, the year is not a leap year.
Answer: Registers
Explanation:
Registers are small storage locations identified by different types of registers. The function of the register is to provide data for immediate processing to the CPU. These registers hold data temporarily and provide easy access of data to the processor.
Answer:
1940 – 1956: First Generation
1956 – 1963: Second Generation
1964 – 1971: Third Generation
1972 – 2010: Fourth Generation
2010- : (Present )Fifth Generation
Explanation:
- First Generation Computers (1940-1956):In this Generation the main component of computers were Vacuum Tubes.
- Second Generation Computers (1956-1963):In this generation the main component of computers were Transistors.
- Third Generation Computers (1964-1971):In this generation the main component of computers were Integrated Circuits.
- Fourth Generation Computers (1972-2010):In this generation the main component of computers were Microprocessor
- Fifth Generation (2010-Present):In this generation the main component of computers is Artificial Intelligence
Answer:
The answer is "64"
Explanation:
There has been 1 Private Key 1 Public Key for every person. The private key is used for other app messages. All else uses the Public Key to encrypt messages with that user. Those keys are numerically related. Even if you have 5 users, you will be given 5 Personal keys and 5 Public keys.
- All user will have a duplicate of other public keys, which indicates (n*n-1) copies of n public keys on different systems to make sure shared contact between all users, plus n private keys.
- The unique key count is 2n, with n^2 distributed private and public keys on different systems.
- 8 people, where 8 is a number, that is equal to n so,

Answer:
- def c_to_f(celsius):
- return celsius * 9/5 + 32
-
- temp_c = float(input('Enter temperature in Celsius: '))
- temp_f = None
-
- temp_f = c_to_f(temp_c)
- print('Fahrenheit:' , temp_f)
Explanation:
The first piece of code we can fill in is the formula to convert Celsius to Fahrenheit and return it as function output (Line 2).
The second fill-up code is to call the function c_to_f and pass temp_c as argument (Line 7). The temp_c will be processed in the function and an equivalent Fahrenheit value will be returned from the function and assigned it to temp_f.