1 2
LOYOLA COLLEGE OF ARTS & SCIENCE, METTALA Section – B
DEPARTMENT OF COMPUTER APPLICATIONS
Answer any Two of the following Questions. 2 X 5 = 10
CONTINUOUS INTERNAL ASSESSMENT - II
OCTOBER - 2025 11. Illustrate the Function Arguments.
12. Explain about Creating, Accessing & Updating List in Python.
Class: I BCA Semester: I Duration: 2.30 Hours 13. Narrate the string operations. With Example
Date: 24.10.2025 14. Demonstrate the advantages and disadvantages of File Handling in
Paper Code: 23UCA01 Max. Marks: 60
Session: FN Python.
Paper Title: PYTHON PROGRAMMING
Section – A Section – C
Choose the Correct Answer. 10 X 1 = 10 Answer all the following Questions. 4 X 10 = 40
1. What keyword is used to define a function in Python? 15. a) Compare local and global variables in Python. Discuss
a) function b) def c) lambda d) define advantages and disadvantages of using global variables.
2. Which type of variable is accessible only inside the function it is (OR)
declared? b) Write a Python program using functions to check whether a given
a) Global b) Local c) Built-in d) Module string is a palindrome.
3. How can specific functions be accessed from a module in Python? 16. a) Discuss the key differences between text files and binary files in
a) from…import b) import * c) require d) include Python.
4. _______ symbol at the start of a variable or function indicates it is (OR)
private in a module. b) Write a Python program to find the smallest of three numbers
a) # b) $ c) _ d) @ entered by the user.
5. Which method removes all elements from a dictionary? 17. a) Examine the differences between recursion and iteration and
a) pop() b) clear() c) delete() d) remove() justify when recursion is preferred.
6. what method returns a list of all keys in a dictionary? (OR)
a) values() b) items() b) Write a Python program to print all even numbers between 1 and
c) keys() d) get() 50 using a loop.
7. Which method returns a copy of the dictionary? 18. a) Outline the benefits and drawbacks of immutable strings in
a) replicate() b) duplicate() c) clone() d) copy() Python and justify their impact on Memory & Performance.
8. How can a list of key-value pairs as tuples be obtained from a (OR)
dictionary? b) Classify the various file opening modes in Python and summarize
a) keys() b) values() c) items() d) pairs() their purposes with examples.
9. What function opens a file in Python?
a) fopen() b) read()
c) open() d) file()
10. ________ method tells the current position of the file cursor.
a) seek() b) tell() c) position() d) cursor() Question Paper Setter HOD COE Principal