FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

📱

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Download GTU BE/B.Tech 2019 Summer 8th Sem New 2180711 Python Programming Question Paper

Download GTU (Gujarat Technological University) BE/BTech (Bachelor of Engineering / Bachelor of Technology) 2019 Summer 8th Sem New 2180711 Python Programming Previous Question Paper

This post was last modified on 20 February 2020

This download link is referred from the post: GTU BE 2019 Summer Question Papers || Gujarat Technological University


FirstRanker.com

GUJARAT TECHNOLOGICAL UNIVERSITY

BE - SEMESTER-VIII(NEW) EXAMINATION - SUMMER 2019

--- Content provided by FirstRanker.com ---

Subject Code:2180711

Subject Name:Python Programming

Date:17/05/2019

Time:10:30 AM TO 01:00 PM

Total Marks: 70

--- Content provided by FirstRanker.com ---

Instructions:

  1. Attempt all questions.
  2. Make suitable assumptions wherever necessary.
  3. Figures to the right indicate full marks.

Q.1

--- Content provided by FirstRanker.com ---

  1. (a) Write a python program that finds the factorial of a natural number n. 03
  2. (b) Explain the concept of specification with a suitable example. 04
  3. (c) Is String a mutable data type? Also explain the string operations length, indexing and slicing in detail with an appropriate example. 07

OR

  1. (a) Write a python program that reads a text file and changes the file by capitalizing each character of file. 03
  2. --- Content provided by FirstRanker.com ---

  3. (b) Explain the concept of stack frame in python with an appropriate example. 04
  4. (c) What do you mean by immutable data type? Explain immutable data types with their operations and functions. 07

Q.2

  1. (a) Write a python program that sorts the list [34, 25, 81, 12, 5] using merge sort. 03
  2. (b) Explain Lambda function with a suitable example. 04
  3. --- Content provided by FirstRanker.com ---

  4. (c) Explain the following python regular expression function with an example: match() and search(). 07

OR

  1. (a) What are bugs? Write about different types of bugs. What steps will you perform to identify and remove the bugs in a python script? 03
  2. (b) Explain the use of assert statement with a python program. 04
  3. (c) Describe how aliasing creates a problem in mutable data type with an example. 07
  4. --- Content provided by FirstRanker.com ---

Q.3

  1. (a) Write a python program that creates a class Student having attributes {Enrollement No, Name} and methods set_data that takes the values from the user and assigns them to attributes of the class and an operator overloading function that converts Student object to string. Also create an Class variable student_count that will maintain the count of Student Instances and a method that will display this count. 03
  2. (b) Explain the use of following socket functions: socket(), bind() and listen(). 04
  3. (c) Write a simple python program that draws a line graph where x = [1,2,3,4] and y = [1,4,9,16] and gives both axis label as “X-axis”and “Y-axis” using pylab. 07

OR

--- Content provided by FirstRanker.com ---

  1. (a) Write a python program that implement Caesar encryption and decryption algorithm. 03
  2. (b) Write a python program that shows the concept of Inheritance. 04
  3. (c) Write a python function that displays a regular polygon of side n in turtle. Assume that the number and length of side of regular polygon is provided by user. Regular polygon means all sides the same lengths, all angles the same. 07

Q.4

  1. (a) Write a python program that reads a text file containing full-name of the employees of a company and then from these names it extracts Last-name of names in format: First-name Middle-name Last-name and stores it in a file. 03
  2. --- Content provided by FirstRanker.com ---

  3. (b) Write a note on Tkinter widget: Text (Multiline text). 04
  4. (c) Explain in detail about Grid attributes in Tkinter 07

OR

  1. (a) Write a TCP/IP client server chat application. 03
  2. (b) Explain the use of following turtle functions with appropriate example: turn() and move() 04
  3. --- Content provided by FirstRanker.com ---

  4. (c) Write a Python GUI program of window size 100*200 that displays a button at x = 20 and y = 100 labeled as “Click Here”. Also add a function on that button that will create a message box having message “Thank you for clicking”. 07

Q.5

  1. (a) How to create a thread in python? Explain with an example. 03
  2. (b) Explain in detail about Grid attributes in Tkinter 04
  3. (c) Write a TCP/IP client server chat application. 07
  4. --- Content provided by FirstRanker.com ---

OR

  1. (a) Explain the use of following turtle functions with appropriate example: turn() and move() 03
  2. (b) Write a Python GUI program of window size 100*200 that displays a button at x = 20 and y = 100 labeled as “Click Here”. Also add a function on that button that will create a message box having message “Thank you for clicking”. 04
  3. (c) How to create a thread in python? Explain with an example. 07

FirstRanker.com

--- Content provided by FirstRanker.com ---



This download link is referred from the post: GTU BE 2019 Summer Question Papers || Gujarat Technological University

--- Content provided by FirstRanker.com ---