stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python for Cybersecurity: ch. 5 - Functions Flashcards | StudBud
Explore
/
Python for Cybersecurity: ch. 5 - Functions
Python for Cybersecurity: ch. 5 - Functions
7 terms
·
StudBud Administration
·
184 plays
Imported from external platform
Flashcards
7 cards
F
Practice quiz
P
Host live
L
Questions
7
Answers
1
local scope is the main scope of the program
False
True
2
which one of these items is not a type of scope
local
enclosed
total
built-in
3
How is recursion implemented?
having a function call other nested functions
having a function that prints out every line of a file
having a function call itself repeatedly
having a function iterate through files and folders
4
where should 'import' live in your program
end of the program
after the variables
beginning of the program
after the functions
5
w/out changing scope: a variable in a function is accessible only in that function
False
True
6
every python file has what variable?
global
local
__main__
__name__
7
Which 3 are features of Functions
makes code maintenance more efficient
prevents code from becoming too complex to understand
Keeps the variable scope global for the whole python script
saves time/effort to write same function code in other parts of the program