Computational Thinking and Programming-I Quiz 5

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?

 
 
 
 

Jitendra Singh
✔ Verified Educator

Jitendra Singh

Founder of CBSEPython.in

I help CBSE Class 9–12 students learn Python, Information Technology, Artificial Intelligence and Computer Science through easy notes, quizzes, MCQs and sample papers.

Read More About Me →