FREE Live Master Session: Code Your AI Companion for Kids

    Register for Free →
    Part C: Practical Work (35 Marks Total)

    Part C: Practical Examination & FileClass 9 Artificial Intelligence (Subject Code 417)

    Complete reference manual for the CBSE Grade 9 AI practical examination. Contains the official 15 prescribed Python practical programs with verified solutions, practical record notebook guidelines, and top viva voce questions.

    Practical File (Min 15 Programs): 15 Marks
    Lab Exam (3 Programs): 15 Marks
    Viva Voce: 5 Marks

    Official Practical Assessment Breakdown (35 Marks)

    Practical File (15 Marks)

    Documentation of at least 15 verified Python programs with proper problem statements, comments, and console outputs.

    Lab Exam (15 Marks)

    Execution of 3 coding tasks during lab exam covering I/O, mathematical expressions, if-else conditions, and lists.

    Viva Voce (5 Marks)

    Oral examination assessing student understanding of Python concepts, debugging, operators, and logic flow.

    CBSE Suggested Program List

    15 Prescribed Python Programs for Practical File

    PRINT1. Personal Information Bio

    Print personal information like Name, Father's Name, Class, and School Name.

    # Program 1: Print Personal Information
    name = "Aditya Sharma"
    father_name = "Rajesh Sharma"
    student_class = "Class IX - Section A"
    school = "Delhi Public School"
    
    print("====================================")
    print("       STUDENT BIO DATA CARD        ")
    print("====================================")
    print("Student Name :", name)
    print("Father's Name:", father_name)
    print("Class        :", student_class)
    print("School Name  :", school)
    print("====================================")
    PRINT2. Star and Number Patterns

    Print multi-line visual patterns using multiple print commands.

    # Program 2: Print Patterns using print()
    print("--- Pattern 1: Right-Angled Star Triangle ---")
    print("*")
    print("* *")
    print("* * *")
    print("* * * *")
    
    print("\n--- Pattern 2: Numerical Pyramid ---")
    print("   1   ")
    print("  2 2  ")
    print(" 3 3 3 ")
    print("4 4 4 4")
    PRINT3. Square and Addition of Numbers

    Find the square of number 7 and the sum of 15 and 20.

    # Program 3: Square and Sum
    num = 7
    square_val = num ** 2
    print("The square of", num, "is:", square_val)
    
    num1 = 15
    num2 = 20
    total_sum = num1 + num2
    print("The sum of", num1, "and", num2, "is:", total_sum)
    PRINT4. Kilometers to Meters Conversion

    Convert distance given in kilometers into equivalent meters.

    # Program 4: Kilometers to Meters
    distance_km = 12.5
    distance_meters = distance_km * 1000
    
    print(distance_km, "kilometers =", distance_meters, "meters")
    PRINT5. Multiplication Table of 5

    Print the table of 5 up to five terms.

    # Program 5: Multiplication Table of 5 (First 5 terms)
    base = 5
    for i in range(1, 6):
        print(base, "x", i, "=", base * i)
    PRINT6. Simple Interest Calculation

    Calculate SI if principal = 2000, rate = 4.5, time = 10 years.

    # Program 6: Simple Interest Calculator
    principal = 2000
    rate = 4.5
    time = 10
    
    si = (principal * rate * time) / 100
    total_amount = principal + si
    
    print("Principal Amount : ₹", principal)
    print("Rate of Interest :", rate, "%")
    print("Time Period      :", time, "years")
    print("Simple Interest  : ₹", si)
    print("Total Amount Due : ₹", total_amount)
    INPUT7. Area & Perimeter of Rectangle

    User inputs length and breadth; calculate area and perimeter.

    # Program 7: Rectangle Geometry
    length = float(input("Enter length of rectangle: "))
    breadth = float(input("Enter breadth of rectangle: "))
    
    area = length * breadth
    perimeter = 2 * (length + breadth)
    
    print("Area of Rectangle      =", area)
    print("Perimeter of Rectangle =", perimeter)
    INPUT8. Area of Triangle (Base & Height)

    User inputs base and height; compute area.

    # Program 8: Triangle Area
    base = float(input("Enter base of triangle: "))
    height = float(input("Enter height of triangle: "))
    
    area = 0.5 * base * height
    print("Area of Triangle =", area)
    INPUT9. Average Marks of 3 Subjects

    Input marks of 3 subjects and compute total and percentage average.

    # Program 9: Average Marks
    sub1 = float(input("Enter marks in AI: "))
    sub2 = float(input("Enter marks in Mathematics: "))
    sub3 = float(input("Enter marks in Science: "))
    
    total = sub1 + sub2 + sub3
    average = total / 3
    
    print("Total Marks Obtained =", total, "/ 300")
    print("Average Percentage   =", round(average, 2), "%")
    INPUT10. Surface Area & Volume of Cuboid

    Calculate total surface area and volume of a cuboid from user inputs.

    # Program 10: Cuboid Dimensions
    l = float(input("Enter length: "))
    b = float(input("Enter breadth: "))
    h = float(input("Enter height: "))
    
    volume = l * b * h
    surface_area = 2 * (l * b + b * h + h * l)
    
    print("Volume of Cuboid       =", volume)
    print("Surface Area of Cuboid =", surface_area)
    LIST11. Science Quiz Selection List

    CBSE prescribed list operations: delete Vikram, append Jay, remove index 1.

    # Program 11: Science Quiz Team List
    students = ["Arjun", "Sonakshi", "Vikram", "Sandhya", "Sonal", "Isha", "Kartik"]
    print("Initial Selected Students:", students)
    
    # Step 1: Print whole list
    print("Total count:", len(students))
    
    # Step 2: Delete 'Vikram' from list
    students.remove("Vikram")
    print("After removing Vikram:", students)
    
    # Step 3: Add 'Jay' at the end
    students.append("Jay")
    print("After adding Jay:", students)
    
    # Step 4: Remove item at second position (index 1)
    removed_student = students.pop(1)
    print("Removed student at 2nd position:", removed_student)
    print("Final Student Team:", students)
    LIST12. Positive and Negative List Indexing

    Analyze num=[23, 12, 5, 9, 65, 44] with positive and negative slices.

    # Program 12: List Indexing
    num = [23, 12, 5, 9, 65, 44]
    print("Original List:", num)
    
    # 1. Print length
    print("Length of list:", len(num))
    
    # 2. Elements from second to fourth position using positive indexing (index 1 to 3)
    pos_slice = num[1 : 4]
    print("2nd to 4th element (positive index):", pos_slice)
    
    # 3. Elements from third to fifth position using negative indexing
    # neg index: num[-4 to -1]
    start, end = -4, -1
    neg_slice = num[start : end]
    print("3rd to 5th element (negative index):", neg_slice)
    LIST13. List Operations: Extend and Sort

    List_1=[10,20,30,40]. Extend with [14,15,12], sort ascending and display.

    # Program 13: Extend and Sort
    List_1 = [10, 20, 30, 40]
    print("Initial List_1:", List_1)
    
    # Add [14, 15, 12] using extend()
    List_1.extend([14, 15, 12])
    print("After extend:", List_1)
    
    # Sort in ascending order
    List_1.sort()
    print("Sorted in Ascending Order:", List_1)
    CONDITIONS & LOOPS14. Voting Eligibility and Positive/Negative Check

    Check voting eligibility by age and classify number as positive, negative, or zero.

    # Program 14: Conditional Branching
    # Check Voting
    age = int(input("Enter citizen age: "))
    if age >= 18:
        print("Eligible to Vote in National Elections.")
    else:
        print("Ineligible to vote. Must be at least 18.")
    
    # Check Number Sign
    number = float(input("Enter any number: "))
    if number > 0:
        print("The number is Positive (+).")
    elif number < 0:
        print("The number is Negative (-).")
    else:
        print("The number is Zero.")
    CONDITIONS & LOOPS15. Loops: Natural, Even & List Sum

    Print first 10 natural numbers, first 10 even numbers, and sum of list items.

    # Program 15: Loops & Summation
    print("First 10 Natural Numbers:")
    for i in range(1, 11):
        print(i, end=" ")
    print()
    
    print("\nFirst 10 Even Numbers:")
    for i in range(2, 21, 2):
        print(i, end=" ")
    print()
    
    # Sum of numbers stored in a list
    numbers_list = [10, 25, 30, 45, 50]
    list_sum = 0
    for val in numbers_list:
        list_sum += val
    
    print("\nNumbers in List:", numbers_list)
    print("Sum of all numbers in list =", list_sum)
    Viva Voce Preparation (5 Marks)

    Frequently Asked Practical Viva Questions

    Q1: What does `input()` return by default?

    It always returns a string (str). To perform arithmetic calculations, you must wrap it in `int()` or `float()`.

    Q2: What is the difference between `/` and `//`?

    `/` is true division returning a floating-point number (e.g. 7 / 2 = 3.5). `//` is floor division returning only the integer quotient (7 // 2 = 3).

    Q3: How does `append()` differ from `extend()`?

    `append(x)` adds a single item to the list. `extend(iterable)` iterates over another collection and appends all individual elements.

    Q4: What is negative indexing in Python?

    Negative indexing accesses elements from the right end of a list: `-1` refers to the last element, `-2` refers to the second last, and so forth.

    Frequently Asked Questions: Part C Practical Work

    Explore Part D: Project Work (15 Marks)

    Learn how to complete your AI Project using Google Teachable Machine or Machine Learning for Kids, map to UN SDGs, and maintain your student portfolio.

    Go to Project Work →
    🎓 Live 1-on-1 Classes

    Book a Free Demo Class

    Get personalised CBSE Class 9 AI coaching from expert educators. Interactive live sessions, doubt resolution, and exam preparation — tailored to your pace.

    Curriculum reference: CBSE Class 9 Artificial Intelligence (Subject Code 417), Session 2026–27.

    Disclaimer: TeacherColab is an independent educational platform and is not affiliated with or endorsed by CBSE.