1.Why are local variable names beginning with an underscore discouraged?

2. Which of the following is not a keyword?
• eval
• assert
• nonlocal
• pass

Answer. eval

3. Mathematical operations can be performed on a string?

Answer. False

4. Operators with the same precedence are evaluated in which manner?

Answer. Left to Right

5. What is the return type of function id?

Answer. int

6. In python we do not specify types, it is directly interpreted by the compiler, so consider the following operation to be performed.
>>>x = 13 ? 2
objective is to make sure x has a integer value, select all that apply (python 3.xx)
• x = 13 // 2
• x = int(13 / 2)
• x = 13 % 2
• All of the mentioned

7. What does ~~~~~~5 evaluate to?

Answer. +5

8. Which of the following is incorrect?
• x = 0b101
• x = 0x4f5
• x = 19023
• x = 03964

Answer. x = 03964

9. What is the average value of the following Python code snippet?
grade1 ,grade2 =80, 90
average = (grade1 + grade2) / 2

Answer. 85.0