Answer:
# create the file
filename = "Testfile.txt"
# for writing, we create the output file:
outPutfile = open(filename, "w")
# Writing numbers from 1-100
for item in range(1,101):
outPutfile.write((str)(item))
outPutfile.close()
# printing the contents to verify it worked correctly
infile = open(filename, "r") #note the "r" indicates the mode
fileContents = infile.read()
infile.close()
print(fileContents)
Explanation:
- Define the working file fileName = TestFile
- Create the output file for writting outPutfile = open(filename, "w")
- Use a for loop to write numbers from 1-100 to the file outPutfile.write((str)(item))
- Close the file outPutfile.close()
- You may open the file read its content and print the contents to verify it worked correctly
It's computed by the processor
Answer:
A - 2
B - 3
C - 5
D - 4
E - 1
Explanation:
A. Virtual private network : 2
This is very useful when you have to work from home or visiting a client and need access to files/applications just like if you were at the office.
B. Email : 3
Yes, this is basically why the Internet was created in the first place.
C. Social networking sites : 5
Social networks are indeed a great marketing tool, allowing to target potential customers very precisely.
D. Search engines : 4
Yes, to find information about new products for the company, how the competitors are doing and so on.
E. Video and web conferencing: 1
Another great tool for employees working from home for example, or for employees located in an office at the other side of the country.