A Label is perfect for static text.
Answer:
Explanation:
iname=input("Enter the file name: ")
inputfile=open(iname,'r')
lines=[]
for line in inputfile:
lines.append(line)
inputfile.close()
print("The file has ",len(lines)," lines")
while True:
linenumber=int(input("Enter the line number or 0 to quit: "))
if linenumber==0:
break
elif linenumber > len(lines):
print("Error: line number must be less than ", len(lines))
else:
print(linenumber, " : ", lines[linenumber - 1])
Answer:
Swap daemon
Explanation:
Swap daemon manages the physical memory by moving process from physical memory to swap space when more physical memory is needed. The main function of the swap daemon is to monitor processes running on a computer to determine whether or not it requires to be swapped.
The physical memory of a computer system is known as random access memory (RAM).
A random access memory (RAM) can be defined as the internal hardware memory which allows data to be read and written (changed) in a computer.Basically, a random access memory (RAM) is used for temporarily storing data such as software programs, operating system (OS),machine code and working data (data in current use) so that they are easily and rapidly accessible to the central processing unit (CPU).
Additionally, RAM is a volatile memory because any data stored in it would be lost or erased once the computer is turned off. Thus, it can only retain data while the computer is turned on and as such is considered to be a short-term memory.
There are two (2) main types of random access memory (RAM) and these are;
1. Static Random Access Memory (SRAM).
2. Dynamic Random Access Memory (DRAM).
Answer:
The reasons for Blue Screen Of Death are as following:-
- Faulty Memory.
- Power Supply Issue.
- Overheating of Components.
- Malfunctioning Hardwares.
- Poorly coded device drivers.
- Hardware runnign beyond it's capacity.
- Bugs in the Operating System Kernel.
These are the some of the reasons why the blue screen of death is caused.