Question: QUESTION 21 while True: , in Python, can be used to create an infinite loop. True False 2 points QUESTION 22 The Python Framework does

QUESTION 21

  1. while True: , in Python, can be used to create an infinite loop.

    True

    False

2 points

QUESTION 22

  1. The Python Framework does inform you where an error occurred

    True

    False

2 points

QUESTION 23

  1. ____ is a critical component to being able to store data and information long term.

    File Access

    Memory

    Print function

    with

2 points

QUESTION 24

  1. Error handling is also known as ___ handling

    Result

    Recursion

    Exception

    Crash

2 points

QUESTION 25

  1. We use a ______ block to handle thrown exceptions.

    try

    except

    keywords

    lists

2 points

QUESTION 26

  1. When does python limit access to global objects from within a scope?

    When there is the presence of a newly created local variable with the same name as a global variable.

    When there is the presence of a newly created local variable with a different name than the global variable.

    When there are no new variables.

    When there is the presence of any newly created variable.

2 points

QUESTION 27

  1. Passes multiple values into a function for processing

    Global variable

    Code block

    Return

    Parameter list

2 points

QUESTION 28

  1. There is no limit to the number of except blocks a program can have.

    True

    False

2 points

QUESTION 29

  1. When we pass a variable into a function and then modify that variable inside of the function, it also modifies the variable outside of the function that we passed into the function.

    True

    False

2 points

QUESTION 30

  1. def calcBMI(hgt, wgt);

    BMI = wgt * 703 / hgt ** 2

    return BMI

    What is wrong with the above code syntax

    (hgt, wgt) should be (hgt; wgt)

    The ; should be a :

    The ** should be a ^

    The function code block needs to be closed with enddef

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!