Xii Ip QP Second Set-1
Xii Ip QP Second Set-1
Section -A
1. Which of the following is not done by cyber criminals? (1)
a) Unauthorized account access b) Mass attack using Trojans as botnets
c) Email spoofing and spamming d) Report vulnerability
7. In Pandas series called HEAD, the command which will display the first 3 rows is . (1)
a) print(HEAD.head(3)) b) print(HEAD.Heads(3))
c) print(HEAD.heads(3)) d) print(head.HEAD(3))
8. In SQL, What will be output of (1)
SELECT INSTR (‘wednesday’, 'e');
a) 1 b) 5 c) 2 d) 4
9. Which is correct SQL Query to find the temperature in increasing order of all cities. (1)
a) SELECT city FROM weather order by temperature ;
b) SELECT city, temperature FROM weather ;
c) SELECT city, temperature FROM weather ORDER BY temperature ;
d) SELECT city, temperature FROM weather ORDER BY city ;
10. A series by default have numeric data labels starting from (1)
a) 1 b) 0 c) ‘1’ d) ‘a’In
11. In SQL, which function returns the time: (1)
a) SYSDATE b) NOW c) CURRENT d) TIME
12. To delete a column from a dataframe method can be used. (1)
a) delete() b) remove() c) erase() d) drop()
31. Mr. Ravi, a data analyst has designed the DataFrame df that contains data about Car (4)
Sales with ‘T1’, ‘T2’, ‘T3’, ‘T4’, ‘T5’ as indexes shown below. Answer the following
questions:
Col1 Col2 Col3 Res
T1 62.893165 100.0 60.00 True
T2 94.734483 100.0 59.22 True
T3 49.090140 100.0 46.04 False
T4 38.487265 85.4 58.60 False
i) Write a query to display movie name and production – both in upper case
ii) Write a query to display all details of movies released in year 1989
iii) Write a query to count production wise total number of movies
OR (Option for part iii only)
Write a query to count rating wise total number of movies
Section – E
33. Knowledge Supplement Organisation has set up its new centre at Mangalore for its (5)
office and web based activities. It has 4 blocks of buildings as shown in the diagram
below:
Write Python code to plot a bar chart for India’s medal tally as shown below: