Select Page

Welcome to your Python Functions Quiz

Name
E mail
What will be the output of the following code :


print type ( type ( int ))

What is the output of the following code :
L = ['a','b','c','d']
print "".join(L)
What is the output of the following segment :
chr(ord('A'))
What is the output of the following program :
y = 8
z = lambda x : x * y
print z(6)
What is called when a function is defined inside a class?
Which of the following is the use of id() function in python?
What is the output of the following program :
import re
sentence = 'horses are fast'
regex = re.compile('(?P<animal>w+) (?P<verb>w+) (?P<adjective>w+)')
matched = re.search(regex, sentence)
print(matched.groupdict())
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop(1)?
time.time() returns ________
Consider the results of a medical experiment that aims to predict whether someone is going to develop myopia based on some physical measurements and heredity. In this case, the input dataset consists of the person’s medical characteristics and the target variable is binary: 1 for those who are likely to develop myopia and 0 for those who aren’t. This can be best classified as