Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
21 views
Python Previous Year Question Paper 2
Python vtu
Uploaded by
Aniket Redekar
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python Previous year question paper 2 For Later
Download
Save
Save Python Previous year question paper 2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
21 views
Python Previous Year Question Paper 2
Python vtu
Uploaded by
Aniket Redekar
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python Previous year question paper 2 For Later
Carousel Previous
Carousel Next
Save
Save Python Previous year question paper 2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
GHGS SenshE /B.Tech. Degree Examigin(ion, Jan./Feb. 2023 Introduction t a usw 2) rir] oR y First Semester B. BELCK105B/BPLCKB105 Be 0 Python Programming Time: 3 hrs, ns “Max. Marks: 100 Note: 1. Answer any FIVE. IPPON, E full questions, choosth; Me ich module. 2M Mts Lc tom’ tot ofl men a - Moduld oi, ” M| 1 Qt [a | What is the need Tor role oF Precedagce? Mlustrate the rules of precedence | 6 | L2 | COL in Python with example. “aly fi » | Explain the focal and global scdpe Wir saiebie examples, © |tz]cor }* | Develop a program to Generate Fibonacci sequence of length (N). Read N[® [L3 | COL from the console, ; on 3 Q2 a. | What are functions? Explain Python funelion with parameters and return Statements, a L2] COI Define exception handlin “ 1g. How exceptiotis,are handled in python? Write a| 7 |L2 | COL Program) t6'solve divide by zero exception, ” ©. | Develop a python Program to Galgulate the area of rectangle and triangle | 6 | L3 | COI print the result. co? “ % Medule-2 Q3 | a. | Explain negative indexing, ‘slicing, index( ), appénd( ), remove(.), insert( ) and sort( ) with’suitable example. a” Ln —| pop(), | 8 | L2 [coz b. Explain the use of in and notin operafors.indist with suitable examples 6 |L2 | coz ¢. | Develop aprogram to find mean, v§flande and standard Geviltion- 6 |t3 [coz 240R_ 7 Q4 [a. ] Explain following method iW iss withan expe: 8 | La] coz iyleng) ii) sum() it) max() iv) ming). oy 3 b. Expiin se Yand sede) method ineRsionary. © [12 }co2 c Develop a Python program to swap casg afk given sing 6 |L3 | co input: Java he, output: jAVA. » * Mee ey, éModule —3 QS Ta. | Explain join( ) and split) method with examples. 8 | L2] cos b. | Explain with examples:,j) isalpha) ii) isalnum() iii) isspace( ). 6 |L2 [Cos ¢. [Develop a python’ code to determine whether the given string is al6 [L3 | cos palindrome or not a palindrome.— oR — Q6 [a PExpiain the concept of file hnndting, Also oxplaln res Process with suitable example, | Explai-the conssprot ie path, Aiko douse absotute wid relative Me path, | Briefly expiain saving variables with shelve module,» Mouie—4 : Q7 a. TEN the Tolfowing fife operations In Pyjon with suitable example: 1) Copying fites and folders em” 4) Moving files and folders ea fii) Permanently deleting files andy folders. Tile? Also expan reading oF Wzip He | 8 TLE] Sop b. | List out the benefits of compressl with an example, . e [List out the differences etween sl 6 | L3 | Cos] a method, OR Qs Briefly explain assertions and raising a ex 6 | L2 7 Cor b. | List out the benefits of using logging module with an example. © [tz }cor «| Deyelop"a program with a Auction named DivExp which takes wo}8 |L3 | coy paflfiers a, b and returns a valti@C (C = wb), Write suitable assertion for > 0 in function DivExp and raise dn exception for wheh b = 0. Develop a suitable program which reads two values from ‘théconsole and calls a function DivExp. & Module =5 ae Q9 a. | Define a class and,object, construct the élds9 called rectangle and tnitialize | & L2 [coe it with height = 100} width = 200, sug point as (x=, y= 0), Write a program togdisplay the center pointco;0Rtinates ofa rectal, Ne ‘ X 4 b. Explain the’oncept of copying lising copy module with an example. 6 |L2 {Cos wee isi e Ep the concept oF i % tafice with an example, 6 [12 | Cos ORS. . tion of two complex numbers, Define a suitable“class ‘Compléx’ to represent the complex number. Develop a ohram to read N(N' ='2) complex numbers and to compute Q107 Define a function'Wwhich takes two objetts representing complex numbers | 8 | L2 | COd and returns newcomplex number witha adit the additigiPoFN complex numbers, b. | Explain (and \<_str__() method with examples, 6 | L2 | COs 6. Briefly explain the prinfing oF objects with an examples © | 2 | Cos at 20f2 “Bp, %y & 2
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6134)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brene Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (935)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8215)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2923)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4973)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1988)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2544)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)