MCM 4-Sem Python Winter 2018 PDF
Document Details
Uploaded by BestKnownAwareness1317
2018
RTMNU
Tags
Summary
This is a past paper for a computer management course. It covers various aspects of Python programming including debugging, type conversion, logical operators, recursion, lists, tuples, pickling etc. The questions are divided into three parts with varying marks. This document serves as a practice exam for the subject.
Full Transcript
rtmnuonline.com NIR/KW/18/5666 Master of Computer Management (M.C.M.) Semester–IV (C.B.C.S.) Examination iii) PYTHON Opt...
rtmnuonline.com NIR/KW/18/5666 Master of Computer Management (M.C.M.) Semester–IV (C.B.C.S.) Examination iii) PYTHON Optional Paper–2 Elective Group–III Time : Three Hours] [Maximum Marks : 80 N.B. :— (1) Draw well labelled diagram wherever necessary. (2) All questions are compulsory. PART–A N.B. :— (1) Each question carries 2 marks. (2) Answers should not be more than 5 lines. 1. (a) What is debugging ? (b) What is type conversion in Python ? Give an example. (c) State logical operator with example in Python. (d) Define recursion. (e) What is list in Python ? (f) What is tuples ? (g) What is pickle module in Python ? (h) What is the role of init method in Python ? 8×2=16 PART–B N.B. :— (1) Each question carries 3 marks. (2) Answers should not be more than 10 lines. 2. (a) What is variable in Python ? Give an example. (b) What is the need of function in Python ? (c) State infinite recursion with suitable example. (d) What is break statement in Python ? Give an example. (e) What do you mean by dictionary in Python ? State with example. (f) What is aliasing ? Give an example. (g) Why objects are mutable in Python ? (h) What is polymorphism in Python ? Give an example. 8×3=24 PART–C N.B. :— (1) Each question carries 5 or 10 marks. (2) Answers should not be more than 400 words for 5 marks questions and 600 words for 10 marks questions. EITHER 3. (A) Explain Math function in detail. 5 (B) Explain variables in Python with suitable example. 5 OR (C) Explain parameters and arguments in detail with example. 10 BKR—5299 1 (Contd.) www.rtmnuonline.com rtmnuonline.com EITHER 4. (A) Explain recursion with suitable example. 5 (B) Explain while statement with example in Python. 5 OR (C) What is string ? Explain in detail "Strings are immutable". Also explain various string methods with example in Python. 10 EITHER 5. (A) Explain indetail "Lists are mutable". 5 (B) Explain variable-length argument tuples with suitable example in Python. 5 OR (C) Write short notes on the following : (1) Looping and Dictionaries. om (2) Dictionaries and Lists. 10 e.c EITHER lin on 6. (A) Explain the concept of operator overloading with example. 5 nu (B) Write short notes on the following terms : rtm (i) Pickling. w. (ii) Pipes. ww 5 OR (C) Write short notes on the following : (i) Inheritance. (ii) Data Encapsulation. 10 om e.c lin on nu rtm w. ww BKR—5299 2 NIR/KW/18/5666 www.rtmnuonline.com