Professional Documents
Culture Documents
Xii Term-2 - Concept Test-1
Xii Term-2 - Concept Test-1
Xii Term-2 - Concept Test-1
CONCEPT TEST-1
1. Name *
Ananya Gour
2. Section *
tupl = ["annie","hena","sid"]
print(tupl[-3:0])
## *
(1 Point)
a) [“annie”]
b) []
https://forms.office.com/pages/responsepage.aspx?id=dqBGjZPQbUGle4aSzeE7-Mz2V8kyujFGgv84U5oJdlhURUZVSlI1TzFQM1ZHSzZIWVhNV… 1/4
1/5/22, 11:15 AM XII TERM-2: CONCEPT TEST-1
c) None
t1 = [1,2]
t2 = [2,1]
x = (t1 == t2)
print(x)
## *
(1 Point)
a) True
b) False
c) None
d) Error
5. Which of the following options will not result in an error when performed
on LISTS in Python where tupl=[5,2,7,0,3]?
## *
(1 Point)
a) tupl1=tupl+tupl
b) tupl.sort()
c) tupl[1]=2
https://forms.office.com/pages/responsepage.aspx?id=dqBGjZPQbUGle4aSzeE7-Mz2V8kyujFGgv84U5oJdlhURUZVSlI1TzFQM1ZHSzZIWVhNV… 2/4
1/5/22, 11:15 AM XII TERM-2: CONCEPT TEST-1
x,y = 1,2
x,y = y,x
print(x,y)
## *
(1 Point)
a) (1, 2)
b) (2, 1)
c) None
d) Error
7.
What is the output of the given below program?
print("Know Program".split())
##
*
(1 Point)
a) ‘Know’, ‘Program’
b) (‘Know’, ‘Program’)
c) [‘Know’, ‘Program’]
d) {‘Know’, ‘Program’}
print(list("a*b*c*d".split('*')))
## *
(1 Point)
https://forms.office.com/pages/responsepage.aspx?id=dqBGjZPQbUGle4aSzeE7-Mz2V8kyujFGgv84U5oJdlhURUZVSlI1TzFQM1ZHSzZIWVhNV… 3/4
1/5/22, 11:15 AM XII TERM-2: CONCEPT TEST-1
c) [‘abcd’]
d) [‘a*b*c*d’]
This content is created by the owner of the form. The data you submit will be sent to the form owner. Microsoft is
not responsible for the privacy or security practices of its customers, including those of this form owner. Never give
out your password.
https://forms.office.com/pages/responsepage.aspx?id=dqBGjZPQbUGle4aSzeE7-Mz2V8kyujFGgv84U5oJdlhURUZVSlI1TzFQM1ZHSzZIWVhNV… 4/4