Page 119 - Code & Click - 8
P. 119
E. Identify and underline the errors in the code given below. Also, write the correct code.
# Program to create a function that accepts a number as argument, and
calculates and returns its factorial.
def factorial(x)
prod = 0
for num in range(1, x):
prod = prod * num
return prod
num = input(“Enter a number : “)
result = factorial(num)
F. Write the name of the tool in Photoshop 2022 used to perform the following tasks:
1. Moving selections in an image. _________
2. To paint areas of an image with a pattern. _________
3. To sharpen soft edges in an image. _________
4. To darken the areas of an image. _________
G. Answer the following questions in brief.
1. What is the difference between user-defined and built-in functions in Python?
2. What is a hyperlink? Name the four states of a link in a web page.
3. What are Artificial Neural Networks (ANNs)? Write the names of any two types of ANNs.
4. What is the difference between For and While loop in Python?
H. Answer the following questions.
1. What are Retouching tools? Name four Retouching tools in Photoshop 2022 with their uses.
2. What are Jump statements? Explain the jump statements available in Python
3. What is meant by Big Data? Explain any three characteristics of Big Data.
4. Explain any three functions used to work with strings in Python.
117