Question: Need help with python question please. Thanks in advance. 40. When an argument is passed to a function in Python, any reassignments of the function
Need help with python question please. Thanks in advance.
40.
When an argument is passed to a function in Python, any reassignments of the function parameter will not affect the argument.
| True |
| False |
41.
Which function in the math module will round down to 3?
| int(3.74) |
| round(3.74) |
| math.ceil(3.74) |
| math.floor(3.74) |
56.
If days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], what does the following return?
days[1:3]
| ['Sunday', 'Monday', 'Tuesday'] |
| ['Monday', 'Tuesday', 'Wednesday'] |
| ['Monday', 'Tuesday'] |
| ['Tuesday'] |
59.
Given the following Python code, what will the data type of pet be?
pet = "Gordon", "Gecko", 3
| undefined |
| list |
| string |
| tuple |
72.
If numbers = [0, 2, 4, 6], what does numbers equal after the following line?
numbers = [element + 2 for element in numbers]
| [0, 4, 8, 12] |
| [-2, 0, 2, 4] |
| [2, 4, 6, 8] |
| [0, 1, 2, 3] |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
