Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions

Question

7 out of 1 0 What is a code of ethics?

Answered: 1 week ago