B.TechSemester 42024-25Python ProgrammingBCC402

Python Programming (BCC402) - AKTU Question Paper 2024-25

B.Tech · Semester 4 · Free PDF Download

This is the official AKTU Python Programming Previous Year Question Paper for B.Tech Semester 4, academic session 2024-25. Published by Dr. A.P.J. Abdul Kalam Technical University (AKTU/UPTU), Lucknow. Free PDF download — no login required.

Course:B.Tech
Semester:Semester 4
Session:2024-25
University:AKTU / UPTU

Rate this paper

5 · 1 rating

Questions Asked in 2024-25

Python Programming (BCC402) — complete question paper · 70 marks · 3 Hours

Section AAttempt all questions in brief. 02 x 7 = 14
  • a
    What are Python variables? Explain with examples
  • b
    Describe Python basic opera tors with suitable examples
  • c
    Explain different Python data types with examples
  • d
    How are numeric data types declared and used in Python?
  • e
    Write a Python program to demon strate type casting between int, float, and string
  • f
    Explain the use of if, else, an d elif. Write a Python program tocheckthe given number is even or odd using if and else statement
  • g
    Differentiate between for loop and while loop with syntax and examples
Section BAttempt any three of the following: 07 x 3 = 21
  • a
    What are break, continue, and pass statements? Give code exa mples
  • b
    Write a Python program using for loop and dictionary to disp lay student grades
  • c
    Discuss the use of nested loops in Python. Write a program t o print a right-angled triangle of stars
  • d
    Explain string slicing and string operations in Python
  • e
    Describe how tuples differ fr om lists in Python with examples
Section CAttempt any one part of the following: 07 x 1 = 07
  • a
    Write a program to demonstrat eCreate, Read, Update, and Dele te(CRUD) operations on a dictionary
  • b
    Explain commonly us ed string methods in Python. Write a prog ram using the following operations on the given string: text = " Machine Learning " Use the following methods  lower()  upper()  strip()  replace()  find()  count() text = " Machine Learning "  lower()  upper()  strip()  replace()  find()  count()
  • a
    How can data be organized usi ng complex data types in Python?
  • b
    Explain file handling modes in Python
  • a
    Write a program to read and write data from a text file.How do readline() and readlines() work? Explain with examples
  • b
    What is the purpose of the s eek() method in file handling?De monstrate a program that copies content from one file to another
  • a
    Write a Python program using numpy to perform matrix operations
  • b
    Explain the use of matplotlib for data visualization. Write a program to visualize Line plots using these data
  • a
    What is GUI programming in P ython? Write a GUI-based Python program using Tkinter to accept and display student data
  • b
    How do we use packages in Python programming? Explain the us e of pandas

Question text is extracted from the official AKTU question paper PDF above. Hindi translations are omitted — every question is printed in English in the original paper. Last verified: 2026-08-23.

Repeated Questions — BCC402

Questions that appeared in more than one session, found by comparing 2 years of Python Programming papers (2024-25, 2025-26)

2x

Differentiate between for loop and while loop with syntax and examples

Appeared in: 2024-25 · 2025-26

2x

What is the purpose of the s eek() method in file handling?De monstrate a program that copies content from one file to another

Appeared in: 2024-25 · 2025-26

Syllabus & More PYQs

Paper solve karne se pehle unit-wise syllabus dekh lo