Wednesday, November 13, 2019

19FL-IT280-01 - Object Oriented Programming QUIZ 6

  • Question 1

    4 out of 4 points
    To get a better understanding of how recursion works, it is helpful to trace its calls.
    Correct Answer:
    Correct True
  • Question 2

    4 out of 4 points
    What is the lambda function in Python utilized for?
    Correct Answer:
    Correcta. 
  • Question 3

    4 out of 4 points
    Recursive solutions are often more natural and elegant than their iterative counterparts.
    Correct Answer:
    Correct True
  • Question 4

    4 out of 4 points
    Most recursive functions expect no arguments.
    Correct Answer:
    Correct False
  • Question 5

    4 out of 4 points
    What higher-order function takes a list of values and repeatedly applies a function to accumulate a single data value?
    Correct Answer:
    Correctd. 
  • Question 6

    4 out of 4 points
    The assignment of roles and responsibilities to different actors in a program is also called responsibility-driven design.
    Correct Answer:
    Correct True
  • Question 7

    4 out of 4 points
    The first five numbers of the Fibonacci sequence are 1 3 5 8 13.
    Correct Answer:
    Correct False
  • Question 8

    4 out of 4 points
    The amount of memory needed for a loop grows with the size of the problem's data set.
    Correct Answer:
    Correct False
  • Question 9

    4 out of 4 points
    In Python, functions are treated as first-class data objects. What does this mean?
    Correct Answer:
    Correctd. 
  • Question 10

    4 out of 4 points
    What higher-order function process applies a function to each value in a sequence and returns a new sequence of the results?
    Correct Answer:
    Correctb. 
  • Question 11

    4 out of 4 points
    When using functions that have default arguments, the required arguments must be provided and must be placed in the same positions as they are in the function definition's header.
    Correct Answer:
    Correct True
  • Question 12

    4 out of 4 points
    A Python function cannot under normal circumstances reference a module variable for its value.
    Correct Answer:
    Correct False
  • Question 13

    4 out of 4 points
    Where can the required arguments for a function be found?
    Correct Answer:
    Correctc. 
  • Question 14

    4 out of 4 points
    In what higher-order function do you apply a predicate to each value within a list, and if the predicate returns true, the value is added to an object?
    Correct Answer:
    Correctd. 
  • Question 15

    4 out of 4 points
    What happens when a function tries to assign or change a value of a variable that has been defined at the module level?
    Correct Answer:
    Correctc. 
  • Question 16

    4 out of 4 points
    What is the call stack used for in the Python virtual machine?
    Correct Answer:
    Correcta. 
  • Question 17

    4 out of 4 points
    In a recursive function, what is used to determine whether to stop or to continue with another recursive step?
    Correct Answer:
    Correctc. 
  • Question 18

    4 out of 4 points
    What makes up a Python program's namespace?
    Correct Answer:
    Correcta. 
  • Question 19

    4 out of 4 points
    An abstraction hides detail and thus allows a person to view many things as just one thing.
    Correct Answer:
    Correct True
  • Question 20

    4 out of 4 points
    The gradual process of developing functions to solve each subproblem in a top-down design is known as what process?
    Correct Answer:
    Correctd. 
  • Question 21

    4 out of 4 points
    For each call of a function, the Python virtual machine must allocate a small chunk of memory on the call stack, which is known by what term?
    Correct Answer:
    Correctd. 
  • Question 22

    4 out of 4 points
    What term describes a dictionary of functions keyed by command names?
    Correct Answer:
    Correcta. 
  • Question 23

    4 out of 4 points
    The use of a common pool of data allows a program to grow easily as new data sources are added to the program.
    Correct Answer:
    Correct True
  • Question 24

    4 out of 4 points
    A program's namespace is the set of its variables and their values.
    Correct Answer:
    Correct True
  • Question 25

    4 out of 4 points
    What is the name for a diagram that shows the relationships among a program's functions and the passage of data between them?
    Correct Answer:
    Correctc. 

0 comments:

Post a Comment