0% found this document useful (0 votes)
3 views1 page

Object Oriented Programming Using Python

This document outlines the examination structure for the B.Sc. (CBCS) II - Semester in Artificial Intelligence and Machine Learning, specifically focusing on Object Oriented Programming using Python. It includes two parts: Part A with eight short answer questions and Part B with four detailed questions, covering topics such as Python data types, loops, list functions, the pickle module, and regular expressions. The exam duration is 3 hours with a maximum score of 80 marks.
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)
3 views1 page

Object Oriented Programming Using Python

This document outlines the examination structure for the B.Sc. (CBCS) II - Semester in Artificial Intelligence and Machine Learning, specifically focusing on Object Oriented Programming using Python. It includes two parts: Part A with eight short answer questions and Part B with four detailed questions, covering topics such as Python data types, loops, list functions, the pickle module, and regular expressions. The exam duration is 3 hours with a maximum score of 80 marks.
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

Code No: G-9124/BL

FACULTY OF SCIENCE
[Link]. (CBCS) II - Semester Examination, April / May 2025

Subject : Artificial Intelligence and Machine Learning


Paper – II : Object Oriented Programming using Python

Time: 3 Hours Max. Marks: 80


PART - A
Note: Answer any eight questions. (8x4 = 32 Marks)
1. What are the types of comments in python?
2. Explain break statement with flow chart and example.
3. What is *args and **kwargs parameters.
4. Explain string slicing with an example.
5. What is python dictionary? How to create dictionary?
6. Explain zip function with example.

3
7. Discuss various file operations.

1
8. What is OS module? Explain.

1
9. What is regular expression? Explain with example.
10. What is a class in python? Explain.

1
11. Differentiate class attributes and data attributes.
12. What is encapsulation? Explain with an example.

-
U
PART - B
Note: Answer all questions. (4x12 = 48 Marks)
O

13. a) i) Explain different Data Types in Python.


ii) Describe Type Conversions in python with examples.
(OR)
3

b) Explain the following with syntax, example and program :


1

i) While loop ii) For loop


1

14. a) Describe various built-in list functions in python with suitable examples.
1

(OR)
b) i) Describe the Relations between Tuples and Dictionaries.
-

ii) Discuss the Built-in Functions used in Dictionaries and also different dictionary
Methods with suitable examples.
U

15. a) What is pickle module? Write its features, advantages and disadvantages.
O

(OR)
b) What is a regular expression? Explain commonly used methods in regular expressions
with examples.

16. a) Demonstrate different types of constructors with examples.


(OR)
b) What is Polymorphism? Explain with examples.

******

You might also like