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

PP Question Bank

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 5

UNIT–I

2Marks Questions
1 WhatistheindexinPython?
2 WhatisREPL?
3 Whywegofornegativeindexrepresentation?
4 Howtotakeinput fromuserinpython?
5 Whatdoesthelen()functiondoinPython?
6 Howdoyoucheckthepresenceofakeyinadictionary?
7 Howtoconvertastringtolowercase?
8 Whatisisalpha()inPython?
9 Howalistvariesfromatuple?
10 Howto copyone listto another?

10MarksQuestions
1 Explainabouttheinputandoutput statementswithexample.
a)Writehistoryof Python.
2 b)WhatarethefeaturesandapplicationsofPython?
3 a)ExplainabouttheSingle-Valued datatypesinpython.
b)WhatisIndentation? Explainwithexample.
4 a)Explainvariableassignment withsuitableexample.
b)Whatisdatatype?Listoutthe datatypeswithexample.
5 Elucidatethestringand its methods with example.
6 Explainbrieflyabout the Multi-ValuedData typeswithexample.
7 Describethelist andits methods with example.
8 a)Whatisdictionary?Explainthemethodsavailableindictionary.
b)Implementthepythonprogramtocalculatetotalandaveragemarksbasedon
input.
9 a)DefineVariableand mentionrulesforchoosingnamesofVariable.
b)WhatisSet?ExplainsetOperations.
10 Writepythonprogram forthefollowing
i) Primenumberornot
ii) Oddoreven
UNIT–II
2Marks Questions
1 Whichoperator isused tocheck bothareidentical?
2 Howtocheckthetypeof the variableinpython?
3 Whatarethespecialoperatorsinpython?
4 Evaluatetheexpression(2*5/5)-4/2*1.
5 Whenshould youusethe “break”inPython?
6 Whatarethearithmeticoperatorsthatpythonsupports?
7 Whichoperatorisusedtocheckvalue/variableinthesequence?
8 WhatdoesthecontinuedoinPython?
9 Writesyntaxofforloopwithexample.
10 Whatisabuilt-infunctionthatPythonusestoiterateoveranumbersequence?

10Marks Questions
1 List varioustypes ofoperators inPython andwrite any4 typesof operators.
2 Describeaboutcontrolflowstatementsinpythonwithanexample.
3 a)ExplainArithmeticoperations(Addition,Subtraction,Multiplication,andDivisi
on) onintegers.Inputthetwointegervaluesandoperatorfor
performingarithmeticoperationthroughkeyboard.
b)WhatarethedifferentloopcontrolstatementsavailableinPython?
Explainwithsuitable examples.
4 a)Write aPython programto displayFibonacci series.
b)Explainbreakandcontinuestatementwiththehelpofforloopwithan
example.
5 Explainthesyntax ofthefollowingstatements
i) forloop
ii) whileloop
iii) if-elif-else
6 a)WriteaPythonprogramto findmaximumamongthreenumbers.
b)DescribePythonjumpstatementswithexamples.
7 a)Explainthe LogicalandBitwiseoperatorwithexample.
b) WriteaPythonprogramtoSwappingoftwonumberswithandwithoutusing
temporaryvariable.
8 a)WhatisanexpressioninPython?Explainorder ofevaluationwithexample.
b)Writeapythonprogramtogeneratethemultiplicationtablebasedonuser
input.
9 a)WriteaPythonprogram tofind sumof naturalnumbers.
b)DiscusswithanexampletheassignmentandbitwiseoperatorssupportedinPython

