Answer All Questions
Answer All Questions
CYCLE TEST I
CSIR 12 – INTRODUCTIONTO COMPUTER PROGRAMMING (THEORY)
2. Draw the flowchart to take a user input and find whether the number is odd 2
or even. If the number is odd find whether it is prime or not. If it is found
prime check whether it is a perfect number. Display at each stage. (Program
and algorithm not needed)
4. How exceptions are handled in python. List and brief any 6 built in 3
exceptions in python, give examples if needed
5. Write a program (alone) in python to display the pattern like right angle 2
triangle using an asterisk. Get the number of lines to be printed, from the
user.
The pattern be like : (it’s just an example don’t print only lines)
*
**
***
****