0% found this document useful (0 votes)
41 views1 page

Jan 2021 Winter

This document is an examination paper for the Python Programming subject at Gujarat Technological University for the Winter 2020 semester. It includes instructions for the exam, a list of questions covering various Python concepts, and specifies the total marks for each question. Students are required to attempt any four out of eight questions, with topics ranging from dictionaries and lists to inheritance and multi-threaded programming.

Uploaded by

Sudesh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views1 page

Jan 2021 Winter

This document is an examination paper for the Python Programming subject at Gujarat Technological University for the Winter 2020 semester. It includes instructions for the exam, a list of questions covering various Python concepts, and specifies the total marks for each question. Students are required to attempt any four out of eight questions, with topics ranging from dictionaries and lists to inheritance and multi-threaded programming.

Uploaded by

Sudesh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE- SEMESTER–VIII (NEW) EXAMINATION – WINTER 2020
Subject Code:2180711 Date:28/01/2021
Subject Name:Python Programming
Time:02:00 PM TO 04:00 PM Total Marks: 56
Instructions:
1. Attempt any FOUR questions out of EIGHT questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

Q.1 (a) What is dictionary in Python? Explain any four built-in dictionary 03
methods with example.
(b) What are the key features of Python? 04
(c) Consider the list lst=[9,8,7,6,5,4,3]. Write the Python program which 07
performs the following operation without using built-in methods.
1) Insert element 10 at beginning of the list.
2) Insert element 2 at end of the list.
3) Delete the element at index position 5.
4) Print all elements in reverse order.
Q.2 (a) “List is mutable.” - Justify with suitable example. 03
(b) Explain all augments print() method. 04
(c) Write a Python program to generate list of fibonacci number upto n 07
fibonacci numbers.

Q.3 (a) Differentiate List and Tuple in Python. 03


(b) What is negative indexes and how they are used in Python? 04
(c) What is monkey patching in Python explain with suitable example. 07

Q.4 (a) What is map in Python? Explain with example. 03


(b) What is the difference between range and xrange? 04
(c) Explain while loop & for loop with syntax and example in detail. 07

Q.5 (a) Explain usage of continue, break, and pass keyword in python. 03
(b) Explain the exception handling in Python. 04
(c) Write a program to sort the given list without using built-in methods. 07

Q.6 (a) Explain use of import keyword with suitable example. 03


(b) Write a program which demonstrates multiple inheritance. 04
(c) Write a program to search given number from list using binary search. 07

Q.7 (a) Explain inheritance in Python. 03


(b) Explain any four methods for regular expression with proper example. 04
(c) Write a program which draw square and hexagon using turtle. 07

Q.8 (a) Explain multi threaded programming in Python. 03


(b) Explain any four method for TCP socket in Python. 04
(c) Write GUI program using Tkinter which handle the button click event. 07

*************

You might also like