Saturday, 05 September 2026
Lecture 45 of 73 · Unit 2
Unit 2 ⏳ Pending
Unlocks at 05:00 PM, 05 Sep 2026

Data types, mutability and object identity PYQ part 3

What We'll Learn

A quick overview of today's lecture

Data types, mutability and object identity PYQ part 3 PYQ PRACTICE SCOPE: Data types, mutability and object identity. Concept ID: XI_U2_DATA_TYPES_MUTABILITY_IDENTITY. Use only previous-year questions whose concept_ids include XI_U2_DATA_TYPES_MUTABILITY_IDENTITY.
Key things we'll cover
Data types, mutability and object identity
PYQ references used by all prompt types 8 included 0 excluded
Flagged questions are excluded from Study Notes, PPT, and Student Notes references until corrected in Paper Analyzer.
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