CBSE XI CS

Python Mindmap: Fundamentals & Tokens

Lexical Units, Variables, Memory Model & Operators • Class 11

01 Tokens, Keywords & Identifiers
3 Topics
1.1 Character Set & Lexical Units
1.2 Keywords (Reserved Words)
1.3 Identifiers & Naming Rules
2.1 Variable Assignment & Multiple Assignment
2.2 3 Object Properties: Identity, Type, Value
3.1 Numeric Literals (Int, Float, Complex)
3.2 String Literals & Quotation Forms
3.3 Boolean Literals & Special Literal None
4.1 Expressions & Operands Overview
4.2 Arithmetic Operators (/, //, %, **)
4.3 Relational Operators (<, >, ==, !=)
4.4 Logical Operators (and, or, not)
4.5 Identity (is) vs Equality (==)
4.6 Augmented Assignment & Precedence
5.1 Implicit Conversion (Type Coercion)
5.2 Explicit Conversion (Type Casting)
5.3 Dynamic Typing vs Static Typing
5.4 Mutable vs Immutable Types
5.5 Escape Sequences & String Length
6.1 CBSE Exam Revision & Output Guidelines

โšก Quick Revision, Key Terms & Most Important Questions

Sumita Arora & Preeti Arora Aligned
๐Ÿ“– Key Terms & Definitions
Glossary
Token (Lexical Unit) The smallest individual unit recognized by the Python interpreter.
Dynamic Typing Variable data types are bound during runtime rather than compile-time.
Immutable Object Cannot be modified in-place (e.g., int, str, tuple).
Floor Division (//) Returns the quotient truncated to the nearest lesser integer.
๐ŸŽฏ Most Important Questions (Click to Reveal)
CBSE Favorite
Q1. Why does len('\n') evaluate to 1? โ–ผ
An escape sequence consists of a backslash followed by a character, but Python parses it as a single non-printable character token.
Q2. Distinguish between == and is operator. โ–ผ
== checks for value equality, whereas is tests memory identity (whether both variables point to the same id()).
Q3. Predict output: print(-7 // 2, 2 ** 3 ** 2) โ–ผ
Output: -4 512. Floor division rounds down towards negative infinity (-3.5 floors to -4), and exponentiation evaluates right-to-left (3**2=9, then 2**9=512).
๐Ÿ’ก CBSE Exam Traps & Tips
Must Read
  • Division Trap: True division / in Python 3 always yields a float (e.g. 6 / 3 produces 2.0, not 2).
  • Reserved Capitalization: Exactly three keywords start with an uppercase letter: True, False, and None.
  • Identifier Rules: Identifiers can never begin with digits or contain hyphens (e.g. 2nd_var and my-val cause a SyntaxError).
๐ŸŽฏ Test Your Understanding
10 MCQs

Solve 10 board-level conceptual questions covering tokens, dynamic typing, operators, floor division, and mutability.