Logo

Python Questions Set 34:

Quiz Mode

 

chr(ord('A'))

Solution:

______() method in itertool is similar to filter() method.

Solution:


L = ['a','b','c','d'] 

print "".join(L) 

1
2
3

Solution:

Which of these is not a core data type in Python?

1
2
3
4

Solution:

Deduce the output of the following code:


s={1,1,2,2,2,3,4,4,5}

y=len(s)

print(y)

Solution:

What is the output of the given code?


nums=[]


nums.append('Abekus')


nums.append(100)


print(nums)

Solution:

What is the output of the following Python code?

print("xyyzxyzxzxyy".count('xyy', 2, 11))

1
2
3
4

Solution:

 

What will be the output of the following Python code?

print('abcdef'.partition('cd'))

1
2

Solution:

What is the purpose of Django's field class?

1
2
3
4

Solution:

Is the following Python code valid?

>>> a=(1,2,3)
>>> b=('A','B','C')
>>> c=zip(a,b)

1
2
3
4

Solution: