0% found this document useful (0 votes)
60 views

Python - 28-03-22

This document is an exam for a Python Programming course, containing questions in 4 sections. Section 1 has 15 objective type questions testing core Python concepts like indentation, data types, functions, modules, variables, files, control flow, and more. Section 2 has 3 out of 4 long-form questions asking about Python data types, a number reversal program, differences between lists/tuples/sets, and recursion with functions. Section 3 focuses on Python definitions/benefits/applications or exceptions/error handling. Section 4 covers MySQL databases/connectivity or sockets/client-server programming plus file operations in Python. The exam tests a wide range of fundamental and applied Python programming knowledge.

Uploaded by

Dev Upadhyay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Python - 28-03-22

This document is an exam for a Python Programming course, containing questions in 4 sections. Section 1 has 15 objective type questions testing core Python concepts like indentation, data types, functions, modules, variables, files, control flow, and more. Section 2 has 3 out of 4 long-form questions asking about Python data types, a number reversal program, differences between lists/tuples/sets, and recursion with functions. Section 3 focuses on Python definitions/benefits/applications or exceptions/error handling. Section 4 covers MySQL databases/connectivity or sockets/client-server programming plus file operations in Python. The exam tests a wide range of fundamental and applied Python programming knowledge.

Uploaded by

Dev Upadhyay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Seat No: ______________ Enrollment No: ____________________

PARUL UNIVERSITY
FACULTY OF ENGINEERING & TECHNOLOGY
B.Tech. Summer 2021 - 22 Examination
Semester: 8 Date: 28/03/2022
Subject Code: 203105467 Time: 10:30 am to 01:00 pm
Subject Name: Python Programming Total Marks: 60
Instructions:
1. All questions are compulsory.
2. Figures to the right indicate full marks.
3. Make suitable assumptions wherever necessary.
4. Start new question on new page.

Q.1 Objective Type Questions - (15)


1. Python uses indentation to indicate ___.
a) Readability b) block of code
c) String d) All of Above
2. The output of the following code will be ___.

a)‘Website’ b) ‘WebsiteServer’
c) Error d) Server
3. The ____ items are present in the function header.
a) Function name b) Parameter list
c) Both A and B d) None
4. The graphical representation of large dataset is done by using ___ module.
a) Turtle b) Matplotlib
c) Graphics d) Regular expression
5. The system stores the parameter and local variables of function call on ____.
6. Python files are stored with ____ extension.
7. The if statement is also known as the _____ statement.
8. The output of the following code is _____.

9. ____ is not used as loop in Python.


10. ___ keyword is use for function.
11. Which special character is used for Comments in Python?
12. “Python has no command for declaring a variable”. State True or False.
13. Which keyword is used to create the class?
14. What is Matplotlib?
15. What is Pandas in Pyhton?
Q.2 Answer the following questions. (Attempt any three) (15)
A) What are the different data types in Python? Explain in brief.
B) Write a program to reverse the digits of a given number.
C) What is the difference between List, Tuple and Set?
D) What is function? Write an example for recursion.
Q.3 A) What is Python? Explain the benefits and application of python. (07)
B) What is Class? Explain the OOPS concept in details with Example. (08)
OR
B) Explain different types of error. What are the different ways to handle any exception? (08)

Q.4 A) Explain MySQL Database. Write the steps to connect to MySQL database with example. (07)
OR
A) What is socket programming? Explain client and server socket programming. (07)
B) Explain file operations with example. (08)

Page 1 of 1

You might also like