Question 40 In Python, all exceptions must be instances of a class that derives
ID: 3598930 • Letter: Q
Question
Question 40
In Python, all exceptions must be instances of a class that derives from BaseException.
True
False
Question 41
Attributes are to variables, as methods are to ______________.
declarations
objects
functions
exceptions
Question 42
Programming method of solving a problem by solving a smaller version of the same problem, repeatedly
Repetition
Problem Solving
Debugging
Recursion
Question 43
Function used to close a file once the program is done with that file.
end()
close()
finish()
detach()
Question 44
The len() function accepts an object and returns:
the object’s size in kilobytes.
the number of elements in the object.
part of the object.
number of parameters in the object
Question 45
_____ are part of the UML and is used to illustrate how your program’s functions will relate and support your organization’s various functions.
Flowcharts
Use case diagrams
Class diagrams
Communication diagrams
Question 46
Comments in Python begin with:
//
/>
*
#
Question 47
A UML diagram used to examine the various states that any objects will go through at various points in time
State machine diagrams
Use case diagrams
Communication diagrams
Object diagrams
declarations
objects
functions
exceptions
Explanation / Answer
40) True.
BaseException is the super class for all the exceptions.
41) functions
Methods a re also called as funtions.
42) recursion
Repeated application of a recursive process is called as Recursion.
43) close()
close(0 is the method used to close files in Python.
44) number of elements in object
45) use case diagram
46) #
In Python, # is used for writing single line comments.
47) Object diagrams
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.