Logo

Python Questions Set 78:

Quiz Mode

Mathematical operations can be performed on a string. 

1
2

Solution:

What is the output of the following code?

chr(ord('A'))

1
2
3
4

Solution:

 Which of these is not a core data type? 

1
2
3
4

Solution:

 Functions that return an iterable set of items are called -----------------.

Solution:

Which method is used to get position of a element in a list.

1
2
3
4

Solution:

 What is the length of sys.argv? 

1
2
3
4

Solution:

Which of the following is the use of id() function in python?

1
2

Solution:

What will be the output of the following Python code?

a={1:"A",2:"B",3:"C"}
a.clear()
print(a)

1
2
3
4

Solution:

What is the output of the given code?


List=['A','b','e','k','u','s']


sList=List[:]


    

print(sList)


1
2
3
4

Solution:

 What will be the output of the following Python code?

sentence = 'we are humans'
matched = re.match(r'(.*) (.*?) (.*)', sentence)
print(matched.groups(2))

1
2
3
4

Solution: