0% found this document useful (0 votes)
5 views

Class XI PT II

Uploaded by

shift1kvadoor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Class XI PT II

Uploaded by

shift1kvadoor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Maximum Marks: 35 Time: 1.

5 Hrs

Part-A Marks
No

1 Write a statement in Python to declare a dictionary whose keys are a,b,c and 1
values are January, February and March respectively.

2 Name the built-in mathematical function / method that is used to return the 1
smallest integer greater than or equal to x.
3 Identify the data type of T: 1
T = [‘A’, ‘23’, ‘92’, ‘(10,20)’]
a. dictionary b. string c.tuple d. list
4 Name the built-in random function / method that is used to return a random 1
number between 0 and 1.
5 What will be the output of following code 1

6 Predict the Output: 1

7 Predict the output 2


L=[1,2,3,4,5,6]
print(L[::-1])
8 1

9 Assertion(A): Dictionaries are enclosed by curly braces { }


Reason(R): The key-value pairs are separated by commas ( , )
A. Both A and R are true and R is the correct explanation of A.
B. Both A and R are true but R is not the correct explanation of A.
C. A is true but R is false.
D. A is false but R is true.
Part-B Marks
No
Two Marks Questions
10 Write the built-in functions for the following: 2
(i) To find the maximum value from a given list L
(ii) Remove the last element of the given list
11 What we can see on the screen as output. 2
m1=['x','y',8,10]
m1.extend([55,44])
print(m1)
m1.append(6)
print(m1)
12 Write any two differences between List and Tuple with an example. 2
13 A tuple is declared as tuple1 = (2,4,6,8,10,12) 2
Write the output of the following:
(i)print(tuple1[1+4])
(ii) print(tuple1[-1])
Part-C Marks
No
Three Marks Questions
14 Write a program to accept elements of a list from the user. Multiply elements of the list 3
with 7, if an element is a multiple of 7 otherwise multiply each element with 4. After
processing, display the elements
15 Write a program to read a tuple of integers and find the minimum value present in the 3
tuple
16 Write the output of the following python code 3
A={1:100,2:200,3:300,4:400,5:500}
print(A.items())
print(A.keys())
print(A.values())
Part-D Marks
No
Four Marks Question
Consider the following list 4
17
L=[13,18,20,10,18,23]
Write python statements to perform
(a) count number of times the value 18 is repeating
(b)arrange values in descending order
(c) delete the list
(d)insert 15 at index position 3
Part-D Marks
No
Five Marks Question
(a) Write a program to count the frequency of each character in a string using 5
18
dictionary. (3 Marks)
(b) Write a program to read a string and count number of vowels present in it.
(2 Marks)

You might also like