You are on page 1of 3

FINAL TERM EXAMINATION (2022-2023)

TIME: 3 HR INFORMATICS PRACTICES CLASS 11 M.M 70


SECTION-A

1. Which of the following is a valid membership operator in Python? (1)


(i) and (ii) not (iii) is (iv) in
2. What will be the value of the expression? (12 +10 * 30)%9 (1)
(i)6 (ii) 1 (iii) 2 (iv) 3
3. Identify the valid identifier(s) from the following: (1)
STUdent , True , 2ab , roll no, float, For , while , Int
4. Given the declaration : test = ['Python' ,10, 'Good', 25.45,[12,22,43]], Give command to
display sum of inner list i.e. [12,22,43]. (1)
5. Write statement to display “EXAM”, 100 times and ‘EXAM’ joined by 2023. (1)
6. What is the difference between “234” * 3 and 234 * 3? What will be the output of both? (1)
7. Give one similarity and one difference between lists and tuples. (1)
8. Why does python interpreter report error for the following: t1 = (2,3,4,5,6,8) (1)
t1 [2] = '20'
9. If k= (10,20,30,[40,50],60,70) then print(k[3]), k[:3]) will give the output as_ ? (1)
10. How many times the following loop will be executed? for a in range(2,25,3). (1)
11. What will be the output of the following code? (1)
x,z=8,10
x,z,x,z=z-2,x+2,x+z,x-z
print(x,z)
12. Which SQL clause is used for pattern matching? Give Example? (1)
13. Which function is used to retrieve all keys from the dictionary. (1)
14. An AI technology that help computer understand, interpret and manipulate human language is
called ________________. (1)
15. Identify and correct error in SQL command given below: (1)
mysql> SELECT * from student WHERE Marks=’NULL’;
16. Write a statement in Python to declare a dictionary D1 whose keys are sub1, sub2, sub3, and
values are subject names and marks scored in term1 of your 3 favorite subjects. (2)
17. Differentiate between DDL & DML commands, giving two example each. (2)
18. What is the difference between compiler and interpreter? (2)
19. Differentiate between append() and extend() in a list. (2)
20. What are constraints in SQL, Name any 4 constraints with their usage . (2)
SECTION – B
Both the case study based question (21 & 22) are compulsory. Attempt any four sub-parts
from each question

21. Mahima is doing program on a list L which contains the values as : [10,2,15,17,9,10,4,12,10]
Write the statements she should write to get the following outputs: (1x4)
1. Display all the elements after index 2.
2. Display maximum and minimum of list L.
3. Count the number of 10 in the list
4. remove the value at index 5.
5. Add the elements of a new list [‘a’,’b’,’c’] t the list L.
22. Consider the table BANK and write SQL commands for the following :- (1X4=4)

ACCNO ACCNAME ACCTYPE AREA DEPOSIT


A111000 PRIYA SAVING JANAKPURI 45000
A111222 GUNJAN CURRENT KAROL BAGH 30000
B111222 NEETU SAVING UTTAM NAGAR 40000
A111444 POOJA SHARMA SAVING LAJPAT NAGAR 65000
(1) Set account number as primary key.
(2) Insert a new column WITHDRWAL to store amount withdrawn.
(3) Rename column DEPOSIT to CREDIT.
(4) Modify the table structure to confirm that Column AREA cannot have duplicate values.
(5) Delete column AREA from table.

SECTION : C
23. Give Output : (4)
L=[10,12,14,[50,12],1]
L.insert(3,-4)
print(L[::-2])
print(L.pop(4))
L.sort(reverse=True)
print(L)
L.remove(12)
print(len(L),L)
24. Make a dictionary of 4 students, having rollno as its key and name, marks of 5 subjects as values.
Input choice. If the choice is 1 print only the values of the dictionary. If the choice is 2 print only the
keys of the dictionary in ascending order. If the choice is 3 print the deleted item for key as 24. If the
choice is 4 find out if key 19 is present in the dictionary or not. (4)

25.
1. Why is primary memory termed as ‘destructive write’ but ‘non-destructive read’ memory? (2)
2. Differentiate between FOSS and proprietary software? (2)
3. Name the category ( system(language processor/utility software/OS) or application) of the
following software:- (2)
1.Interpreter 2. Linux 3. WinRAR
4. Disk Defragmenter 5. Assembler 6. Libreoffice Calc
26.
1. Define the term Robotics? (1)
2. Differentiate between Cloud Computing and Grid Computing? (2)
3. How is Virtual Reality different from Augmented Reality? (2)
27. Write SQL command to create a table BUS with the following specifications: (2)

FIELD NAME DATA TYPE SIZE CONSTRAINT


BUS_NO CHAR 5 PRIMARY KEY
DRIV_NAME VARCHAR 20 CANNOT BE DUPLICATE
ROUTE_NO INTEGER 5
CAPACITY INTEGER 6 NOT NULL
DESTINATION VARCHAR 30

28. Considering the following table FURNITURE, Write SQL commands for the following (1X10=10)

(i) To display FCODE, NAME and PRICE of items that have Price less than Rs. 5,000.
(ii) To display NAMES and PRICE of those Furniture Items that have 'table' anywhere in their
names.
(iii) To display different WCode of Furniture Items.
(iv) To display the NAMES and PRICE increased by 500.00 of all the furniture items. (Price
should only be displayed as increased; there should be no increase in the data in the
table).
(v) To display FCODE and NAME of each Furniture Item in descending order of FCODE.
(vi) To display the details of all the Furniture Items which have Manufacturing date
(MANUFDATE) between 01-JAN-2016 and 15-JUN-2017 (inclusive of both the dates).
(vii) To display the details of all the Furniture Items, which are made of Wood with WCODE as
W02 or W03 in order of their price from highest to lowest.
(viii) To increase the price of furniture by 15% which all are made from wood W03.
(ix) To display furniture code, its name and dozen furniture price having price less than 10000.
(x) Delete the furniture’s made from wood W01 and W02.

29. WAP to store n numbers in a list and display only those which are divisible by 9 and having 9
at its unit’s place. (3)
30. WAP to display the frequency of each character present in a string using dictionary. (3)

You might also like