SlideShare a Scribd company logo
1 of 1
Problem Solving Python Programming
Question Paper
PART A
1. Define Algorithmwithexample
2. Define Program
3. Define Flowchart
4. Distinguishbetweenalgorithmandprogram.
5. Write an algorithmtoaccept twonumbers, compute the sumand printthe result.
6. Write an algorithmtofindthe minimumnumberinagivenlistof numbers.
7. Define recursionwithanexample.
8. Pseudocode forconvertingFahrenheittocentigrade.
9. What isa module?Give example.
10. What ismeantby Expressions?Give examples.
11. Write a program to accept twonumbers,multiplythemandprintthe result?
12. Write a program to accept twonumbers,findthe greatestandprintthe result?
13. What are keywords?Give examples.
PART B
1. Discuss about the buildingblocksof algorithm
2. . Identifythe simplestrategiesfordevelopinganalgorithm WhatismeantbyFlowchart?Explain
aboutthe symbolsandrulesfordrawingflowchart.
3.Draw a flowchart to accept three distinctnumbers,findthe greatestandprintthe result.
4. 100What ismeantby Flowchart?Explainaboutthe symbolsandrulesfordrawingflowchart
5. Outline the Towersof Hanoi problem.Suggestasolution tothe Towersof Hanoi problemwith
relevantdiagrams
6. Draw a flowchartto findthe sum of the series1+2+3+4+….+
7. Write an algorithmtoinserta card intoa listof sortedcards.
8. Summarise the precedence of mathematical operatorsinpython.
9.Write a pythonprogramto swapthe valuesof two variables.
10.Explainindetail aboutalgorithmicproblemsolving
11.Pseudocode tofindaverage of fournumbers.
12.Explainindetail aboutData types& Variables.
13.Write a pythonprogram usingfunctiontofindthe sumof first‘n’ evennumbersandprintthe result.
14.Write a pythonprogram to findthe exponentiationof anumber
15.Explainindetail aboutfunctionsanditstypes.
16 What is a tuple?Give example.Explainthe following.
i) Creatingatuple.
ii) Operationsontuple.
iii) Tuple Assignment
17.Write a pythonprogramto findthe factorial of a givennumberwithoutrecursionandwithrecursion.
18. Write a pythonprogram to generate first‘N’Fibonacci numbers.
(Note:The Fibonacci numbersare 0,1,1,2,3,5,8,13,21….. where eachnumberisthe sum of the
precedingtwo.)

More Related Content

Similar to Problem solving python programming qp

265 ge8151 problem solving and python programming - 2 marks with answers
265   ge8151 problem solving and python programming - 2 marks with answers265   ge8151 problem solving and python programming - 2 marks with answers
265 ge8151 problem solving and python programming - 2 marks with answers
vithyanila
 
Assignment 1 for 2nd sem
Assignment 1 for 2nd semAssignment 1 for 2nd sem
Assignment 1 for 2nd sem
home
 
C question-bank-ebook
C question-bank-ebookC question-bank-ebook
C question-bank-ebook
etrams1
 

Similar to Problem solving python programming qp (20)

3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
 
Avi Pfeffer, Principal Scientist, Charles River Analytics at MLconf SEA - 5/2...
Avi Pfeffer, Principal Scientist, Charles River Analytics at MLconf SEA - 5/2...Avi Pfeffer, Principal Scientist, Charles River Analytics at MLconf SEA - 5/2...
Avi Pfeffer, Principal Scientist, Charles River Analytics at MLconf SEA - 5/2...
 
265 ge8151 problem solving and python programming - 2 marks with answers
265   ge8151 problem solving and python programming - 2 marks with answers265   ge8151 problem solving and python programming - 2 marks with answers
265 ge8151 problem solving and python programming - 2 marks with answers
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
 
Java programlist (1)
Java programlist (1)Java programlist (1)
Java programlist (1)
 
Javascript breakdown-workbook
Javascript breakdown-workbookJavascript breakdown-workbook
Javascript breakdown-workbook
 
Assignment 1 for 2nd sem
Assignment 1 for 2nd semAssignment 1 for 2nd sem
Assignment 1 for 2nd sem
 
Data structures Lecture no. 4
Data structures Lecture no. 4Data structures Lecture no. 4
Data structures Lecture no. 4
 
Python breakdown-workbook
Python breakdown-workbookPython breakdown-workbook
Python breakdown-workbook
 
Class7 term3 2019-2020
Class7 term3 2019-2020Class7 term3 2019-2020
Class7 term3 2019-2020
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
Ict question
Ict questionIct question
Ict question
 
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
 
Algorithms and Their Explanations
Algorithms and Their ExplanationsAlgorithms and Their Explanations
Algorithms and Their Explanations
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
Class9 js word_quar2018
Class9 js word_quar2018Class9 js word_quar2018
Class9 js word_quar2018
 
Top C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerTop C Language Interview Questions and Answer
Top C Language Interview Questions and Answer
 
C question-bank-ebook
C question-bank-ebookC question-bank-ebook
C question-bank-ebook
 

Recently uploaded

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 

Problem solving python programming qp

  • 1. Problem Solving Python Programming Question Paper PART A 1. Define Algorithmwithexample 2. Define Program 3. Define Flowchart 4. Distinguishbetweenalgorithmandprogram. 5. Write an algorithmtoaccept twonumbers, compute the sumand printthe result. 6. Write an algorithmtofindthe minimumnumberinagivenlistof numbers. 7. Define recursionwithanexample. 8. Pseudocode forconvertingFahrenheittocentigrade. 9. What isa module?Give example. 10. What ismeantby Expressions?Give examples. 11. Write a program to accept twonumbers,multiplythemandprintthe result? 12. Write a program to accept twonumbers,findthe greatestandprintthe result? 13. What are keywords?Give examples. PART B 1. Discuss about the buildingblocksof algorithm 2. . Identifythe simplestrategiesfordevelopinganalgorithm WhatismeantbyFlowchart?Explain aboutthe symbolsandrulesfordrawingflowchart. 3.Draw a flowchart to accept three distinctnumbers,findthe greatestandprintthe result. 4. 100What ismeantby Flowchart?Explainaboutthe symbolsandrulesfordrawingflowchart 5. Outline the Towersof Hanoi problem.Suggestasolution tothe Towersof Hanoi problemwith relevantdiagrams 6. Draw a flowchartto findthe sum of the series1+2+3+4+….+ 7. Write an algorithmtoinserta card intoa listof sortedcards. 8. Summarise the precedence of mathematical operatorsinpython. 9.Write a pythonprogramto swapthe valuesof two variables. 10.Explainindetail aboutalgorithmicproblemsolving 11.Pseudocode tofindaverage of fournumbers. 12.Explainindetail aboutData types& Variables. 13.Write a pythonprogram usingfunctiontofindthe sumof first‘n’ evennumbersandprintthe result. 14.Write a pythonprogram to findthe exponentiationof anumber 15.Explainindetail aboutfunctionsanditstypes. 16 What is a tuple?Give example.Explainthe following. i) Creatingatuple. ii) Operationsontuple. iii) Tuple Assignment 17.Write a pythonprogramto findthe factorial of a givennumberwithoutrecursionandwithrecursion. 18. Write a pythonprogram to generate first‘N’Fibonacci numbers. (Note:The Fibonacci numbersare 0,1,1,2,3,5,8,13,21….. where eachnumberisthe sum of the precedingtwo.)