Data types, mutability and object identity Theory part 2
Data types, mutability and object identity
PYQ reference preview12 included0 excluded
Review every matched question before generating. Flag a wrongly categorised question to
quarantine it from both study and PPT prompts until it is corrected in CBSE Paper Analyzer.
Included in reference
ID 1356 · 2025 · 2 mark(s)
Draw a flowchart for a program that accepts an integer input from the user and checks whether the number is even or odd. Display the appropriate message based on the result.
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1403 · 2025 · 2 mark(s)
(b) What is None in Python?
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1531 · 2025 · 2 mark(s)
What is the purpose of None data type in Python?
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1095 · 2025 · 3 mark(s)
Write a Python program that takes an integer input from the user and checks whether the number is prime or not.
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1096 · 2025 · 3 mark(s)
Write a Python program that takes an integer n as input from the user and prints the first n terms of the Fibonacci series.
E.g. If the user enters 5, the program should print: 0 1 1 2 3
If the user enters 8, the program should print: 0 1 1 2 3 5 8 13
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1215 · 2025 · 3 mark(s)
What are data types? What are Python's built-in core data types?
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1324 · 2025 · 4 mark(s)
Write a program to check whether an integer input by the user is a 5-digit number and whether it is prime or composite.
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1325 · 2025 · 4 mark(s)
Write a program which accepts a positive integer value and check if it is an Armstrong number or not.
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1366 · 2025 · 4 mark(s)
Write a program to accept an integer and check if it is a perfect number or not.
Note:-A perfect number is a positive integer that is equal to the sum of its proper divisors (excluding the number itself).
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1367 · 2025 · 4 mark(s)
Write a program to find the GCD and LCM of two positive integers
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1106 · 2025 · 5 mark(s)
(i) Write a program in python that accepts two numbers and swap them without using a third variable.
(ii) Write a program in python that accepts a and b two integers and compute the greatest common divisor.
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Included in reference
ID 1221 · 2025 · 5 mark(s)
a=int(input("enter an integer"))
b=int(input("enter an integer"))
if a<=0:
b=b+1
else:
a=a+1
if a>0 and b>0:
print("W")
elif a>0:
print("X")
if b>0:
print("Y")
else:
print("Z")
A. What letters will be printed if the user enters 0 for a and 0 for b?
a. Only W
b) . Only X
c) . Only Y
d) W and X e) W,X and Y
B. What letters will be printed if the user enters 1 for a and 1 for b?
a. W and X
b) . W and Y
c) . X and Y
d) . X and Z e). W,X and Y
C. What letters will be printed if the user enters 1 for a and -1 for b?
a. W and X
b) . X and Y
c) . Y and Z
d) . X and Z e). W and Z
D. What letters will be printed if the user enters 1 for a and 0 for b?
a. W and X
b) . X and Y
c) . Y and Z
d) . X andZ e). W and Z
E. What letters will be printed if the user enters -1 for a and -1 for b?
a. Only W
b) Only X
c) Only Y
d) Only Z e) No letters are printed
Python Basics and Data Concepts
→ Data types, mutability and object identity
· Concept XI_U2_DATA_TYPES_MUTABILITY_IDENTITY
Pick a lecture from the panel on the left, configure the board and student level,
then click Generate Prompt. The result includes PYQ data,
frequency analysis, exam trends, and a full 15-section teaching package request —
ready to paste into any AI assistant.
ChatGPTClaudeGeminiDeepSeek
PYQ Analysis
Frequency, marks & high-yield concepts
Lecture Flow
Exact time-allocation plan
15 Sections
From objectives to ranked exam questions
Export
Copy or download as .txt
Reset All Progress?
This will clear all Done and Missed marks and rebuild the schedule from scratch.
A backup will be created automatically before resetting. You can restore it from the Backups page.