0% found this document useful (0 votes)
89 views2 pages

PP - Nov Winter 2019

This document is an exam for a Python Programming course, consisting of 5 questions worth a total of 70 marks. Question 1 has 3 parts asking about the differences between formal/actual parameters, how the Python interpreter works, and differences between Python and C. Question 2 has 3 parts about the raw_input() function, implementing Fibonacci sequence, and a palindrome checker. Questions 3-5 follow a similar format with multiple choice questions having 3 parts each about various Python topics like functions, file I/O, data structures, algorithms, regular expressions, plotting, and GUI programming.

Uploaded by

JANVI PANCHAL
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)
89 views2 pages

PP - Nov Winter 2019

This document is an exam for a Python Programming course, consisting of 5 questions worth a total of 70 marks. Question 1 has 3 parts asking about the differences between formal/actual parameters, how the Python interpreter works, and differences between Python and C. Question 2 has 3 parts about the raw_input() function, implementing Fibonacci sequence, and a palindrome checker. Questions 3-5 follow a similar format with multiple choice questions having 3 parts each about various Python topics like functions, file I/O, data structures, algorithms, regular expressions, plotting, and GUI programming.

Uploaded by

JANVI PANCHAL
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/ 2

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER– VIII (New) EXAMINATION – WINTER 2019
Subject Code: 2180711 Date: 29/11/2019
Subject Name: Python Programming
Time: 02:30 PM TO 05:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

MARKS
Q.1 (a) Explain Difference between formal and actual parameter with 03
example.
(b) What is Interpreter? Explain How python interpreter works. 04
(c) What are the differences between python and C language? 07

Q.2 (a) Explain raw_input() function with example. 03


(b) Write a python program to implement Fibonacci sequence for 04
given input.
(c) Write a python program to implement isPalindrome() function to 07
check given string is palindrome or no.
OR
(c) Write a python program to implement Student class which has 07
method to calculate CGPA. Assume suitable class variables.
Q.3 (a) Explain different types of comments in python. 03
(b) Explain Indexing and Slicing operation for string manipulation 04
with example in python.
(c) Explain Lists along with methods associated with lists and explain 07
mutability with respect to Lists.
OR
Q.3 (a) Explain lambda function along with map and filter functions. 03
(b) Write a python program to read line by line from a given files file1 04
& file2 and write into file3.
(c) Explain Tuples, Lists and Dictionaries with example and give 07
comment on mutability for each of them.
Q.4 (a) Give difference between black-box and glass-box testing. 03
(b) Explain usage of try-except and assert keywords. 04
(c) Write a python program to implement linear search and binary 07
search.
OR
Q.4 (a) Explain basic idea behind hash table with suitable example. 03
(b) Write a python program to implement multiple inheritance. 04
(c) Write a python program to implement merge sort. 07

Q.5 (a) Explain regular expression methods match and search with its 03
parameters.
(b) Write a python program to create a plotting of years of 04
compounding v/s value of principal using pyplot library. Assume
reasonable values for principal, interest rate and years
(c) Explain Caesar cipher and Write a python program to implement 07
Caesar cipher.
1
OR
Q.5 (a) What is socket? How to create a socket in python? 03
(b) How to implement threads in python? Explain any one method 04
using suitable example.
(c) Write a python GUI program to implement calculator using 07
Tkinter library.

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy