11. |
What will be the output of the following Python code?
g = (i for i in range(5)) type(g)
|
||||||||
Answer:
Option (d) |
12. |
What will be the output of the following Python code?
int('65.43')
|
||||||||
Answer:
Option (b) |
13. |
Which of the following statements is true?
|
||||||||
Answer:
Option (a) |
14. |
Which of the following is not a standard exception in Python?
|
||||||||
Answer:
Option (c) |
15. |
Syntax errors are also known as parsing errors.
|
||||
Answer:
Option (a) |
16. |
An exception is ____________
|
||||||||
Answer:
Option (a) |
17. |
_______________________ exceptions are raised as a result of an error in opening a particular file.
|
||||||||
Answer:
Option (d) |
18. |
Which of the following blocks will be executed whether an exception is thrown or not?
|
||||||||
Answer:
Option (c) |