Answer:
The correct answer to the following question will be "Math.sqrt(area*2)".
Explanation:
- The Math.sqrt( ) method in JavaScript is used to find the squares root of the given figure provided to the feature as a variable.
- Syntax Math.sqrt(value) Variables: this function takes a single variable value that represents the amount whose square root is to be determined.
- The area of the figure is the number of squares needed to cover it entirely, like the tiles on the ground.
Area of the square = side times of the side.
Because each side of the square will be the same, the width of the square will only be one side.
Therefore, it would be the right answer.
Answer:
O(n^2)
Explanation:
The number of elements in the array X is proportional to the algorithm E runs time:
For one element (i=1) -> O(1)
For two elements (i=2) -> O(2)
.
.
.
For n elements (i=n) -> O(n)
If the array has n elements the algorithm D will call the algorithm E n times, so we have a maximum time of n times n, therefore the worst-case running time of D is O(n^2)
Answer:
The first thing that the browser checks is the cache for the DNS record to find the corresponding IP address.
Explanation:
After the technician sets up the internal DNS server for his local network, the first thing that is checked when he types a website into the url of a browser is the cache to look for corresponding IP addresses.
DNS which means Domain Name System is a database that maintains the website name (URL) and the IP address that it is linked to. There is a unique IP address for every URL (universal resource locator).
Internal DNS servers store names and IP addresses for internal or private servers
Correct question.
Which role is delegated to personnel of the IT department and how is responsible for maintaining the integrity and security of the data?
Answer:
<u>data custodian</u>
<u>Explanation:</u>
Remember, every organization generates data, and large organizations generate even larger data.
Hence, the role of a data custodian in an organization requires He implements measures to protect the organization's data, store and backup the data, as well as granting access to the data to authorized persons when needed.
Answer:
weights = []
total = 0
max = 0
for i in range(5):
weight = float(input("Enter weight " + str(i+1) + ": "))
weights.append(weight)
total += weights[i]
if weights[i] > max:
max = weights[i]
average = total / 5
print("Your entered: " + str(weights))
print("Total weight: " + str(total))
print("Average weight: " + str(average))
print("Max weight: " + str(max))
Explanation:
Initialize the variables
Create a for loop that iterates 5 times
Get the values from the user
Put them inside the array
Calculate the total by adding each value to the total
Calculate the max value by comparing each value
When the loop is done, find the average - divide the total by 5
Print the results