1. Command to print.
hello-how-are-you

2. Which of the following is incorrect?
• float('inf')
• float('nan')
• float('56'+'78')
• float('12+34')

Answer. float('12+34')

3. What error occurs when you execute the following Python code snippet? apple = mango

Answer. NameError

4. What will be the output of the following Python code snippet?
def example(•:
a = a + '2'
a = a*2
return a
>>>example("hello")

5. What is the result of cmp(3, 1)?

Answer. 1

6. Which one of the following has the same precedence level?
• Addition and Subtraction
• Multiplication, Division and Addition
• Multiplication, Division, Addition and Subtraction
• Addition and Multiplication

7. What is the output of this expression, 3*1**3?

Answer. 3

8. Which of the following is true for variable names in Python?
• unlimited length
• all private members must have leading and trailing underscores
• underscore and ampersand are the only two special characters allowed
• none of the mentioned

9. All keywords in Python are in _________
• lower case
• UPPER CASE
• Capitalized
• None of the mentioned