XIInfo Pract pt3433
XIInfo Pract pt3433
_______________________________________________________________________________________________
General Instruction:
(a). Make sure to follow a sequence while writing.
(b). Paper is divided into three sections i.e. A, B and C
(c). Section A contains VERY Short Answer Type questions of 5 marks
(d). Section B contains Short Answer Type Questions of 10 marks with internal choices
(e). Section C contains Long Answer Type Questions of 10 marks
Q4. Assertion(A): Mutable type dictionaries internally store elements through immutable keys. 1
Reasoning(R): In every key: value pair, the key must be of immutable type always, to
facilitate internal mapping of elements.
What does each of the following expressions evaluates to ? Suppose that L is the list
[‘These’,[‘are’,’a’,’few’,’words’],’that’,’we’,’will’,’use’]
OR
Create a dictionary ‘ODD’ of odd numbers between 1 and 10. Where the key is the numbers
and the value is the corresponding numbers in words.
Q12. A) Write a Python Program to Square Each Element of the List and Print List in 6
Reverse Order. [3+3]
B) Write a Python script to generate and print a dictionary that contains a number
(between 1 and n) in the form (x, x*x).
Sample Output
Enter the Limit : 5
{1: 1, 2: 4, 3: 9, 4: 16, 5: 25}.