(Multiple Choice) Latest Version
Graded A+
Which of the following is used to define a variable in Python?
✔✔A) `var = 10`
B) `let var = 10`
C) `define var = 10`
D) `variable = 10`
What data type is the value 10 in Python?
A) String
B) Float
✔✔C) Integer
D) Boolean
Which of the following is a correct way to create a list in Python?
✔✔A) `list = [1, 2, 3]`
B) `list = (1, 2, 3)`
1
,C) `list = {1, 2, 3}`
D) `list = <1, 2, 3>`
Which operator is used for multiplication in Python?
✔✔A) `*`
B) `x`
C) `#`
D) `@`
Which function is used to obtain user input in Python?
A) `get_input()`
✔✔B) `input()`
C) `read_input()`
D) `scan()`
What is the output of the following code snippet?
```python
x=5
2
, print(x + 3)
```
A) 5
✔✔B) 8
C) 53
D) 3
What is the result of the expression `3 == 3` in Python?
✔✔A) True
B) False
C) 0
D) None
Which of the following is used to define a function in Python?
A) `function myFunction()`
✔✔B) `def myFunction()`
C) `function = myFunction()`
D) `create myFunction()`
3