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

Python Assignment

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

Python Assignment

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

PYTHON PROGRAMMING (4311601)

R. C. Technical Institute, Sola, Ahmedabad


Information Technology Department
PYTHON PROGRAMMING (4311601)

Assignment - 1
Instructions: -
1. All the answers must be hand-written in a separate Notebook.
2. Answers written in soft copy or word files are not allowed.

CO – 1
Prepare flowchart and algorithm for solving computing problems

Questions:

1) Define problem solving. List out steps of problem solving


2) What is Flow chart? List out symbols of Flowchart.
3) Write limitations of flowchart.
4) Draw the flowchart to convert a given distance in meters into its equivalent centimeter.
5) Draw Flowchart to find out Maximum number out of three numbers.
6) Define algorithms with examples.
7) Explain pseudo code.
8) Write an algorithm to find out the factorial of given number
9) Write an algorithm to find out whether the given number is odd or even
10) Write an algorithm to input three numbers and find the sum and average of them.
PYTHON PROGRAMMING (4311601)

R. C. Technical Institute, Sola, Ahmedabad


Information Technology Department
PYTHON PROGRAMMING (4311601)

Assignment - 2
Instructions: -
1. All the answers must be hand-written in a separate Notebook.
2. Answers written in soft copy or word files are not allowed.

CO – 2
Develop python programs to solve simple problems.

Questions:

1) Define variable, identifier, keywords.


2) List out features of python in detail.
3) Write applications of python.
4) List rules for naming variables.
5) Explain type conversion by giving examples.
6) Explain data types of python.
7) Explain various categories of operators in python.
8) Write a program to accept the number of days and convert it into year, month and days.
9) Write a program to swap values of two variables.
10) Write a program that can calculate simple interest and compound interest on given data.
PYTHON PROGRAMMING (4311601)

R. C. Technical Institute, Sola, Ahmedabad


Information Technology Department
PYTHON PROGRAMMING (4311601)

Assignment - 3
Instructions: -
1. All the answers must be hand-written in a separate Notebook.
2. Answers written in soft copy or word files are not allowed.

CO – 3
Apply control structure feature of python for developing programs.

Questions:

1) What is the use of selection statements in python?


2) What is the use of repetition statements in python?
3) List selection statements of python.
4) List repetition statements of python.
5) What is flow control in python?
6) Give the difference between break and continue.
7) What is a nested loop?
8) Explain nested if statements by giving syntax, flowchart and example.
9) Explain break statements with examples.
10) Explain continue statement with an example.
PYTHON PROGRAMMING (4311601)

R. C. Technical Institute, Sola, Ahmedabad


Information Technology Department
PYTHON PROGRAMMING (4311601)

Assignment - 4
Instructions: -
1. All the answers must be hand-written in a separate Notebook.
2. Answers written in soft copy or word files are not allowed.

CO – 4
Develop a program in Python using built-in functions, modules, and library functions.

Questions:

1) What is a User-defined function in python?


2) Give difference between parameter and argument in terms of function.
3) Explain function with default and arbitrary parameters with example.
4) Define scope of variable
5) Define local and global variable
6) Explain how to create and use module in python program
7) Write a program using a function that reverses the entered value.
8) Create user-defined function to print fibonacci series of 0 to N numbers
9) What is a random module? Explain various functions of the random module.
10) What is a math module? Explain various functions of the math module.
PYTHON PROGRAMMING (4311601)

R. C. Technical Institute, Sola, Ahmedabad


Information Technology Department
PYTHON PROGRAMMING (4311601)

Assignment - 5
Instructions: -
1. All the answers must be hand-written in a separate Notebook.
2. Answers written in soft copy or word files are not allowed.

CO – 5
Develop python programs applying strings and lists manipulation concepts.

Questions:

1) Define String in python.


2) List out the operations that can be performed on string
3) Explain the slicing of a given string.
4) Explain how to create a list and traverse that created list.
5) How to create a nested list?
6) Show copy of one list into another list and pass list as argument to function.
7) List out built-in methods of list and explain with suitable examples.
8) Create a list of prime and non-prime numbers in range 100 to 200
9) How to access individual elements of list
10) Create program to reverse elements of list

You might also like