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
 
        
             
        
        
        
Answer:
<h2> <u>NETWORK</u> <u>TOPOLOGY</u> .</h2>
This tefers to how nodes are connected to the network.
Types of topology.
- Physical topology.
- Logical topology.
In physical topology,nodes are connected physically using wires(cables).
Types of physical topology include:
- Bus topology
- Tree topology
- Hybrid topology
- Star topology
- Ring topology.
Hope it helps you,any question so far...comment !!!
 
        
                    
             
        
        
        
Answer:
B,C,E your welcome 
Explanation: i just took the test
 
        
             
        
        
        
Answer:
#include <iostream>
using namespace std;
void divide(int numerator, int denominator, int *quotient, int *remainder)
{
 *quotient = (int)(numerator / denominator);
 *remainder = numerator % denominator;
}
int main()
{
 int num = 42, den = 5, quotient=0, remainder=0;
 divide(num, den, "ient, &remainder);
  
 return 0;
}
Explanation:
The exercise is for "Call by pointers". This technique is particularly useful when a variable needs to be changed by a function. In our case, the quotient and the remainder. The '&' is passing by address. Since the function is calling a pointer. We need to pass an address. This way, the function will alter the value at the address. 
To sum up, in case we hadn't used pointers here, the quotient and remainder that we set to '0' would have remained zero because the function would've made copies of them, altered the copies and then DELETED the copies. When we pass by pointer, the computer goes inside the memory and changes it at the address. No new copies are made. And the value of the variable is updated.
Thanks! :)