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

  1. In Python, all exceptions must be instances of a class that derives from BaseException.

    True

    False

2 points

QUESTION 41

  1. Attributes are to variables, as methods are to ______________.

    declarations

    objects

    functions

    exceptions

2 points

QUESTION 42

  1. 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

  1. Function used to close a file once the program is done with that file.

    end()

    close()

    finish()

    detach()

2 points

QUESTION 44

  1. 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

  1. _____ 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

  1. Comments in Python begin with:

    //

    />

    *

    #

2 points

QUESTION 47

  1. 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

  1. The simplest way to produce output is using the _____ statement

    Get

    Try

    Print

    Use

2 points

QUESTION 49

  1. Separates the keys when defining the contents of a dictionary.

    (

    {

    :

    [

2 points

QUESTION 50

  1. Statement used to delete a dictionary element

    remove

    del

    erase

    terminate

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!