If you are a programmer then you must have some knowledge on Python. Are you just getting into programming are studying advanced python? This second quiz is designed to gauge your understanding of this language. Give it a try and see how much you score. Good luck!
Defines a list and initializes it
Defines a function, which does nothing
Defines a function, which passes its parameters through
Defines an empty class
What gets printed? Assuming python version 2.x print type(1/2)
Syntax error
4
5
6
7
7
12
24
36
48
2.0
2.25
9.0
20.25
21
1
2
4
5
7
Yes
No
Fails to compile
1
2
3
4
A only
A and D
A, B, and C
A, B, and D
A, B, C, and D
True
False
Wait!
Here's an interesting quiz for you.