Python QP

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Reg No.

: ____________________ Name : ____________________


COLLEGE OF ENGINEERING KIDANGOOR
DEPARTMENT OF ELECTRONICS & COMMUNICATION
ENGINEERING
Ist Semester - B.Tech
Series Exam 1

Course : UCEST105 - Algorithmic Thinking with


Python
Total Mark: 40 Total Time: 2 Hrs
CO1 Utilize computing as a model for solving real-world problems Understanding(U)
CO2 Articulate a problem before attempting to solve it and prepare a clear and accurate model to Applying(P)
represent the problem
CO BL MARK

PART A

1. A traveller arrives at an inn. He has no money but only a silver chain consisting of 6
links. He uses one link to pay for each day spent at the inn, but the innkeeper agrees to
CO1 1 (3)
accept no more than one broken link.How should the traveller cut up the chain in order to
settle accounts with the innkeeper on a daily basis?
2. Write a program to determine the larger of two numbers. CO1 1 (3)

3. Explain the Problem solving strategies used in Python. CO1 2 (3)

4. List out the various phases in problem solving process. CO2 1 (3)

PART B

5. Draw an algorithm and flowchart to find the factorial of a number CO2 1 (14)
OR
6. Write algorithm and flowchart to find the average height of boys and average height of
CO2 1 (14)
girls in a class of n students.
7. You visit a shop to buy a new mobile. In connection with the festive season, the shop
offers a 10% discount on all mobiles. In addition, the shop also gives a flat exchange
price of | 1000 for old mobiles. Draw a flowchart to input the original price of the mobile CO2 1 (14)
and print its selling price. Note that all customers may not have an old mobile for
exchange.
OR
8. If the three sides of a triangle are input, write an algorithm to check whether the triangle
CO2 1 (14)
is isosceles, equilateral, or scalene.

1 of 1

You might also like