0% found this document useful (0 votes)
9 views5 pages

Python Programming Exam Questions

This document outlines the structure and content of the UG Degree End Semester Examinations for B.Sc Computer Science, focusing on Python Programming. It includes multiple-choice questions, short answer questions, and detailed essay questions, covering various topics related to Python programming. The exam is scheduled for April 2025 and consists of three parts with a total of 75 marks.

Uploaded by

sheebugeethu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views5 pages

Python Programming Exam Questions

This document outlines the structure and content of the UG Degree End Semester Examinations for B.Sc Computer Science, focusing on Python Programming. It includes multiple-choice questions, short answer questions, and detailed essay questions, covering various topics related to Python programming. The exam is scheduled for April 2025 and consists of three parts with a total of 75 marks.

Uploaded by

sheebugeethu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

KAMARAJ COLLEGE (Autonomous)

Accredited with A+ Grade by NAAC


(Affiliated to Manonmaniam Sundaranar University, Tirunelveli)
THOOTHUKUDI – 628 003

(5 Pages) Reg. No: ……………………………………………

Question. Code No : 25E01104 Sub Code : 24UMCS11

UG Degree - End Semester Examinations, April 2025


First Semester
[Link] COMPUTER SCIENCE
Major - Python Programming
(For those who joined in July 2024 onwards)

Time : 3 Hours Maximum : 75 Marks

PART – A (10 × 1 = 10 Marks)


Answer ALL Questions
Choose the correct answer :
1. Which of the following is the correct extension of the
python file?
(a) .python (b) .pl
(c) .py (d) .p
2. Which of the following character is used to give single-

Page No: 1 Question Code No: 25E01104 [P.T.O.]


line comments in python?
(a) # (b) //
(c) ! (d) /*
3. Which of the following are control structures in python?
(a) Selection (b) Iteration
(c) Both (a) and (b) (d) None
4. A if condition inside another if is called _____________
(a) Second if (b) Nested if
(c) Another if (d) None
5. Individual characters in a string are accessed using the
_______ operator.
(a) [ ] (b) ( )
(c) { } (d) None
6. Python strings are __________
(a) mutable (b) immutable
(c) formatable (d) none
7. The ___________ operation is used to clone a list.
(a) Copy (b) Rename
(c) Slice (d) None
8. ___________ is a data structure in which the values are
stored as a pair of key and value.
(a) List (b) Tuple

Page No: 2 Question Code No: 25E01104 [P.T.O.]


(c) Dictionary (d) None
9. A _________ is a stream of characters that can be
sequentially processed by a computer in forward
direction.
(a) Binary file (b) Text file
(c) Random file (d) None
10. The _________ method is used to change the current
directory.
(a) chdir() (b) rmdir()
(c) mkdir() (d) remove()

PART – B (5X5=25 Marks)

Answer ALL Questions choosing either (a) or (b).


Answer should not exceed 250 words.

11. (a) Write a note on features of python.


(OR)
(b) Discuss about variables and identifiers.
12. (a) Write a program to test whether a number entered by
the user is negative, positive or equal to zero.
(OR)
(b) Explain while loop with example.

Page No: 3 Question Code No: 25E01104 [P.T.O.]


13. (a) Define function. Write a note on function call in
python.
(OR)
(b) What are the python string operations? Give example.
14. (a) Define tuple in python. Explain how to create and
delete a tuple with example.
(OR)
(b) Write the difference between Lists and Dictionary?
15. (a) Mention the types of files in python.
(OR)
(b) How will you rename and delete file in python?

PART – C (5 X 8 = 40 Marks)

Answer ALL Questions choosing either (a) or (b).


Answer should not exceed 500 words.

16. (a) Explain about data types in python.


(OR)
(b) Describe the operations used in python.
17. (a) Illustrate the different if statements in python.
(OR)

Page No: 4 Question Code No: 25E01104 [P.T.O.]


(b) Differentiate break and continue statements with
example.
18. (a) Write a detailed note on variable scope and lifetime
used in python.
(OR)
(b) Illustrate python modules with suitable example.
19. (a) Define Lists in python? Explain the various operations
in python.
(OR)
(b) What is Dictionary in python? Mention its operations.
20. (a) How will you open and close a file in python? Explain.
(OR)
(b) Illustrate on reading and writing files in python.

Page No: 5 Question Code No: 25E01104

You might also like