0% found this document useful (1 vote)
2K views4 pages

Python Question Bank 1

This document contains sample questions from the Question Bank for the Problem Solving and Python Programming Regulation course at Madha Institute of College of Engineering And Technology. It covers two units: Unit I focuses on computational thinking and problem solving, including algorithms, pseudo code, flowcharts, recursion, and example problems. Unit II covers Python data types, expressions, statements, operators, comments, and example programs for variable exchange and distance calculation. It includes multiple choice, short answer, and long answer questions testing understanding of Python concepts.

Uploaded by

ganesh moorthi
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 (1 vote)
2K views4 pages

Python Question Bank 1

This document contains sample questions from the Question Bank for the Problem Solving and Python Programming Regulation course at Madha Institute of College of Engineering And Technology. It covers two units: Unit I focuses on computational thinking and problem solving, including algorithms, pseudo code, flowcharts, recursion, and example problems. Unit II covers Python data types, expressions, statements, operators, comments, and example programs for variable exchange and distance calculation. It includes multiple choice, short answer, and long answer questions testing understanding of Python concepts.

Uploaded by

ganesh moorthi
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

Madha Institute of College of Engineering And Technology

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

GE3151- Problem Solving and Python Programming Regulation – 2021

Question Bank

I Semester 2022 -2023


UNIT I

UNIT I COMPUTATIONAL THINKING AND PROBLEM SOLVING


Fundamentals of Computing – Identification of Computational Problems -Algorithms, building
blocks of algorithms (statements, state, control flow, functions), notation (pseudo code, flow chart,
programming language), algorithmic problem solving, simple strategies for developing algorithms (iteration,
recursion). Illustrative problems: find minimum in a list, insert a card in a list of sorted cards, guess an integer
number in a range, Towers of Hanoi.

PART – A
[Link] an algorithm
[Link] building blocks of algorithm
[Link] is pseudo code?
[Link] the flow chart.
[Link] is a programming language?Given examples.
[Link] different steps used in algorithmic problem solving.
[Link] is recursion?
[Link] the properties of recursion
[Link] the symbols used in drawing the flowchart.
[Link] between algorithms and programs.
[Link] out any 5 programming language
[Link] are the properties of algorithms?
[Link] the Characteristics of Pseudo code
[Link] is need for a flowchart symbol?
[Link] are the advantages of using a flowchart
[Link] any two disadvantages of flowchart ?
[Link] the Characteristics of Pseudocode
18. What are the rules for writing pseudo
[Link] any two advantages of pseudo code
[Link] any two disadvantages of flowchart?

PART-B (13 MARK )


[Link] and explain the six steps of problem solving with suitable examples.
[Link] the algorithm for displaying the first n odd numbers.
[Link] is an algorithm? Summarize the characteristics of a good algorithm
[Link] about the building blocks of algorithms.
[Link] a flow chart to accept three distinct numbers,find the greatest and print three result.
[Link] the simple strategies for developing an algorithm.
[Link] flow chart to find the sum of series 1+2+3+4+5………….+100.

PART - C (15 MARK )

[Link] is pseudo code? Explain how it can be designed and write benefits and limitations.
[Link] guidelines for preparing flowcharts, benefits and limitation
[Link] and preparing flow chart for quadratic equation Analyze
[Link] the algorithm for finding sum and average of n numbers. Also state the properties of a good
algorithm Remember
[Link] the algorithm of towers of hanoi problem

UNIT II

UNIT II DATA TYPES, EXPRESSIONS, STATEMENTS


Python interpreter and interactive mode,debugging; values and types: int, float, boolean, string, and list;
variables, expressions, statements, tuple assignment, precedence of operators,comments; Illustrative
programs: exchange the values of two variables, circulate the values of n variables, distance between two
points.
PART – A
[Link] some features of python.
[Link] is script mode in python?
[Link] is the use of type command in python?
[Link] the precedence rules used in precedence operation.
[Link] is tuple?
[Link] is comment statement?How do we use comment statement in python? Explain with example.
[Link] to define a function in python?
[Link] four types of scalar objects python has.
[Link] is a python?
[Link] are the basic modes in python?
[Link] is value?
[Link] is a data types or simply type?
[Link] a short note on expression?
[Link] the logic to swap the contents of two identifies without using a third variable.
[Link] the reason to divide the program into functions.
[Link] the two modes in Python.
[Link] the various data types in Python.
[Link] Out the rules to be followed for naming any identifier.
[Link] a program to assign and access variables.
[Link] the importance of indentation in python.

PART-B (13 MARK )


[Link] features and uses of python.
[Link] the following expression in python.
24//6%3
float(4+int(2.39)%2)
2*2**3
[Link] the operator precedence of arithmetic operators in python.
[Link] the list of keywords available in [Link] it with variable name.
[Link] are the statements ? How are they constructed from variable and expressions in python?
[Link] are keywords?Given Examples.
[Link] about the concept of precedence and associativity of operators with example.
[Link] about the function definition and call with example.
[Link] are functions needed?

PART - C (15 MARK )


[Link] the syntax and structure of user defined functions in python with examples .Also discuss
parameter passing in functions.
[Link] about Variables,Expressions and statements
[Link] the data types in python
[Link] interpreter and interactive mode in python with example.
[Link] function and module with suitable example
[Link] short notes on types of operators in python with appropriate example
[Link] briefly constant, variables, expression, keywords and statements available in python
[Link] the following python programs.

You might also like