Computers and Technology, 25.11.2021 23:30 phavion
1. Your task is to write a function that finds the smallest number in a list of numbers. What is the best way to declare a temporary variable and why?
a) Declare it as a local variable because it makes it easier to read the code.
b) Declare it as a local variable because using less memory is preferred.
c) Declare it as a global variable since it is easier to comment and faster to read.
d) Declare it as a global variable since these variables translate easier into machine code.
2. What type of variables are defined outside of a function?
a) Global
b) Inner
c) Local
d) Outer
3. Which of the following cannot be a variable name in Python?
a) addre55
b) Phone_123
c) userNAME
d) zip Code
4. When designing a program, it is good practice to find and reduce the amount of repetitive code. What is this practice called?
a) Code reduction
b) Deduplicating
c) Reducing repetition
d) Simplification
5. Explain how you would define a variable named balance, assuming that it will only be accessed in a single function.
a) Balance should be a global variable held in memory until the execution ends.
b) Balance should be a global variable on a hard drive to save memory.
c) Balance should be a local variable held in memory, so the code runs quickly.
d) Balance should be a local variable in the function, so it saves memory.
Answers: 3
Computers and Technology, 22.06.2019 09:00
Create a cell reference in a formula by typing in the cell name or a. right-clicking the cell. b. clicking the cell. c. clicking the column where the cell is located. d. clicking the row where the cell is located.
Answers: 1
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
1. Your task is to write a function that finds the smallest number in a list of numbers. What is the...
Mathematics, 19.11.2020 04:00
Biology, 19.11.2020 04:00
Biology, 19.11.2020 04:00
Mathematics, 19.11.2020 04:00
Social Studies, 19.11.2020 04:00
Mathematics, 19.11.2020 04:00
Mathematics, 19.11.2020 04:00
Mathematics, 19.11.2020 04:00
English, 19.11.2020 04:00
Mathematics, 19.11.2020 04:00
Mathematics, 19.11.2020 04:00
Chemistry, 19.11.2020 04:00
Mathematics, 19.11.2020 04:00