Xii Term-2 - Concept Test-1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

1/5/22, 11:15 AM XII TERM-2: 

CONCEPT TEST-1

XII TERM-2: CONCEPT TEST-1 


CLASS: XII (2021-22)

Subject : COMPUTER SCIENCE(083)

1. Name *

Ananya Gour

2. Section *

3.  Find the output of the given Python program?

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

d) Error as slicing is not possible in LIST.

4. Find the output of the given Python program?

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

NONE OF THE ABOVE

https://forms.office.com/pages/responsepage.aspx?id=dqBGjZPQbUGle4aSzeE7-Mz2V8kyujFGgv84U5oJdlhURUZVSlI1TzFQM1ZHSzZIWVhNV… 2/4
1/5/22, 11:15 AM XII TERM-2: CONCEPT TEST-1

6. What is the output of the given below program?

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’}

8. Find the output of the given Python program?

print(list("a*b*c*d".split('*')))

## *
(1 Point)

a) [‘a’, ‘*’, ‘b’, ‘*’, ‘c’, ‘*’, ‘d’]

https://forms.office.com/pages/responsepage.aspx?id=dqBGjZPQbUGle4aSzeE7-Mz2V8kyujFGgv84U5oJdlhURUZVSlI1TzFQM1ZHSzZIWVhNV… 3/4
1/5/22, 11:15 AM XII TERM-2: CONCEPT TEST-1

b) [‘a’, ‘b’, ‘c’, ‘d’]

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.

Powered by Microsoft Forms | Privacy and cookies | Terms of use

https://forms.office.com/pages/responsepage.aspx?id=dqBGjZPQbUGle4aSzeE7-Mz2V8kyujFGgv84U5oJdlhURUZVSlI1TzFQM1ZHSzZIWVhNV… 4/4

You might also like