Tuesday, 01 September 2026
Lecture 42 of 73 · Unit 2
Unit 2 ⏳ Pending
Unlocks at 05:00 PM, 01 Sep 2026

Data types, mutability and object identity Theory part 2

What We'll Learn

A quick overview of today's lecture

Data types, mutability and object identity Theory part 2 Concept ID: XI_U2_DATA_TYPES_MUTABILITY_IDENTITY. Primary Sub-subtopic: Data types, mutability and object identity. Question-bank grouping: Python Basics and Data Concepts. Use this lecture for theory, examples, misconceptions, and short PYQ checks mapped to this concept ID.
Key things we'll cover
Data types, mutability and object identity
PYQ references used by all prompt types 12 included 0 excluded
Flagged questions are excluded from Study Notes, PPT, and Student Notes references until corrected in Paper Analyzer.
Included 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
Included ID 1403 · 2025 · 2 mark(s)
(b) What is None in Python?
Python Basics and Data Concepts → Data types, mutability and object identity
Included 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
Included 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
Included 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
Included 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
Included 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
Included 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
Included 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
Included 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
Included 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
Included 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
Student Notes (Print)
.txt