Logo

Python Questions Set 149:

Quiz Mode

>>>'Python'[1:5:2]

1
2
3
4

Solution:

import sys


sys.stderr.write("Abekus")

1
2
3
4

Solution:

What will be the output of the following Python statement?

>>>"a"+"bc"

1
2
3
4

Solution:

Which expression is most likely to result in an arithmetic overflow?

1
2
3
4

Solution:

Which files in Django serve the purpose of additional files such as CSS, images, or JavaScript files?

1
2
3
4

Solution:

 Which of the following pattern matching modifiers permits whitespace and comments inside the regular expression? 

1
2
3
4

Solution:

 

What will be the output of the following Python code?

print("Hello {0} and {1}".format('foo', 'bin'))

1
2

Solution:

Which Django model exception is raised when the requested field does not exist?

1
2
3
4

Solution:

 

What will be the output of the following Python code if the system date is 18th August, 2016?

tday=datetime.date.today()
print(tday.month())

1
2
3
4

Solution:

How do you check the version of Django installed on your system?

1
2
3
4

Solution: