Papers / AKTU / B.Tech / Python Programming
AKTU · B.Tech · 4th semester

AKTU Python Programming (BCC402) Question Paper 2024-25

UniversityDr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow
CourseB.Tech, Semester IV
SubjectPython Programming (BCC402)
ExamTheory Examination 2024-25 (even semester)
Time · Marks3 hours · 70 marks
SourceAKTU question paper, from the ABESIT question paper bank
View original PDF Other years

Note: Attempt all Sections. In case of any missing data; choose suitably.

Section A

Q1. Attempt all questions in brief · 2 × 7 = 14 marks

  1. What are Python variables? Explain with examples.
  2. Describe Python basic operators with suitable examples.
  3. Explain different Python data types with examples.
  4. How are numeric data types declared and used in Python?
  5. Write a Python program to demonstrate type casting between int, float, and string. int, float string
  6. Explain the use of if, else, and elif. Write a Python program tocheckthe given number is even or odd using if and else statement. if, else, elif if else
  7. Differentiate between for loop and while loop with syntax and examples.

Section B

Q2. Attempt any three of the following · 7 × 3 = 21 marks

  1. What are break, continue, and pass statements? Give code examples.
  2. Write a Python program using for loop and dictionary to display student grades.
  3. Discuss the use of nested loops in Python. Write a program to print a right-angled triangle of stars.
  4. Explain string slicing and string operations in Python.
  5. Describe how tuples differ from lists in Python with examples.

Section C

Q3

Attempt any one part of the following · 7 × 1 = 7 marks

  1. Write a program to demonstrateCreate, Read, Update, and Delete(CRUD) operations on a dictionary.
  2. Explain commonly used string methods in Python. Write a program using the following operations on the given string:
    text = " Machine Learning "
    Use the following methods
    • lower()
    • upper()
    • strip()
    • replace()
    • find()
    • count()

Q4

Attempt any one part of the following · 7 × 1 = 7 marks

  1. How can data be organized using complex data types in Python?
  2. Explain file handling modes in Python.

Q5

Attempt any one part of the following · 7 × 1 = 7 marks

  1. Write a program to read and write data from a text file.How do readline() and readlines() work? Explain with examples. readline()
  2. What is the purpose of the seek() method in file handling?Demonstrate a program that copies content from one file to another.

Q6

Attempt any one part of the following · 7 × 1 = 7 marks

  1. Write a Python program using numpy to perform matrix operations. Numpy
  2. Explain the use of matplotlib for data visualization. Write a program to visualize Line plots using these data.
    x = [1, 2, 3, 4, 5]
    y = [10, 20, 25, 30, 40]
    Matplotlib

Q7

Attempt any one part of the following · 7 × 1 = 7 marks

  1. What is GUI programming in Python? Write a GUI-based Python program using Tkinter to accept and display student data. GUI ? Tkinter GUI
  2. How do we use packages in Python programming? Explain the use of pandas. Python ? Pandas

Other years

More AKTU Python Programming papers on LearnAIFast.

This paper is reproduced for study purposes only. Copyright belongs to AKTU. Source: the question paper bank of ABES Institute of Technology, an AKTU-affiliated college. If you own the copyright and want it removed, email learnwithskillnest@gmail.com and we will take it down.