U8 9294 CSIR12 1
U8 9294 CSIR12 1
i) For the question that requires code as the answer, those programs should be coded in a
way to accept dynamic input. No static inputs are accepted.
ii) Mention the respective question set number in your answer script.
2) Draw a flowchart to solve the quadratic equation ax**2 + bx + c = 0 by getting input for
coefficients from the user. (3)
3) Brief the need for catching exceptions using try and except statements. Also explain in detail
about key error () and keyboard interrupt error () with appropriate example. (3)
4) Write a Python Program to Reverse Each Word in “secret_societies.txt” file. Output of the
program is mandatory. (3)
5) Explain about the various string method used to check whether the characters of a string are
numerical or not. Support with a code snippet. (3)
6) Write a Python program to convert decimal 344 into binary and octal number systems. Output
of the program is mandatory. (3)
7) Write a Python class named Student with two instances employee1, employee2 and assign
given values to the said instances attributes (emp id, emp name, desig, age, salary). Print all
the attributes of employee1, employee2 instances with their values in the given format. (3)
8) Write a Python program to calculate the sum of a list of numbers using recursion function.(3)
9) Brief in detail about the access methods in list with an example. (3)