Gujarat Technological UniversitySummer 2024 examination

GTU 3151108 Python Programming Summer 2024 Question Paper & PDF

B.E. · EC Engineering · Semester 5 · Subject code 3151108
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 2:30 PM – 5: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.

8 of 25 questions on this paper were also asked in other years. 2 more are types of question GTU sets again with new data. Each is marked below with the years it appeared.See all 15 repeated 3151108 questions, most asked first

Q.1

14 Marks
(a)
3 marksAsked in 4 of 4 papers
Differentiate list and tuples.

Also asked in Summer 2026 Q1c, Winter 2025 Q1c, Summer 2025 Q4b

(b)
4 marks
Develop python program to print even numbers in a list.
(c)
7 marks
Explain and categorize operators in python.

Q.2

14 Marks
(a)
3 marksAsked in 2 of 4 papers
Explain dictionary in detail.

Also asked in Summer 2026 Q3b

(b)
4 marks

Develop python program to count occurrences of an element in a list

(c)
7 marks
Explain various features of a plot in python.
(c)
7 marks

Develop python program that create matrix graph of following plot using subplot

1linear plot 2.Scatter plot 3.Histogram and 4.Bar chart

Q.3

14 Marks
(a)
3 marksAsked in 2 of 4 papers
Explain for loop in detail.

Also asked in Summer 2026 Q2a

(b)
4 marksSame type asked in 2 of 4 papers
Develop python program to construct following pattern:

Also asked in Summer 2026 Q2c OR

(c)
7 marks
Make use of if, if..else, if..elif..else and , nested if.
(a)
3 marks
Explain while loop in detail.
(b)
4 marksAsked in 2 of 4 papers
Develop python program to print factorial of a number..

Also asked in Summer 2026 Q2c

(c)
7 marksAsked in 2 of 4 papers
Explain working of break, continue and pass statement.

Also asked in Summer 2026 Q3b OR

Q.4

14 Marks
(a)
3 marks
Differentiate actual and formal arguments.
(b)
4 marks

Develop python program to display fibonacci sequence using recursion method.

(c)
7 marks

Develop python program that convert decimal to binary, decimal to octal and decimal to hexadecimal number using user define function.

(a)
3 marksAsked in 3 of 4 papers

Define SCOPE, Discuss global and local variable in detail.

Also asked in Winter 2025 Q4c OR, Summer 2025 Q4c OR

(b)
4 marks

Define Lambda function, Utilize lambda function in an example.

(c)
7 marks

Develop python program to find maximum, minimum and average of given numbers using user define function.

Q.5

14 Marks
(a)
3 marksAsked in 2 of 4 papers
Define micropython, explain feature of micropython.

Also asked in Summer 2026 Q5a

(b)
4 marks

Develop python program that read and print first n lines from existing file also create new file that have first n lines from the existing file.

(c)
7 marks
Explain Exceptional handling in detail
(a)
3 marksAsked in 3 of 4 papers
Enlist mode of file in python.

Also asked in Summer 2026 Q4b, Summer 2025 Q5b OR

(b)
4 marksSame type asked in 2 of 4 papers

Develop program in micropython to send digital data on GPIO pin of micropython supported board and blink LED connected to it.

Also asked in Summer 2026 Q5b

(c)
7 marks

Develop python program to create csv file that contain five entries along with header (serial number, name, birth_date and city).

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 2024, B.E. · EC Engineering, Sem 5). 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