AKTU Python Programming (BCC402) Question Paper 2024-25
| University | Dr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow |
|---|---|
| Course | B.Tech, Semester IV |
| Subject | Python Programming (BCC402) |
| Exam | Theory Examination 2024-25 (even semester) |
| Time · Marks | 3 hours · 70 marks |
| Source | AKTU question paper, from the ABESIT question paper bank |
Note: Attempt all Sections. In case of any missing data; choose suitably.
Section A
Q1. Attempt all questions in brief · 2 × 7 = 14 marks
- What are Python variables? Explain with examples.
- Describe Python basic operators with suitable examples.
- Explain different Python data types with examples.
- How are numeric data types declared and used in Python?
- Write a Python program to demonstrate type casting between int, float, and string. int, float string
- 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
- Differentiate between for loop and while loop with syntax and examples.
Section B
Q2. Attempt any three of the following · 7 × 3 = 21 marks
- What are break, continue, and pass statements? Give code examples.
- Write a Python program using for loop and dictionary to display student grades.
- Discuss the use of nested loops in Python. Write a program to print a right-angled triangle of stars.
- Explain string slicing and string operations in Python.
- Describe how tuples differ from lists in Python with examples.
Section C
Q3
Attempt any one part of the following · 7 × 1 = 7 marks
- Write a program to demonstrateCreate, Read, Update, and Delete(CRUD) operations on a dictionary.
- 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
- How can data be organized using complex data types in Python?
- Explain file handling modes in Python.
Q5
Attempt any one part of the following · 7 × 1 = 7 marks
- Write a program to read and write data from a text file.How do readline() and readlines() work? Explain with examples. readline()
- 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
- Write a Python program using numpy to perform matrix operations. Numpy
- 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
- What is GUI programming in Python? Write a GUI-based Python program using Tkinter to accept and display student data. GUI ? Tkinter GUI
- How do we use packages in Python programming? Explain the use of pandas. Python ? Pandas
Short on time? See the most repeated AKTU Python Programming questions across all years.
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.