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

Python Programming QB

Uploaded by

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

Python Programming QB

Uploaded by

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

MGM’s

Jawaharlal Nehru Engineering College Aurangabad


MGM University, Aurangabad
Question Bank for Python Programming.
UNIT 1
1. Write in brief about the applications and features of Python.
2. Write the rules for choosing names of variables.
3. Explain Assignment operators in python with appropriate examples.
4. Explain about different Logical operators in python with appropriate examples.
5. Explain about different Relational operators in python with appropriate examples.
6. Explain about Membership operators in python with appropriate examples.
7. Explain about Identity operators in python with appropriate examples.
8. Explain about Arithmetic operators in python with appropriate examples.
9. Evaluate the given expression and Justify output.
a=10 + 9 * 4 / 2 - 3 + 1
b=10 + 9 - 4 / (2 - 3) + 1
c=10 + 9 / (4 / 2 - 3) + 1
print(a)
print(b)
print(c)
10. What is an identifier (variable)? What are the rules to construct identifier (variable)?
Classify the following as valid/invalid Identifiers. i) num2 ii) $num1 iii) +add iv) a_2 v)
199_space vi) _apple vii)#12

UNIT 2
1. Explain different loops available in python with syntax and suitable examples.
2. Illustrate the different types of conditional branching statements available in Python with
suitable example
3. Illustrate the different types of control flow statements available in Python with
flowcharts
4. Explain the range() function with example.

UNIT 3
1. Explain the different string functions available in Python with examples
2. What is the difference between list and tuples in Python?
3. What are the different operations that can be performed on a list? Explain with examples.
4. Explain the following list methods with an example. a) append() b) extend() c) insert() d)
index() e) pop() f) sort()
5. Write in brief about Tuple in python. Write operations with suitable examples.
6. Write in brief about Set in python. Write operations with suitable examples.
7. Write in brief about Dictionary in python. Write operations with suitable examples.
8. Explain different modes of file handling.

UNIT 4
1. Explain about functions with suitable examples or
2. What is a function? How to define a function in python? Write a program using function
to find out the given number is even or odd.
3. Write about the concept of scope of a variable in a function.(Global and Local variables)
4. Write about different types of arguments in a function
5. Explain lambda function with example.
6. Explain Recursion function with example.
7. How to create a module and use it in a python program explain with an example.
8. How to create a package and use it in a python program explain with an example.

UNIT 5
1. What is NumPy array? Why we use NumPy? Explain different types of array with
example
2. Define the Pandas/Python pandas? Define DataFrame in Pandas?
3. How to create series in Pandas? Explain different ways with example.
4. How to create dataframe in pandas? Explain different ways with example.
5. Explain different ways to cleaning empty cells in pandas with suitable example.
6 Explain binary search with example.
7 Write a python to find the max value with and without using built in functions.
8 What is database? What are tables and Fields?
9 Explain create,insert, update, select all, delete query with syntax and example.
10 What is the SELECT and SELECT ALL statement?
11
Table name: storeitem
Itemno Itemname Price Quantity
1 Ball pen 10 20
2 Eraser 8 30
3 Sharpener 7 40
4 Pencil 5 35
5 Notebook 23 20

a. Write query to create table as storeitem.


b. Write query to update price of eraser by 11 rupees.
c. Write query to select all items from table.
d. Write query to select those items whose quantity is 20 from given table.
e. Write query to delete those items whose price is 5.

You might also like