10 a)ExplaintheMembershipandIdentityoperatorswithexample.
b) WriteaPython programtoprintprimenumberseriesuptoN.
UNIT–III
2Marks Questions
1 Howdowewriteafunctionin Python?
2 Whatisthereturnkeyword usedforinPython?
3 Whatisrecursivefunction?
4 Whatdoesthe“self”keyword do?
5 Whatis InheritanceinPythonprogramming?
6 Howmanybasic typesoffunctionsareavailable inPython?
7 Howtocreateaclassinpython?
8 Whatisaconstructorandhowdoesitusedinpython?
9 Do youthinkOopsconceptisavailableinPython?
10 DefinePolymorphism?
10Marks Questions
1 a)Expressfunctiontodoallarithmeticoperations.
b)Whatareformalandactualargumentsexplainwithexample?
2 a)Write recursivefunction to findfactorial of anumber
b)Explain lambdafunctionwith example.
3 a)Discuss aboutkeyword argumentswith example.
b)Describebrieflyaboutglobal and localvariables with example.
4 a)DefineVariable-lengthargumentsexplainwithexample.
b)Narrate scopeof avariable ina function.
5 a)Explainaboutdefaultargumentswithexample.
b)Writeafunctionto returnrightmost digitintheenterednumber
6 a)Defineclassandobjectwith examplecode.
b)Writeaboutself-variablewithcode.
7 Whatisinheritance?Illustratetypesofinheritancewithpython code.
a)Comparemethod overloadingandoverriding.
8 b)Describeaboutclassconstructor(_init_())withexample.
9 Illustratepolymorphismwithexample.
10 Describewaysofpassingfunctionargumentswithexample.
UNIT–IV
2Marks Questions
1 Definemodulein python.
2 WhatareErrorsandExceptionsinPythonprograms?
3 ListfewBuilt-inExceptionsinPython.
4 Whatisimportandfrom...importstatement?
5 Defineissearching.
6 Whatisanexception?Giveanexample.
7 HowdoyouhandleexceptionswithTry/Except/FinallyinPython?
8 Namethe optionalstatements possible insideatry-except blockin Python?
9 WhatisRaiseinPython?
10 List thetypeof filesthat couldbehandledusingpython filehandling?

10Marks Questions
1 Whatis module?Howtocreateamoduleexplainwith anexample.
2 a)Describeabout namespacing.
bExplain abouttheimport statementin modules.
3 a)Whatarepackages?GiveanexampleofpackagecreationinPython.
b)Write asmall codeto illustratetryandexcept statementsin Python.
4 ExplainaboutthedifferenttypesofExceptionsinPython
5 a)WhatisanRaisingExceptionwithanexample?
b)Elaborate UserdefinedExceptionwithanexample.
6 DescribeaboutHandlingExceptions indetailwithexamples.
7 a)Illustratesearchingwithexampleprogram.
b) Illustratematchingwithexampleprogram.
8 DefinePIP. Discusspackageinstallationvia pip.
9 a)Explain aboutthefrom import statement inmodules.
b)Illustrateindetailaboutscoping.
10 a) Listsomefew commonExceptiontypesandexplainwhentheyoccur.
b)Write asmall codeusingtry-except-else-finallystatement inpython.
UNIT–V
2Marks Questions
1 WhatarePythonGenerators?
2 CompareIteratorandIterable.
3 Differencebetweenread andreadline.
4 Whatdoesthe yieldkeyworddoin Python?
5 Howto open atext file and displayits contents?
6 Whatdoesfilehandlingmean?
7 HowdoIreadtwocharactersfromafilein Python?
8 Whatisthefirstargumentofcommandlineinpython?
9 HowdoIgetthe currentyearinPython?
10 DefineTurtleinPython.
10 Marks Questions
1 DescribeindetailaboutIteratorsandGeneratorswithanexample.
2 a)Discussaboutmapsinpython.
b)Discussaboutfiltersinpython.
3 ExplainindetailaboutPython Files,itstypes,
functionsandoperationsthatcanbeperformed on files with examples.
4 Demonstrateaboutthe GUIprogramminginPython
a) Triangle
b) Rectangle
5 a)Illustrate aboutPython RuntimeServices.
b)IllustrateaboutCommandlinearguments.
6 ExpressaboutMathematicsfunctionsinpython.
7 a)Explain aboutthereadingfiles inpython?
b)Explainabout DataCompression?
8 a)WhatisDataManagementandObjectPersistence.
b)DrawCircleinPythonusingTurtle
9 DescribebrieflyaboutFunctionalProgramming.
10 a)WriteaboutDates andTimes.
b)Explain aboutthewritingfiles inpython.

You might also like