Answer:
00(01)*+|(01)*+101|00(01)*+101
Rest detail is in explanation.
Explanation:
(01)* means all the strings comprising of 0 and 1
when we add + the set includes empty sets as well. and for or we use union, and this can be done using the | sign.
And for concatenation, we have like 00(01)* etc. Hence, the above regular expression.
Answer:
"Mesh topology" is the correct answer.
Explanation:
- A mesh topology seems to be a network configuration where there has been an interconnection between each hardware and communications system. This topology configuration allows the distribution of many of these signals, although one of the connexons starts going down.
- This topology needs to connect each destination to any other end destination, thus creating a completely pointless channel.
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])
I SURE HOPE IT DOES (this is the best vibe if you dont get this you are an uncultured swine)