Xii Ip QP
Xii Ip QP
GENERAL INSTRUCTIONS:
1
iv. International Property Right
5 If column “salary” contains the data set (45000, 5000, 55000, 45000, 55000), what 1
will be the output after the execution of the given query?
SELECT AVG (DISTINCT salary) FROM employee;
a. 38500
b. 40000
c. 41000
d. 35000
6 Name the SQL function which returns output in form of characters. 1
a. NOW() b. MONTH()
c. MONTHNAME() d. WEEKNAME()
7 Violating the intellectual property rights of a copyright holder is known as 1
a. Encryption b. Digital footprint
c. Offline phishing d. Copyright infringement
8 I can keep you signed in. 1
I can remember your site preferences.
I can give you locally relevant content. Who am I ?
9 Which amongst the following is not an example of browser? 1
11 Name the online activity that enables us to publish website or web application on the 1
internet
a. Web server b. Web Browser
c. Web Hosting d. None
12 In histogram describe the number of data points that 1
fall within a specified range.
i. x and y label
ii. range()
iii. bin
iv. x and y ticks
13 Which of the following pandas function is useful to read data from a CSV file? 1
i. tocsv()
ii. to_csv()
iii. read_csv()
iv. writecsv()
2
14 The avg() function in MySql is an example of . 1
a. Math function
b. Text function
c. Date Function
d. Aggregate Function.
15 If a column MARKS of table EXAM contains values (99, 87, 84, NULL, 88), what 1
will be output of following query?
SELECT COUNT(MARKS) FROM EXAM;
i. 5
ii. 4
iii. NULL
iv. Error
17 Assertion (A):- To use the Pandas library in a Python program, one must import it. 1
Reasoning (R): - The only alias name that can be used with the Pandas library is
ip.
i. Both A and R are true and R is the correct explanation for A.
ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False.
iv. A is false but R is True.
18 Assertion(A): User cannot download any image directly from google and use in their 1
content.
Reasoning(R): The images are subject to copyrights.
i. Both A and R are true and R is the correct explanation for A.
ii. Both A and R are true and R is not the correct explanation for A.
iii. A is True but R is False.
iv. A is false but R is True.
SECTION-B
19 Create a line chart to show the data of overs and runs scored by two teams. 2
Team/Over 1 2 3 4 5 6 7 8 9 10
INDIA 8 9 7 12 15 16 18 4 22 23
PAKISTAN 9 8 11 9 14 12 14 9 12 15
OR
Create a bar graph to display number of students registered in classes
3
11A, 11B, 11C, 11D.
20 Briefly explain the basic concepts of a web server and web browser. 2
OR
Surabhi is doing a course in networking. She is unable to understand the concept of
URL. Help her by explaining it with the help of suitable example.
21 Consider the given SQL string: 2
“Bestofluck@2024_EXAM”
Write suitable SQL queries for the following:
i. Returns the position of the first occurrence of the substring “_” in the given
string.
ii. To extract first five characters from the string.
22 Write a program in to create a series ‘Emp’ using a dictionary having Employee name as 2
key and salary as value with following data –
EmployeeName Salary
Amit 11000
Rajeev 7500
Dinesh 12500
Akshit 8000
23 Write 4 steps to manage E-Waste. 2
24 What is the purpose of the following clauses in a select statement? 2
a. ORDER BY
b. GROUP BY
OR
4
b. To display names of students in descending order of year of admission.
SECTION-C
26 Write the name of the functions to perform the following operations: 3
a. To display the day like “Monday”, “Tuesday”, from the date when
India got independence.
b. To display the specified number of characters from a particular
position of the given string.
c. To display the name of the month in which you were born.
OR
Write the output produced by the following SQL commands:
a. SELECT YEAR(“1979/11/26”),MONTH(“1979/11/26”);
b. SELECT LEFT("INDIA",3), RIGHT("Computer Science",4);
c. SELECT MID("Informatics",6,3), SUBSTR("Practices",3);
27 For a given string “KVSROLucknowPB2024”. Write suitable 3
queries for following.
a. To extract ‘2024’ form the string.
b. To print the string in lower case letters.
c. To extract word ‘Lucknow’ from the string.
28 Shubham wants to perform following operations in SQL. Help him to write queries. 3
a. To create a database School.
b. To create a table named STUDENT with following attributes.
RollNo Name Class Section DOB House
Numeric Characters For Character Date Character
character
values in
Roman
5
OR
Write output of following SQL statements.
a. SELECT PName, avg(UPrice) FROM Product GROUP BY Pname;
b. SELECT COUNT (DISTINCT PName) FROM Product;
c. SELECT PName, MAX(UPrice), MIN(UPrice) FROM Product GROUP BY
PName;
Write a code to present it using a bar plot giving suitable title and label to chart.
6
c. Display name and dept details of all records of DataFrame
d. Display dept and age details of 101 and 104 records of DataFrame:
e. Display all the names of DataFrame.
OR
Write SQL queries for following.
a. To print cube of 5.
34 “Let’s Learn” is an educational NGO. It is setting up its new campus at Mumbai for 5
its Web-Based activities. The campus has 4 compounds as shown in the diagram
below:
Number of Computers:
7
MAIN COMPOUND 5
RESOURCE COMPOUND 15
TRAINING COMPOUND 150
FINANCE COMPOUND 20
…………………………………………..…………………………………………………………………..