Gujarat Technological UniversitySummer 2025 Examination

GTU 2180711 Python Programming Summer 2025 Paper Solution & PDF

B.E. · Computer Engineering · Semester 8 · Subject Code: 2180711
Download Official GTU PDF
Share:
Total Marks70 MarksExternal theory exam
Passing Marks23 Marks33% minimum cutoff
Exam Duration2.5 Hours10:30 PM – 1:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

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

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

7 Marks

Question 2

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

Question 3

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

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

7 Marks
OR OPTION
(a)

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

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

Question 4

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

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

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

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

7 Marks

Question 5

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

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

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

Studying for Python Programming?

Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.

About this Examination Paper & Attribution

Official Gujarat Technological University (GTU) examination paper and step-by-step solutions 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.

Download PDF