Gujarat Technological UniversityWinter 2025 examination

GTU 3151108 Python Programming Winter 2025 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 10:30 AM – 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.

7 of 25 questions on this paper were also asked in other years. Each is marked below with the years it appeared.See all 15 repeated 3151108 questions, most asked first

Q.1

14 Marks
(a)
3 marks

Write a Python Program to check whether a given number is a palindrome or not.

(b)
4 marks

Provide a brief explanation of bitwise AND, OR, and XOR operators.

(c)
7 marksAsked in 4 of 4 papers

Explain the difference between a list and a tuple in Python. Provide suitable example for it.

Also asked in Summer 2026 Q1c, Summer 2025 Q4b, Summer 2024 Q1a

Q.2

14 Marks
(a)
3 marks

How does the operator // differ from / in Python? Explain with the help of suitable example.

(b)
4 marks

Write a Python Program to Return the Length of the Longest Word from the given list of words.

(c)
7 marks
Explain assignment operator and arithmetic operator in Python.
(c)
7 marks
List and briefly explain built-in data types in Python.

Q.3

14 Marks
(a)
3 marks

How does the "else" statement differ from the "elif" statement? Explain with the help of suitable example.

(b)
4 marks

How does "continue" differ from "break" in terms of loop control? Explain with example.

(c)
7 marks

Write a Python Program to print the largest even and largest odd number in a list.

(a)
3 marksAsked in 2 of 4 papers

Explain use of break statement in side while loop with the help of suitable example.

Also asked in Summer 2025 Q4a OR

(b)
4 marks

How can you use a "for" loop to iterate over the keys of a dictionary in Python?

(c)
7 marks

Write a Python Program to print the sum of negative numbers, positive even numbers and positive odd numbers in a given list.( assume suitable List)

Q.4

14 Marks
(a)
3 marks

Describe the use of following built-in methods for the dictionary in python. clear(), keys(), get().

(b)
4 marks

What is module in python? Give examples of any two external Python modules and explain their use.

(c)
7 marks

Explain what is an exception in Python. Provide an example of a common built-in exception in Python.

(a)
3 marks

Describe the use of following built-in methods for the list in python. append(), pop(), remove()

(b)
4 marks

Write a simple custom function in Python that takes two parameters and returns their sum.

(c)
7 marksAsked in 3 of 4 papers

Explain the concept of variable scope in Python. Provide an example of a local variable and a global variable in Python.

Also asked in Summer 2025 Q4c OR, Summer 2024 Q4a OR

Q.5

14 Marks
(a)
3 marksAsked in 2 of 4 papers

Explain the steps involved in installing MicroPython on a microcontroller or development board.

Also asked in Summer 2026 Q5a OR

(b)
4 marks

Explain file exception handling. What are the reasons for file exceptions?

(c)
7 marksAsked in 2 of 4 papers

With the help of suitable example explain reading and writing data to CSV file in python.

Also asked in Summer 2026 Q4c OR

(a)
3 marksAsked in 2 of 4 papers

Explain the role of MicroPython in Internet of Things (IoT) applications.

Also asked in Summer 2025 Q5c OR

(b)
4 marksAsked in 3 of 4 papers

What is MicroPython, and how does it differ from the standard Python language?

Also asked in Summer 2026 Q5b OR, Summer 2025 Q5c

(c)
7 marks

List and briefly MicroPython libraries that are commonly used in embedded systems.

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 (Winter 2025, 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