Gujarat Technological UniversitySummer 2025 examination

GTU 2180711 Python Programming Summer 2025 Question Paper & PDF

B.E. · Computer Engineering · Semester 8 · Subject code 2180711
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 10:30 PM – 1:00 PM
Questions
5 with internal choice
No solutions on this paper yetNeed them for your exam? Ask once. Papers that students ask for are solved first, and we aim to add them within 24 hours.

Q.1

14 Marks
(a)
3 marks
Define the terms:
1)Assertion
2)Regular Expression
3)Recursion
(b)
4 marks
Define specifications. Explain “docstring” in python.
(c)
7 marks

Explain exception. Explain exception handling in python with suitable example.

Q.2

14 Marks
(a)
3 marks
Explain scoping of GLOBAL variables in Python.
(b)
4 marks
Define the terms:
1)Mutability
2)Lambda Abstraction
3)Cloning
4)readline( )
(c)
7 marks
Compare list, tuple and dictionary data types in python.
(c)
7 marks
Define Testing. Explain Black Box Vs Glass Box testing.

Q.3

14 Marks
(a)
3 marks
Explain Hash Table with suitable example.
(b)
4 marks
Explain different functions which allow searching a string for a match.
1)findall
2)group
3)match
4)search
(c)
7 marks

Explain the use of PyLab in python. Explain use of plot( ), show( ) and title( ) functions of PyLab.

(a)
3 marks

Write a python code to establish socket connection between two machines.

(b)
4 marks
Write a program to implement Caesar Cipher.
(c)
7 marks
Define inheritance. Explain multiple inheritances with suitable example.

Q.4

14 Marks
(a)
3 marks
Explain the following Turtle methods in Python.
1)Turtle( )
2)begin_fill( )
3)stamp( )
(b)
4 marks
Write a python program to implement Binary Search algorithm.
(c)
7 marks

Define Lambda function. Write a program to find area of triangle using Lambda function.

(a)
3 marks
Define Turtle. Explain the use of it in Python.
(b)
4 marks
Explain if…else in python with suitable example.
(c)
7 marks

A company having turnover = [110000, 130000, 164000, 190000, 215000] and profit percentage = [9.5, 9, 8.25, 8.75, 9.25] of past 5 years. Draw line chart showing growth of profit (in amount) and turnover using pylab module in python. Draw both graphs in same

Q.5

14 Marks
(a)
3 marks
Define the terms:
1)Dynamic Binding
2)Encapsulation
3)Abstraction
(b)
4 marks
Define default argument. Explain with suitable example.
(c)
7 marks

Write a python program to implement class named “Student” having methods input, display, enrol_no, name, branch, gender as the variables.

(a)
3 marks
Write a python program to remove the leading zeros from the IP address.
(b)
4 marks
Enlist the steps to create chat application using python.
(c)
7 marks
Write a python program using Tkinter as below.

More Python Programming papers

Questions repeat across sessions. Working through two or three papers shows you which topics GTU asks most.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

Official Gujarat Technological University (GTU) examination paper for Python Programming (Summer 2025, B.E. · Computer Engineering, Sem 8). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

ViewDownload PDF