0% found this document useful (0 votes)
4 views3 pages

CH Answer Key

The document provides an answer key for a Computer Science Class XII exam, including multiple-choice questions (MCQs), true/false questions, assertion-reason pairs, error finding, and output finding sections. Each question is accompanied by the correct answer and brief explanations where applicable. It serves as a revision tool for Python concepts covered in Class XI and XII.

Uploaded by

sikaramsha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

CH Answer Key

The document provides an answer key for a Computer Science Class XII exam, including multiple-choice questions (MCQs), true/false questions, assertion-reason pairs, error finding, and output finding sections. Each question is accompanied by the correct answer and brief explanations where applicable. It serves as a revision tool for Python concepts covered in Class XI and XII.

Uploaded by

sikaramsha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Computer Science Class XII - Answer Key with Short

Explanations

Python Revision Tour of Class XI

MCQs
1. b — int("23.5") gives error.
2. b — pass is a keyword.
3. b — Else block executes.
4. b — == is comparison operator.
5. a — break exits loop.
6. a — Output: 1 2 3.
7. c — clear() removes all items.
8. d — Single element tuple needs comma.
9. d — All statements are correct.
10. b — items() returns tuples.
11. gimro nhyP
12. c — lower() converts to lowercase.

True / False
13. True
14. False
15. True
16. True
17. True
18. False
19. False
20. False
21. True
22. True
23. False
24. True

Assertion–Reason
25. c
26. a
27. c
28. c
29. c
30. a
31. a
32. a
33. c
34. a
35. a
36. d

Error Finding Answers


37. x, y, z = 10, 20, 30
38. Convert inputs to int before addition.
39. Use proper function name, colon, indentation, and else.
40. Use def, == and proper colon syntax.
41. Variable assignment and >= operator correction.
42. Use colons and elif keyword correctly.
43. Add missing comma and remove tuple modification.
44. Correct list syntax, remove(), tuple bracket errors.
45. Correct dictionary brackets and values.
46. print([Link]())
47. Iterate through string directly and use 'in'.
48. Fix quote mismatch and upper() syntax.

Finding Outputs
49(a). 1029
49(b). True
50. 77.5
51. Error
52. **uD*
53. d — 23455
54. c — 19
55. [1, 2, 3, [4, 5]]
56. (1, 2, [99, 4])
57. c
58. a
59. exam$$$$*CBSE*COM
60. c*mput*er

Python Functions

MCQs
1. c
2. c
3. b
4. d
5. a
6. a

True / False
7. False
8. True
9. True
10. False
11. False
12. True

Assertion–Reason
13. d
14. a
15. c
16. a
17. a
18. c

Error Finding
19. Correct function syntax and return statement.
20. Add missing colons and brackets.
21. Default argument should come after non-default argument.
22. Positional argument cannot follow keyword argument.
23. Non-default parameter should come before default parameter.
24. Initialize x before incrementing and fix indentation.

Finding Outputs
25.
100
200
180.0

26.
Hello World
Python - Programming
10:20

27. Nina A Mumbai


28. x: 3 y: 5 z: 20

You might also like