Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
9 views

Python Imp questions

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)
9 views

Python Imp questions

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

1 Write a program to print following :*

1
1 2
12 3
Write python program to display output like.*
2
468
10 12 14 16 18

2 Explain four Buit-in tuple functions python with example…………Write a python program to
input any two tuples and interchange the tuple variables.*
3 Write a program to create class EMPLOYEE with ID and NAME and display its
contents…………Design a class student with data members : name, roll no., department, mobile
no. Create suitable methods for reading and printing student information…………..Write a
program to create class student with Roll no. and Name and display its contents.**
4 Explain membership and assignment operators with example………..Explain membership and
Identity operators in Python.*
5 Write a program to create dictionary of students that includes their ROLL NO. and NAME. i) ii)
iii) Add three students in above dictionary Update name = ‘Shreyas’ of ROLL NO = 2 Delete
information of ROLL NO = 1……………….Explain creating Dictionary and accessing
Dictionary Elements with example.*
6 Explain building blocks of python.*
7 Write a program illustrating use of user defined package in python………… Explain how to use
user defined function in python with example.**
8 Write the output of the following : i) >>> a = [ 2, 5, 1, 3, 6, 9, 7 ] >>> a [ 2 : 6 ] = [ 2, 4, 9, 0 ]
>>> print (a) ii) iii) >>> b = [ “Hello” , “Good” ] >>> b. append ( “python” ) >>> print (b) >>> t1
= [ 3, 5, 6, 7 ] >>> print ( t1 [2] ) >>> print ( t1 [–1] ) >>> print ( t1 [2 :] ) >>> print ( t1 [ : ]
)…………………. T = (‘spam’, ‘Spam’, ‘SPAM!’, ‘SaPm’) print (T [2] ) print (T [-2] ) print (T
[2:] ) print (List (T) )*
9 Explain method overloading in python with example…………Explain method overloading and
overriding in python.*
10 Explain package Numpy with example………..Explain Numpy package in detail.*
11 Write a program to implement the concept of inheritance in python…….With suitable example
explain inheritance in Python.**
12 Explain any four Python's Built-in Function with example………..Explain four built-in list
functions………..List and explain any four built-in functions on set.**
13 Explain any four file modes in Python………..Describe various modes of file object ? Explain
any two in detail.*
14 Explain Module and its use in Python………….Write python program using module, show how
to write and use module by importing it.*

You might also like