[go: up one dir, main page]

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

Python 3

Uploaded by

gaurav sharma
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)
39 views2 pages

Python 3

Uploaded by

gaurav sharma
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

No. of Printed Pages : 4 Q.7 OOP stands for _________.

(CO-9)
Roll No. .................. 180853/170853
Q.8 Give an example of an arithmetic exception.
5th Sem. / Computer Engg. (CO-7)

Subject : Comp. Prog. Using Python Q.9 == is ________ operator. (CO-3)


Time : 3 Hrs. M.M. : 100 Q.10 % method is used for ________. (CO-1)
SECTION-A SECTION-B
Note:Objective type questions. All questions are Note: Very Short answer type questions. Attempt any
compulsory (10x1=10) ten questions out of twelve questions.10x2=20
(Course Outcome/CO) Q.11 What is the use of print function? (CO-6)
Q.1 What is a compiler? (CO-1) Q.12 Differentiate between break and continue
Q.2 What are environment variables? (CO-1) statements. (CO-3)

Q.3 What is the Sys Module? (CO-6) Q.13 What are scalar objects in Python? (CO-5)

Q.4 Indentation is compulsory in Python. (T/F) Q.14 What are dynamic types? (CO-5)
(CO-2) Q.15 Write down the syntax of for loop. (CO-3)
Q.5 Can we make multiple comments in Python? Q.16 Define sets in Python. (CO-4)
(CO-2)
Q.17 What is the use of PYTHONHOME environment
Q.6 What is the extension of a Python program file? variable? (CO-1)
(CO-2)
Q.18 What is the use of dir function? (CO-5)

(1) 180853/170853 (2) 180853/170853


Q.19 Define ASSERT statement. (CO-2) Q.29 Appraise the use of try block and except block in
Python with syntax. (CO-7)
Q.20 How will you write data to a file? (CO-8)
Q.30 What are various data flow constructs in
Q.21 Explain the concept of Greedy Matches.(CO-10)
Python? (CO-3)
Q.22 What are quantifiers? (CO-2)
Q.31 Differentiate between lists and types. (CO-5)
SECTION-C
Q.32 What are container data types? Explain.(CO-4)
Note:Short answer type questions. Attempt any five
SECTION-D
questions out of ten. 5x8=40
Note:Long answer type questions. Attempt any three
Q.23 What do the following string methods do:(CO-5)
questions. 3x10=30
a) lower()
Q.33 Explain inheritance and it's types with
b) count ()
examples. (CO-9)
c) replace ()
Q.34 What is a regular expression? Explain different
Q.24 Write a program in Python to determine whether
functions that can be used in regular
a number is prime or not. (CO-2)
expressions. (CO-10)
Q.25 Distinguish between C++ and Python (CO-2)
Q.35 What is a file? Explain methods to open, close,
Q.26 What are the key features of Python? (CO-2) read and write files in Python. (CO-8)
Q.27 Write down the use of sys and Math module. Q.36 What are various types of operators used in
(CO-6) Python? (CO-3)
Q.28 Differentiate b/w mutable and immutable (Note: Course outcome/CO is for office use only)
objects with example. (CO-5)
(3) 180853/170853 (4080) (4) 180853/170853

You might also like