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
Answer:
B. Application programming interface
Explanation:
An application programming interface (API) is an interface or communication protocol between different parts of a computer program intended to simplify the implementation and maintenance of software. An API may be for a web-based system, operating system, database system, computer hardware, or software library.
Answer:
the ability to reserve memory for it in the same statement depends on the type of the array.
Explanation:
When you declare an array, the ability to reserve memory for it in the same statement depends on the type of the array.
Answer:
2. testing cybersquatting
Explanation:
Phishing is the fraudulent attempt to obtain sensitive information such as usernames, passwords and credit card details by disguising oneself as a trustworthy entity in an electronic communication. In this case, phishing domain refer to a domain that is not a trustworthy one but try to deceive user into using it in place of the genuine domain.
Cybersquatting also known as domain squatting is registering, selling or using a domain name with the intent of profiting from the goodwill of someone else's trademark. It generally refers to the practice of buying up domain names that use the names of existing businesses with the intent to sell the names for a profit to those businesses.
Identity theft is the illegal use of someone else's personal information in order to obtain money or credit. It is the deliberate use of someone else's identity, usually as a method to gain a financial advantage or obtain credit and other benefits in the other person's name, and perhaps to the other person's disadvantage or loss.
From the above definition, it is seen that someone registering a domain name that is a company's trademark, hoping to resell it to the company at an exorbitant profit is called testing cybersquatting.
<span>If the drive is a network share, then Share permissions can be used.</span>