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

1215 Question Paper

This document is an examination paper for the M.Sc Summer 2018-19 semester at Parul University, focusing on Python Programming. It includes multiple choice questions, short answer questions, and longer descriptive questions, covering various topics such as Python characteristics, data structures, and exception handling. The total marks for the exam are 30, and all questions are compulsory.

Uploaded by

cchim
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)
30 views1 page

1215 Question Paper

This document is an examination paper for the M.Sc Summer 2018-19 semester at Parul University, focusing on Python Programming. It includes multiple choice questions, short answer questions, and longer descriptive questions, covering various topics such as Python characteristics, data structures, and exception handling. The total marks for the exam are 30, and all questions are compulsory.

Uploaded by

cchim
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:______________ Enrollment No:______________

PARUL UNIVERSITY
FACULTY OF APPLIED SCIENCE
M.Sc Summer 2018-19 Examination
Semester: 2 Date:12-04-19
Subject Code:11206156 Time:10:30am to 11:45pm
Subject Name:Python Programming Total Marks: 30
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. A) Multiple Choice Questions.(Each of 01 mark) (04)


1) Is Python case sensitive when dealing with identifiers?
a) yes b) no c) machine dependent d) none of the mentioned
2) What is the output when following statement is executed? "abcd"[2:]
a) a b) ab c) cd d) dc
3) Where is function defined?
a) Module b) Class c) Another function d) All of the mentioned
4) To read two characters from a file object infile, we use
a) infile.read(2) b) infile.read() c) infile.readline() d) infile.readlines()
Q.1. B) Short Questions (Each of 02 mark) (04)
1) List out Python Characteristics.
2) Explain difference between list and tuples.
Q.2. A) Short Questions (Each of 01 mark) (04)
1) Define Encapsulation.
2) What is module?
3) How to create set in python?
4) Create a dictionary use name as key and age as value.
Q.2. B) Do as Directed. (Each of 02 mark) (04)
1)Explain while…else loop with example.
2)Create a function to find reverse number of given number.
Q.3. Answer any two of the Following Question.(Each of 04 marks) (08)
1) Describe working of split and findall function with example.
2) What is class and object? Create a class employee, print name and salary of employee.
3) Write a code to demonstrate string operation.
Q.4. Answer any one of the Following Questions. (06)
1) What is Exception? How to Handle Exception in Python? Explain with example.
2) What is File? Write a code to read and write a file.

Page 1 of 1

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