0% found this document useful (0 votes)
29 views

Python Module 1 Assignment Questions

Uploaded by

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

Python Module 1 Assignment Questions

Uploaded by

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

Python Module 1 Assignment questions

1 Explain Local and global variable and scope of variable in python


2 List and explain with example different comparison and Boolean operators
3 Write a python program to generate Fibonacci sequence of length 'n'
4 List and explain with syntax and example the flow control statement in python.
5 Develop a program to read the name and year of birth of a person. Display weather person is
senior citizen or not?
6 Demonstrate with example print(), input() and string replication function in python.
7 Explain conditional branching statements with syntax and write a suitable program for the same.
8 Write a python program to guess the secret number between 1 to 25 within 5 guess if the number
is same then it is right guess else wrong guess.
9 What are user defined function? How can we pass the arguments to the functions? Explain with
suitable examples.
10 What are comparison and Boolean operators? List all the comparison and Boolean operators in
python.
11 Explain elif, for, while, break and continue statements in python with examples for each.
12 Develop a program to read the name and year of birth of a person. Print whether the person is a
senior citizen or not.
13 What is the need for role of precedence? Illustrate the rules of precedence in Python with
example.
14 What are functions? Explain Python function with parameters and return statements
15 Define exception handling. How exceptions are handled in python? Write a program to solve
divide by zero exception.
16 Develop a python program to calculate the area of rectangle and triangle print the result.

You might also like