Version 100% Pass
What is the purpose of using variables in programming?
✔✔ Variables are used to store data that can be referenced and manipulated throughout a
program.
What happens when you call a function without providing the required parameters?
✔✔ An error will occur, as the function requires the specified parameters to be passed when it is
called.
How can you check if an item exists in a list?
✔✔ You can use the `in` operator, like `item in list`, to check if the item exists.
What is the result of this expression?
```python
5+3*2
```
1
, ✔✔ The result will be `11` because multiplication happens before addition due to operator
precedence.
How can you access the last item in a list?
✔✔ You can access the last item by using the index `-1`, like `list[-1]`.
What is the output of the following code?
```python
x=3
y=4
print(x + y)
```
✔✔ The output will be `7` because `x` and `y` are added together.
What is the result of dividing an integer by another integer in Python 3?
✔✔ In Python 3, dividing an integer by another integer results in a float.
2