Answer:
All of them
Explanation:
Agriculture uses it for data and crop yields
Government uses it for economy, and other things like PRISM(Their surveillance)
Music uses it for audio editing and touch-ups
Healthcare uses it for databases and medical science
Art can use it! There is an AI that can paint paintings that look amazing with strokes and everything, and they look just like a human painting.
Film uses it lots, for CGI, animation, data, and countless other things.
almost every industry uses computer science in one way or another.
Answer:
Following are the code to this question:
def is_question(input_string): # defining method is_question
output = '?' in input_string # checking question mark symbol in value
return output #return value
input_string = input('Enter any string value: ') # defining variable input_string to input value
print (is_question(input_string)) # call method and print return value
Output:
Enter any string value: what is your name?
True
Explanation:
In the given python program code, a method "is_question" is declared, which accepts an "input_string" value in its parameter.
- Inside the method, an output variable is used, that search question symbol in the parameter value and return its value.
- In the next step, the input_string variable is declared, which uses the input method to accepts string value and passes into method calling time and print its return value.
Answer:
C. sqrt(Math)
Explanation:
All but one of options A to E are is not a static method.
Only option C is a static method. The sqrt() is a static method of Math, that can always be used as Math.sqrt() is used;
The Math class defines all of its methods to be static. Invoking Math methods is done by using Math as a method rather than a variable of type Math; this means that sqrt(Math) doesn't rely on instance variables and don't need to be overridden, unlike others.
Lastly, sqrt(Math) is a static method because unlike other options, it is an utility method, and it is relevant to computations on primitive data types.
The purpose of the static method is in large part to offer a standard library of functions, and it doesn't need to be applied directly to an object.