Gujarat Technological UniversitySummer 2024 Examination

GTU 2180711 Python Programming Summer 2024 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 AM – 1:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

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

Question 2

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

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

7 Marks

Question 3

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

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

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

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

4 Marks
(c)
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.

7 Marks

Question 4

14 MarksMedium
(a)

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

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

Question 5

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

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

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

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

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

Download PDF