Class 11 IP Chapter 4 Back Exercise Part B Solutions Sumita Arora New Syllabus / Listing11IPSA, Uncategorized / By Neha 10. Make change in the expression for z of previous question so that the output produced is zero. You cannot change the operators and order of variables. (Hint. Use a function around a sub-expression) x, y ...click here for answers 1. What is the result produced by (i) bool(0) (ii) bool(str(0)) ? Justify the outcome. (i) bool(0) ...click here for answers 15. Find the errors(s). ...click here for answers 13. Given a string s = “12345”. Can you write an expression that gives sum of all the digits shown inside the string s i.e., the program should be able to produce the result as 15 (1 + 2 + 3 + 4 + 5). [Hint. Uses indexes and convert to integer] # Output ...click here for answers 11. Following expression does not report an error even if it has a sub-expression with ‘divide by zero’ problem : What changes ...click here for answers 12. What is the output produced by following code ? ...click here for answers 8. What will be the output of following Python code ? a = ...click here for answers 9. What will be the output of following code ? x, y ...click here for answers 6. What will be output produced by following code ? State reason, a = ...click here for answers 7. What would be the output produced by following code ? Why ? a, b, ...click here for answers 5. What will be output produced by following code ? State reason for this output. a, b, ...click here for answers 2. What will be the output, if input for both the statements is 5 + 4/2. 6 == ...click here for answers 3. Following code has an expression with all integer values. Why is the result in floating point form ? a, b, ...click here for answers 4. What will following code print ? (a) a ...click here for answers