Topics- Expressions, statement, type conversion, and input/output: precedence of operators, expression, evaluation of an expression, type-conversion (explicit and implicit conversion), accepting data as input from the console and displaying output.

 

1. What is the precedence of operators in Python?

 
 
 
 

2. Which of the following is an expression in Python?

 
 
 
 

3. How are expressions evaluated in Python?

 
 
 
 

4. What is type conversion in Python?

 
 
 
 

5. What is explicit type conversion in Python?

 
 
 
 

6. What is implicit type conversion in Python?

 
 
 
 

7. How can you accept data as input from the console in Python?

 
 
 
 

8. What is the purpose of the input() function in Python?

 
 
 
 

9. How do you display output on the console in Python?

 
 
 
 

10. What is the result of the expression int(“10”) in Python?

 
 
 
 

11. What is the result of the expression float(5) in Python?

 
 
 
 

12. What is the result of the expression str(42) in Python?

 
 
 
 

13. What is the result of the expression bool(0) in Python?

 
 
 
 

14. What is the result of the expression input(“Enter your name: “) in Python?

 
 
 
 

15. How do you convert a string to an integer in Python?

 
 
 
 

Copywrite © 2020-2024, CBSE Python,
All Rights Reserved