Uploaded by Vishal chepuri

impquestion python

advertisement
Give the output of following Python code:
myStr = ‘GTU is the best University’
print myStr [15 : : 1]
print myStr [-10 : -1 : 2]
What is a filter function in Python .
Define IndentError
What is inheritance
Which method of cursor class is used to fetch limited rows from the table
Explain about numPy array.
What is the difference between = = and is operator in Python?
Write any two methods of random module.
Write syntax of execute method.
What is the use of SciPy module.
Give syntax of the methods which can be used to take input from the user in python program.
What do you mean by immutable data type? Explain immutable data types with their operations and
functions.
Explain lambda in Python with example
How append() and extend() are different with reference to list in Python?
Explain Exception Handling in Python
Write a Python program which will throw exception if the value entered by user is less than zero.
Give Difference between abstract class and interface in Python using an example
Write a Python program to match a string that contains only upper and lowercase letters, numbers,
and underscores using Regular Expression
Explain about GET and POST methods in python
Write the steps for connecting to a database in python.
Explain steps to create widgets in Python
Explain pack()and place() method of Tkinter
Write a Python program to find reverse of given number using user defined function.
Give the syntax and significance of string functions: title() and strip().
Write the steps to create a package in python with example
Explain about operator overloading
What is a cookie.
Explain Tkinter Widgets: button and radiobutton
1. ) Give examples of membership operators.
b) What is a pass statement.
c) Write the use of input() function.
d) What is string slicing.
e) What is a Dictionary.
f) Define lambda function.
g) Write two functions in random module.
h) Write syntax of from…import..statement.
i) Write the syntax of except block.
j) Define global variable.
2. What are the different Loops available in python?And also explain different loop control
statements available in python? Explain with suitable examples.
3. Write in brief about List in python. Explain about methods in Lists of Python with
appropriate examples.
4. How to create a module and use it in a python program explain with an example.
5. Using bitwise operators
a.
b.
Check if a given number is even?
Check if the number is a power of 2?
6. Merge two Sorted list.Write a Program to prompt the user to enter two sorted lists and
displays the merged list using functions.(Don’t use predefined sorting techniques)
7. How do you handle RunTimeErrors in Python? Explain in detail with related examples.
1
2
3
4
5
6
7
8
9
10
Give the output of following Python code:
myStr = ‘GTU is the best University’
print(myStr [15 : : 1] )
print(myStr [-10 : -1 : 2])
What is a filter function in Python .
Define Indent Error Give an example
What is inheritance and construct syntax for multiple inheritance
Illustrate various file opening modes
Explain about numPy array function
Distinguish = = and is operator in Python?
State any two methods of random module.
Write syntax of execute method.
List out the use of SciPy module.
S.No
11. a)
Coverage
From Unit-I
b)
From Unit-I
a)
From Unit-II
b)
From Unit-II
13.
a)
b)
From Unit-III
From Unit-III
Elaborate Exception Handling in Python with an example
Describe the procedure for construction of a package in
python?
14.
a)
From Unit-IV
b)
From Unit-IV
Give Difference between an abstract class and interface in
Python using an example
Write a Python program to match a string that contains only
upper and lowercase letters, numbers, and underscores using
Regular Expression
15.
a)
b)
From Unit-V
From Unit-V
Explain about Directory handling functions?
What is a binary file and Explain various file handling functions
with corresponding exceptions
16.
a)
b)
From Unit-VI
From Unit-VI
Construct steps to create a widget in Python
Discuss about plotpy functionalities?
17.
a)
From Unit-I
b)
From Unit-II
c)
From Unit-III
Write a Python program to find reverse of given number using
user defined function.
Give the syntax and significance of string functions: title() and
strip(),format()
Write the steps to create a module in python with example
a)
b)
c)
From Unit-IV
From Unit-V
From Unit-VI
Explain about operator overloading
Write about seek()
Illustrate button and radiobutton usage
12.
18.
-- 00 -- 00
Marks
Give syntax of the methods which can be used to take input
from the user in python program. Also write to convert it into
target type.
What do you mean by Control statements? Explain them by
using suitable code
Explain lambda function in Python .Discuss List
Comprehension
How append() ,split(),keys(),values()and tuple() works in
Python?
[
Download