Revision of Python
CBSE Class 12 Computer Science · every board question from this chapter, 2026–2026
- State True or False: In Python, data type of 74 is same as the data type of 74.0.2026
- Identify the output of the following code snippet: s = "the Truth" print(s.capitalize())2026
- Which of the following expressions in Python evaluates to True?2026
- What is the output of the following code snippet? s='War and Peace by Leo Tolstoy' print(s.partition("by"))2026
- What will be the output of the following statement? print("PythonProgram"[-1:2:-2])2026
- What will be the output of the following code snippet? t = tuple('tuple') t2 = t[2], t += t2 print(t)2026
- Which of the following statements is true about dictionaries in Python?2026
- If L is a list with 6 elements, then which of the following statements will raise an exception?2026
- Assertion: [1,2,3]+'123' is an invalid expression in Python. Reason (R): In Python, a list cannot be concatenated with a string.2026
- Write a Python statement to perform the following tasks: (USE BUILT IN FUNCTIONS / METHODS ONLY) (i) To create a new list L1…2026
- Assuming that D1 is a dictionary in Python, (i) Write a Python expression to check if the key, 'RNo' is present in D1. OR Write a…2026
- What possible output(s) from the given options will NOT be displayed when the following code is executed? Also, mention, for how…2026
- Write the output of the following code: def Exam2026(given): new=[] for ch in given[1:-1]: if ch.isupper(): new.reverse() elif ch…2026
Answers come from CBSE’s own marking schemes. How we source them.