Module 4

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What is the output of the following snippet? tup = (1, ) + (1, ) tup = tup + tup print(len(tup))

4

Which of the following statements is false?

the return keywords forces the function to restart its execution

What is the output of the following snippet? def fun(in=2, out=3) : return in * out print(fun(3))

the snippet is erroneous

A function definition:

Must be placed before the first invocation

The none keyword designates:

a None value

A function definition starts with the keyword:

def

A variable defined outside a function:

may be read, but not written (something more is needed to do so)

A function parameter is a kind of variable accessible:

only inside the function

A way of argument passing in which the order of the arguments determines the initial parameters' values is referred to as:

positional

If a list is passed into a function as an argument, deleting any of its elements inside the function using the del instruction:

will affect the argument


Ensembles d'études connexes

Parent Teacher Communications Final

View Set

Understanding Your Paycheck Quiz

View Set

Chapter 37: Vascular Disorders, Chapter 37 Vascular Disorders, Chapter 37 Vascular Disorders, Chapter 37: Vascular Disorders, Chapter 37: Vascular Disorders, STROKE--CHAPTER 57, Lewis 57: Stroke, Ch. 57 Stroke, Chapter 57: Stroke, Stroke Ch. 57, Ch....

View Set

Chapter 44: Assessment and Management of Patients with Biliary Disorders

View Set

NurseLogic Testing and Remediation Beginner

View Set

Finance Management Chapter 11 - FIN 780

View Set

Education 2130 Midterm: Chapter 1

View Set