Gujarat Technological UniversitySummer 2024 examination

GTU 2180711 Python Programming Summer 2024 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 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.

Q.1

14 Marks
(a)
3 marks
How to comment specific line(s) in Python program?
(b)
4 marks
What is the duck typing philosophy of python?
(c)
7 marks
What is list in Python? Demonstrate use of any three methods of list.

Q.2

14 Marks
(a)
3 marks
Write a Python program to find reverse of given number.
(b)
4 marks
Write a Python program to read a text file and do following:
1Print no. of words
2Print no. of lines
(c)
7 marks
Explain Dictionary in Python with example.
(c)
7 marks

Write a python program to implement isPalindrome() function to check given string is palindrome or no.

Q.3

14 Marks
(a)
3 marks
What is the use of islower() and isupper() method?
(b)
4 marks

What is Method Resolution Order (MRO)? Explain the principles followed by MRO with example.

(c)
7 marks
Write a Python program for a linear search.
(a)
3 marks
Write a difference(s) between black-box and glass-box testing.
(b)
4 marks

Write a Python program which will throw exception if the value entered by user is less than zero

(c)
7 marks
Write a python program to create a class Employee with data members:

name, department and salary. Create suitable methods for reading and printing employee information.

Q.4

14 Marks
(a)
3 marks

Write a Python program that matches a string that has an 'a' followed by anything, ending in 'b'.

(b)
4 marks
Explain the use of assert statement with a python program.
(c)
7 marks
Differentiate Abstract class and interface with example.
(a)
3 marks
Explain any two regular expression methods with its parameters.
(b)
4 marks
How to create a Socket in python? Explain with example.
(c)
7 marks
Write a python program of chat application using socket programming.

Q.5

14 Marks
(a)
3 marks
Write a short note on Grid attributes in Tkinter.
(b)
4 marks
Write a program to implement Caesar Cipher.
(c)
7 marks

Explain the major steps used to create widgets. Write a python program to display a label upon clicking a push button.

(a)
3 marks
Explain the use of any two turtle functions with appropriate example.
(b)
4 marks
Write a Python program to demo Thread and Process.
(c)
7 marks

Explain the creation of different types of containers available in Tkinter? Elaborate the explanation with suitable example

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. · 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