Answer:
RAM is used to store computer programs and data that CPU needs in real time. ... RAM data is volatile and is erased once computer is switched off. HDD,hard disk has permanent storage and it is used to store user specific data and operating system file
The answer I got is b generation 2, synithetic
Yes the ansewer is c bc you can look it up!
Answer:
float diameter =7.5;
float PI=3.14159265359 ;
// Calculating circumference and area of the circle
Explanation:
Here we declared two variable diameter and PI of float type and assigning the value 7.5,3.14159265359 respectively after that we making a single line comment by using //(forward) slash.
#include<iostream> //header file
using namespace std; // namespace
int main() // main method
{
float diameter =7.5; // Assign the value 7.5 to diameter
float PI=3.14159265359 ;//Assign 3.14159265359 to PI
// Calculating circumference and area of the circle.
return(0);
}
Answer:
def make_keeper(n):
"""Returns a function which takes one parameter cond and prints
out all integers 1..i..n where calling cond(i) returns True.
>>> def is_even(x):
# Even numbers have remainder 0 when divided by 2.
return x % 2 == 0
>>> make_keeper(5)(is_even)
2
4
"""
def fun(cond):
for i in range(1,n):
if(cond(i)):
print(i)
return fun
Explanation:
- Define a function called fun that takes cond as input.
- loop from 1 to n and display the value if it meets the requirement.