Question:
Write a function that adds together all values from 0 to a given value and returns the final number. For example, if the given value is `4`, you would add 0 + 1 + 2 + 3 + 4
Answer:
In Python:
def add_to_value(n):
sum = 0
for i in range(n+1):
sum = sum + i
return sum
Explanation:
This line defines the function
def add_to_value(n):
This line initializes sum to 0
sum = 0
The following iteration adds from 0 to n
<em> for i in range(n+1):</em>
<em> sum = sum + i</em>
This line returns the calculated sum
return sum
Answer:
false
Explanation:
a PC needs to give a silent noise or better still no noise when it is being powered. It could be a problem within the coil in the power supply unit or a graphics card and the noise changes volume when a certain task is performed on it.
The two main causes of whinning noise in a computers are capacitors squealing and coil whinning.
My answer would be D, here is why:
At the dawn of the information age, it became possible for American and other societies to be able to transfer information all over the world with just one click, this has increased laziness in our society dramatically. People these days are more likely not to go to a government office, then to just type a few characters. Going online helps government sectors to quickly spread the information they need to and make it "easier" for our citizens to file their paperwork.
Answer:
The best cloud option for Widget Corp considering the cloud computing option should be cost-effective and should not expose mission-critical applications and data to the outside world.
Is a hybrid could.
Explanation:
The reasons behind this answer are that in the first place the cloud is not going to be fully managed by a third party, but also by the IT department of Widget Corp allowing it to control its security. Also, that the cloud can be adapted to public or mainstream sources, resources, and platforms. Making it very user friendly and lowering down specific knowledge to use it.
The relation between Power, Current and Voltage is given as:
P = V i
where P is Power in Watts,
V is Voltage in Volts,
and i is Current in Ampere.
We are given:
Power = 150 milliwatts = 0.15 Watts
(as 1 milliwatt = 0.001 Watts)
Voltage = 1.5 volts
and we need to find the current.
Hence using above equation:
P = V i
i = 
i = 
i= 0.1 Ampere
Answer:
The current used is 0.1 Ampere