Comp App1 2021-22 Python
Comp App1 2021-22 Python
/CMAGDSE01T/2021-22
GROUP-A
1. Answer any five questions from the following: 2×5 = 10
(a) Define python programming language.
(b) What is python interpreter?
(c) What is variable and keywords?
(d) What is continue statement?
(e) What do you mean by dynamically typed language?
(f) What is the difference between list and tuple?
(g) What are mutable and immutable data types?
(h) Explain any two methods of the list.
GROUP-B
Answer any five questions from the following 8×5 = 40
2. (a) Write a python program to find whether a given number is Armstrong number or 4+2+2
not.
(b) What is the use of str.upper() and str.lower() functions in string?
(c) Explain call by value and call by reference in python.
4. (a) * 4+2+2
* *
* * *
* * * *
* * * * *
Print the above pattern using python language.
(b) What is set?
(c) What is default argument?
5. (a) Write down the difference between error and exception. 2+2+2+2
(b) Explain cloning list.
(c) What is the function of range() function?
(d) What are the standard data types in python?
8. (a) Write a python program to find factorial of a given number using recursion. 4+2+2
(b) How does the range function work?
(c) What are the different types of arguments in Python?
N.B. : Students have to complete submission of their Answer Scripts through E-mail / Whatsapp to
their own respective colleges on the same day / date of examination within 1 hour after
end of exam. University / College authorities will not be held responsible for wrong
submission (at in proper address). Students are strongly advised not to submit multiple
copies of the same answer script.
——×——
5257 2