Page 372 - Informatics_Practices_Fliipbook_Class12
P. 372
16. Which of the following would be a creative work that can be protected by copyright?
a. A poem you wrote b. A portrait of your family
c. A list of all Indian Prime Ministers’ names d. The name of your pet cat
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
17. Assertion(A): In SQL, the aggregate function avg() calculates the average value on a set of values and produces a
single result.
Reasoning(R): The aggregate functions are used to perform some fundamental arithmetic tasks such as min(),
max(), and sum().
18. Assertion(A): Python overwrites an existing file or creates a non-existing file when we open a file with ‘w’ mode.
Reasoning(R): a+ mode is used only for writing operations.
Section-B
19. Aman, a freelance website developer, is tasked with creating web pages for a bookshop. Help Aman in making an
informed decision between static and dynamic web pages by outlining at least two distinct points of differentiation
between them.
OR
Navya has recently developed a website for her firm and now needs to host it; explain briefly the role of a web
server in website hosting.
20. Find and correct errors in following code snippet:
DEF execmain():
x = input("Enter a number:")
if (abs(x)= x):
print"You entered a positive number'
else:
x=-1
print"Number made positive:",x
execmain()
21. Write python statements to:
a. find the starting index of substring "XI" in the string "Class XII".
b. to convert the string "CbSe" to lower case.
22. What will be the output produced on the exceution of the following code snippet?
import pandas as pd
list1 = [10, 20, 30]
S1 = pd.Series([10, 20, 30])
print(S1 + S1)
23. i. What is the function of a Gateway?
ii. Give examples of any two plug-ins.
358 Touchpad Informatics Practices-XII

