Answer:
The Correct answer for the given question is "elements " .
Explanation:
The number of bytes is always multiple by the number of array elements in an array to getting total memory occupy by any array .
For example :
int a[100];
Since in c language int is 2 bytes
So memory in number of bytes =2*100=200 bytes
Indexes is keep the track of physical location of any file this is also used to track the logical location of file in database so this option is wrong
Subscripts are the index number of an array so we will never used subscripts to getting total memory occupy by any array so this option is wrong
Iterators are the loop so this option is wrong.
Due to this the correct answer is elements.
Answer:
The Python code is given below for each question.
Explanation:
1:
if __name__ == '__main__':
f = open('golf.txt', 'w')
n = int(input("Enter number of players:"))
for i in range(n):
name = input("Enter name of player number " + str(i + 1) + ":")
score = int(input("Enter score of player number " + str(i + 1) + ":"))
f.write(name + "\n" + str(score) + "\n")
f.close()
2:
try:
with open('golf.txt') as r:
lines = r.readlines()
for i in range(0, len(lines), 2):
print("Name:", lines[i].strip())
print("Score:", lines[i+1].strip())
print()
except FileNotFoundError:
print("golf.txt is not found!")
The answer is a firewall. It is a system that will block potentially harmful software or websites from accessing your computer.
Answer:
C. Accept the risk
Explanation:
The first option is close but might not be suitable for a small company considering it's cost.
The second option which is to spend fifty thousand dollars per year on a data loss prevention solution is projected to cost you more than the risk.
The third option isn't specific and lacks a course of action.