11 Ip
11 Ip
11 Ip
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is given in Q34 &
Q35 against part iii only.
8. All programming questions are to be answered using Python Language only.
SECTION – A
1. Which of the following is NOT TRUE? 1
(a) The startup program stored in a ROM
(b) Hard Disk is Secondary Memory
(c) RAM is Non Volatile
(d) Solid-State Drives are Secondary Storage Devices
XI IP/SEE/2022-23/ PAGE 2
15. What is cloud computing? 1
(a) A network of computers and printers available within an Organization.
(b) A type of internet based computing that provides shared computer processing
resources and data to computers and other devices on demand.
(c) A process of scheduling computer programs to work autonomously.
(d) Storage on data on servers that is accessible by all members of organization.
OR
Identify the category (system, application, programming tool) of the following software:
(a) Compiler
(b) Assembler
(c) Python
(d) Tally
20. Give the output of the following: 2
(i) print(5 % 10 + 10 < 50 and 29 <= 29)
(ii) num1**=num2+num3
(When num1=4, num2=3, num3=2)
21. Write the output of the following python code: 2
sum = 0
for i in range(0,9,2):
if i % 4 == 0:
sum = sum + i
print (sum)
22. Consider the following list myList. What will be the elements of myList after each of the 2
following operations?
myList = [10,20,30,40]
(a) myList.append([50,60])
(b) myList.extend([80,90])
XI IP/SEE/2022-23/ PAGE 3
23. What will be the outputs of the following program if we input value of day is : (i) 5 , (ii) 8 2
day=int(input("Enter the day in number"))
if (day==1):
print("MON")
if (day==2):
print("TUE")
if (day==3):
print("WED")
if (day>=4 and day<=7):
print(“OTHER”);
else:
print(“INVALID”)
OR
A dictionary is given as:
Student={‘Aman’:75, ‘Raman’:89, ‘Nisha’:90}
Write the statements to do the following:
(i) To modify the marks of ‘Aman’ from 75 to 78
(ii) To display the marks of ‘Nisha’
24. A student table has 6 rows and 3 columns. 2 more columns are added and 2 rows are deleted. 2
What is the degree and cardinality of the final table?
25. Given the following Data types and constraints for the attributes of relation STUDENT: 2
OR
Write a program to input your friend’s, names and their phone numbers and store them in
the dictionary as the key-value pair. Perform the following operations on the dictionary:
a) Display the Name and Phone number for all your friends.
b) Add a new key-value pair in this dictionary and display the modified dictionary.
c) Delete a particular friend from the dictionary
d) Modify the phone number of an existing friend
e) Check if a friend is present in the dictionary or not
32. Consider the following table named "GYM" with details about Fitness products being 5
sold in the store.
Table Name : GYM
PrCode stores Codes of Products
PrName stores names of Products (UnitPrice is in Rs.)
XI IP/SEE/2022-23/ PAGE 5
Table: GYM
PrCode PrName UnitPrice Manufacturer
P101 Cross Trainer 25000 Avon Fitness
P102 TreadMill 32000 AG Fitline
P103 Massage Chair 20000 Fit Express
P104 Vibration Trainer 22000 Avon Fitness
P105 Bike 13000 Fit Express
Write SQL statements for (i) to (iii) and outputs for (iv) and (v) based on the table GYM:
33. Consider the following table MOVIE and answer the SQL queries based on it. 5
Table : Movie
MovieID MovieName Category ReleaseDate ProductionCost BusinessCost
001 Hindi_Movie Musical 2018-04-03 124500 130000
002 Tamil_Movie Action 2016-05-17 112000 118000
003 English_Movie Horror 2017-08-06 245000 360000
004 Bengali_Movie Adventure 2017-01-04 72000 100000
005 Telugu_Movie Action - 100000 -
006 Punjabi_Movie Comedy - 30500 -
OR
Write SQL commands for the following queries (i) to (v) based on the relation Teacher:
Table : Teacher
T_ID Ename Age Department Date_of_Join Salary Gender
T01 Jugal 34 Computer Sc 10/01/2017 12000 M
T02 Sharmila 31 History 24/03/2008 20000 F
T03 Sandeep 32 Mathematics 12/12/2016 30000 M
T04 Sangeeta 35 History 01/07/2015 40000 F
T05 Rakesh 42 Mathematics 05/09/2007 25000 M
T06 Shyam 50 History 27/06/2008 30000 M
T07 Shiv Om 44 Computer Sc 25/02/2017 21000 M
T08 Shalakha 33 Mathematics 31/07/2018 20000 F
XI IP/SEE/2022-23/ PAGE 6
(i) To list the names of female teachers of Mathematics department.
(ii) To list the names of all male teachers who get salary more than 20000.
(iii) To display teacher’s name, salary, age for male teachers only
(iv) To display name, bonus for each teacher where bonus is 10% of salary
(v) Insert a new record in the above table with the following values:
‘T09’, ‘Ajay’, 35, ‘Computer Sc’,’12/10/2017’,’M’
SECTION E
34. Table: Supplier 1
SupplierID SupplierName ItemName Quantity City +
S001 Britannia Marie Biscuit 100 Bangaluru 1
S002 Monginis Fruit Cake 250 Kolkata +
S003 Nestle Chocolate 150 New Delhi 2
S004 Biskfarm Digestive Biscuit 200 Kolkata
S005 Amul Butter 200 Mumbai
From the above supplier table answer the following:
(i) Write a query to display the city names without repetition.
(ii) Write a query to display the details of suppliers whose names start with ‘B’.
(iii) Write a query to display the Supplier Name, Item Name, City and Annual Quantity which
is calculated as quantity*12 for the suppliers Britannia and Nestle.
OR (Option for part iii only)
Differentiate between DDL and DML with suitable example of each.
35. Write the output of the queries (i) and (ii) based on the table, Furniture and answer for 1
question (iii) given below: +
1
TABLE: FURNITURE +
FID NAME DATEOFPURCHASE COST DISCOUNT 2
B001 DOUBLE BED 2018-01-03 45000 10
T010 DINING TABLE 2020-03-10 51000 5
B004 SINGLE BED 2021-06-19 22000 0
C003 LONG BACK CHAIR 2016-12-30 12000 3
T006 CONSOLE TABLE 2019-11-17 15000 12
B006 BUNK BED 2021-01-01 28000 14
(i) SELECT DATEOFPURCHASE FROM FURNITURE WHERE NAME IN ("Dining Table", "Console
Table");
(ii) SELECT * FROM FURNITURE WHERE DISCOUNT>5 AND FID LIKE "T%";
(iii) What is a Foreign Key? What is its significance in a table?
********
XI IP/SEE/2022-23/ PAGE 7