Answer:
Function sparse code is
def sparse(a):
rl = []
cl = []
for i in range(0,len(a)):
rl.append(a[i][1])
cl.append(a[i][2])
r = max(rl)
c = max(cl)
s = []
k = 0
for i in range(0,r+1):
s.append([])
for j in range(0,c+1):
if (i==a[k][1]) & (j == a[k][2]):
s[i].append(a[k][0])
k = k+1
else:
s[i].append(0)
return s
def main():
k = sparse([[3,1,2],[4,5,3]])
print(k)
if __name__ == '__main__':
main()
Explanation:
Please see attachment for output
I think it A I feel like report is right for the answer
Answer:
The correct syntax (assuming WinForms) is
lblMessage.Text = "Welcome to fiji";
The given statement fails to follow the syntax of literal strings, which should be in quotation marks. (depending on the framework and programming language, the txt property may also be incorrect, as well as the missing semi-colon).
Answer:
The value of myArray2[index2] when index1 = 12 is 30
Explanation:
In the source code, the formula for myArray2[index2] is;
myArray2[index2] = index2 + index3 + myArray1[index1],
myArray1[index1] = index1 * 2,
index2 = index % 10 (equal to the remainder) and
index3 = index % 8
When index1 increases to 12 in the for-loop statement, the "myArray1[index1]" is equal to 24, index2 is equal to 2 and index3 is 4. The total sum is equal to 30 and assigned to "myArray2[index2]".
Answer:
4
Explanation:
For easier management of the host records of the company 4 zones should be used because
subdomain is part of a larger domain and the main domain which is the primary domain is the name which the company have decide to use which will represent the company website address and in a situation where the company
have different domain names in which they had registered, they will need to choose one among the domain which will inturn be their main domain.
Therefore for easier , efficient and effective management of the host records 4 zones will be the best zones to be used.
Example of sub domain is north.example.com