CBSE Class 12 Computer Science — Review of Python Basics (Class XI Recap)
All previous year questions from Chapter: Review of Python Basics (Class XI Recap)
8 questions found
2026(8 questions)
- 1
State True or False : In Python, data type of 74 is same as the data type of 74.0.
1 mark· A· Data Types in Python - 2
Identify the output of the following code snippet : ```python s = "the Truth" print(s.capitalize()) ```
1 mark· A· String Methods — capitalize() - 3
Which of the following expressions in Python evaluates to True ?
1 mark· A· Logical Operators (and) - 4
What is the output of the following code snippet ? ```python s='War and Peace by Leo Tolstoy' print(s.partition("by")) ```
1 mark· A· String Methods — partition() - 5
What will be the output of the following statement ? ```python print("PythonProgram"[-1:2:-2]) ```
1 mark· A· String Slicing with Negative Step - 6
What will be the output of the following code snippet ? ```python t = tuple('tuple') t2 = t[2], t += t2 print(t) ```
1 mark· A· Tuples — Indexing and Concatenation - 7
Which of the following statements is true about dictionaries in Python ?
1 mark· A· Dictionaries — Key Properties - 8
If L is a list with 6 elements, then which of the following statements will raise an exception ?
1 mark· A· Lists — pop() and insert() Methods