Answer:
In Python:
def convert_str_to_numeric_list(teststr):
nums = []
res = teststr.split()
for x in res:
if x.isdecimal():
nums.append(int(x))
else:
nums = []
break;
return nums
def get_avg(mylist):
if not len(mylist) == 0:
total = 0
for i in mylist:
total+=i
ave = total/len(mylist)
else:
ave = "None"
return ave
def get_min(mylist):
if not len(mylist) == 0:
minm = min(mylist)
else:
minm = "None"
return minm
def get_max(mylist):
if not len(mylist) == 0:
maxm = max(mylist)
else:
maxm = "None"
return maxm
mystr = input("Enter a string: ")
mylist = convert_str_to_numeric_list(mystr)
print("List: "+str(mylist))
print("Average: "+str(get_avg(mylist)))
print("Minimum: "+str(get_min(mylist)))
print("Maximum: "+str(get_max(mylist)))
Explanation:
<em>See attachment for complete program where I use comment for line by line explanation</em>
Answer:
The correct answer to the following question will be Option B (VPN concentrator).
Explanation:
- Virtual Private Network (VPN) is a virtual, limited-use network generated using protocol encryption and tunneling over physical, public network connections.
- A dedicated tool for managing VPN connections built over an untrusted network, such as the Internet, is called a VPN concentrator.
- It's a type of networking system that ensures secure VPN connections are established and messages are transmitted between VPN nodes.
Therefore, Option B is the right answer.
Answer:
Primary key retains its uniqueness even after you remove some of the fields.
Explanation:
I am assuming that this question is related to database. Therefore, I am answering it according to database context.
In database, you can have multiple rows and columns. Each column shows a specific attribute while each row plots the data according to the attributes. However, there is the first column of each of main table that has unique set of values. It is called the Primary Key. Some key features of primary key are:
- It always contains the unique value.
- Its value cannot be null.
- A table can have at max one primary key.
- It can be the combination of multiple columns but it must be unique.
Therefore, the primary key has the ability to retain its uniqueness even after you remove some of the fields.
Answer:
The default margins for Microsoft Word from version 2007 onward have been 1 inch (25.4 mm) all around; in Word 2003, the default top and bottom margins were 1 inch (25.4 mm), but 1.25 inches (31.7 mm) were given at the left and the right.