Professional Documents
Culture Documents
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)
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)
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)