Menu

N 11 Used Define Scope Python Sub Indentation 4 Points Question 12 Programing Element Begi Q43787472

N 11

  1. Used to define the scope in Python

    { }

    sub

    indentation

    ( )

4 points   

QUESTION 12

  1. This programing element begins with the keyword def.

    variables

    functions

    keywords

    lists

4 points   

QUESTION 13

  1. When does python limit access to global variables/objects fromwithin a scope?

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

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

    When there are no new variables.

    When there is the presence of any newly created variable.

4 points   

QUESTION 14

  1. Used to pass one or multiple values into a function forprocessing.

    Global variable

    Code block

    Return

    Parameter list

4 points   

QUESTION 15

  1. Without lists and other collection objects such as arrays,vectors, and dictionaries, the processing capability of ourprograms would be greatly improved.

    True

    False

4 points   

QUESTION 16

  1. One of the three programming structures that will choose one oftwo paths of execution based on the results of a true/falsequestion:

    Sequence

    Iteration

    Loop

    Decision

4 points   

QUESTION 17

  1. Because lists are sequences, indexing and slicing work the sameway for lists as they do for strings.

    True

    False

4 points   

QUESTION 18

  1. Which is the following is true about structured programming

    Each structure should have one entry point, but can havemultiple exit points

    Each structure can have multiple entry points, but only one exitpoint

    Each structure has no limit on the number of the entry pointsand exit points

    Each structure should have one entry point and one exitpoint

4 points   

QUESTION 19

  1. ____ within a list are identified by an index number, placedwithin square brackets after the name of the list. For example:

    Decisions

    Items

    Elements

    Code

4 points   

QUESTION 20

  1. What does the following comparison operator mean ==

    Equal to

    Approximately

    Greater than

    Not Equal

4 points   

QUESTION 21

  1. Boolean expressions are only true

    True

    False

4 points   

QUESTION 22

  1. Programming method for solving a problem by solving a smallerversion of the same problem repeatedly.

    Repetition

    Problem Solving

    Debugging

    Recursion

4 points   

QUESTION 23

  1. Any problem that can be solved with recursion could bere-implemented with loops.

    True

    False

4 points   

QUESTION 24

  1. Component to a function used to get output directly from afunction.

    for

    output

    return

    print

4 points   

QUESTION 25

  1. Define a Python list for the days of the week, and then use aloop (while or for) to print that list.

Expert Answer


Answer to N 11 Used to define the scope in Python { } sub indentation ( ) 4 points QUESTION 12 This programing element begins with…

OR