Question
QUESTION 40 In Python, all exceptions must be instances of a class that derives from BaseException. True False 2 points QUESTION 41 Attributes are to
QUESTION 40
-
In Python, all exceptions must be instances of a class that derives from BaseException.
True
False
2 points
QUESTION 41
-
Attributes are to variables, as methods are to ______________.
declarations
objects
functions
exceptions
2 points
QUESTION 42
-
Programming method of solving a problem by solving a smaller version of the same problem, repeatedly
Repetition
Problem Solving
Debugging
Recursion
2 points
QUESTION 43
-
Function used to close a file once the program is done with that file.
end()
close()
finish()
detach()
2 points
QUESTION 44
-
The len() function accepts an object and returns:
the objects size in kilobytes.
the number of elements in the object.
part of the object.
number of parameters in the object
2 points
QUESTION 45
-
_____ are part of the UML and is used to illustrate how your programs functions will relate and support your organizations various functions.
Flowcharts
Use case diagrams
Class diagrams
Communication diagrams
2 points
QUESTION 46
-
Comments in Python begin with:
//
/>
*
#
2 points
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
2 points
QUESTION 48
-
The simplest way to produce output is using the _____ statement
Get
Try
Print
Use
2 points
QUESTION 49
-
Separates the keys when defining the contents of a dictionary.
(
{
:
[
2 points
QUESTION 50
-
Statement used to delete a dictionary element
remove
del
erase
terminate
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started