DOC-20241209-WA0003.
DOC-20241209-WA0003.
DOC-20241209-WA0003.
51N Elavur,58N Natham, Gummudipoondi Tk, Thiruvallur Dt, Pin code 601201. 51N Elavur,58N Natham, Gummudipoondi Tk, Thiruvallur Dt, Pin code 601201.
1.Write an algorithm to find the smallest among three numbers. 1.Write an algorithm to find the smallest among three numbers.
2.Define algorithm.State the quantities of a good algorithm. 2.Define algorithm.State the quantities of a good algorithm.
3.Name the four types of scalar objects python has. 3.Name the four types of scalar objects python has.
4.What is tuple? How literals of type tuples written?Give an example. 4.What is tuple? How literals of type tuples written?Give an example.
5. Define Local & Global Variable with the same identifier name. 5. Define Local & Global Variable with the same identifier name.
6.Write a python program to accept two numbers ,find the greatest & print the result. 6.Write a python program to accept two numbers ,find the greatest & print the result.
7.What is List mutability in Python? Give an example. 7.What is List mutability in Python? Give an example.
8.State the difference between list and tuple. 8.State the difference between list and tuple.
9.Write a note on modular design. 9.Write a note on modular design.
10.What is a command line argument with an example? 10.What is the command line argument with an example?
PART B (5 x 16=80) PART B (5 x 16=80)
11.a.(i) Write an algorithm to find the minimum number in a given list of numbers. 11.a.(i) Write an algorithm to find the minimum number in a given list of numbers.
(ii) Outline the towers of Hanoi problem suggest a solution with relevant diagram. (ii) Outline the towers of Hanoi problem suggest a solution with relevant diagram.
(OR) (OR)
b.(i) What is an algorithm? Summarise the characteristics of a good algorithm. b.(i) What is an algorithm? Summarise the characteristics of a good algorithm.
(ii) What is flowchart? Explain various symbols used in flowchart with examples. (ii) What is flowchart? Explain various symbols used in flowchart with examples.
12.a) What is the role of an interpreter? Give a detailed note on python interpreter 12.a) What is the role of an interpreter? Give a detailed note on python interpreter
and interactive mode of operation.( OR) and interactive mode of operation.( OR)
b.(i) Define values and Data types explain their types. b.(i) Define values and Data types explain their types.
(ii)Write a Python program to circulate the values of n variables. (ii) Write a Python program to circulate the values of n variables.
13.a) Define recursion.Write a Python program to find the factorial of the 13.a) Define recursion.Write a Python program to find the factorial of the given
given number without recursion with recursion. number without recursion with recursion.
(OR) (OR)
b) Define methods in a string with an example program using methods. b)Define methods in a string with an example program using methods.
14.a) Define list . Outline the list operations and methods with an example. 14.a) Define list . Outline the list operations and methods with an example.
(OR) (OR)
b) What is a python Dictionary? Explain the Dictionary operations using python b) What is a python Dictionary? Explain the Dictionary operations using python
Program and Explain the Dictionary methods. Program and Explain the Dictionary methods.
15.a) Describe in detail exception handling. Illustrate various exception handling 15.a) Describe in detail exception handling. Illustrate various exception handling
operations . (OR) operations.
(OR)
b)What are modules in python? How will you import them? Explain the concept
b)What are modules in python? How will you import them? Explain the concept
by creating and importing a module.
by creating and importing a module.