This download link is referred from the post: GTU BE 2020 Summer Question Papers || Gujarat Technological University
Subject Code: 2180711
GUJARAT TECHNOLOGICAL UNIVERSITY
--- Content provided by FirstRanker.com ---
BE — SEMESTER-VIII- EXAMINATION- SUMMER 2020Subject Name: Python Programming
Time: 02.30 PM TO 05.00 PM
Instructions:
- Attempt all questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
--- Content provided by FirstRanker.com ---
- (a) What is the duck typing philosophy of python? [03]
(b) What is the difference between compiler and Interpreter? Explain How python interpreter works. [04]
(c) Which are the different types of operators in python language? Explain membership and identity operators with examples. [03] - (a) Explain List comprehension with an example. [04]
(b) Describe following string functions with syntax: title() , strip(), islower(), isupper(). [07] - (a) Explain different sequences types with example in python. [07]
OR
(b) Explain mutable and immutable data types with example in python. [03]--- Content provided by FirstRanker.com ---
(c) Explain the lambda function with syntax and example. [04] - (a) Explain indexing and slicing operation for string manipulation with example in python. [03]
(b) What is the difference between error and exception? Explain exception handling in python with example. [04]
OR
(c) Explain Method Resolution Order in python. [07] - (a) Explain Indexing and Slicing operation for the list with example in python. [03]
(b) What is testing? Explain Black box v/s glass box testing. [04]
(c) Explain match and search methods with the syntax of the regular expression module in python. [07] - (a) Explain object orientation in python with example. [03]
(b) Differentiate Abstract class and interface with example. [04]--- Content provided by FirstRanker.com ---
OR
(c) Explain built-in class attributes in a python class. [07] - (a) Write a program to implement a student class with five-member variables and with at least two methods to get and set values. [03]
(b) Explain Inheritance in python with example. [04]
(c) Write a program to create two threads to print the first 100 numbers. [07] - (a) How to create a Socket in python? Explain with example. [03]
(b) Write a program for a linear search and binary search. [04]
OR
(c) Write a GUI program to create two buttons using Tkinter. When one button pressed another button to disappear and when again pressed the other button to appear. [07] - (a) Write a program to implement Caesar Cipher. [03]
--- Content provided by FirstRanker.com ---
(b) Write a program for bubble sort and quicksort. [04]
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Date: 27/10/2020
Total Marks: 70
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE 2020 Summer Question Papers || Gujarat Technological University