PTR COLLEGE OF ENGINEERING AND TECHNOLOGY PTR COLLEGE OF ENGINEERING AND TECHNOLOGY
MECHANICAL AND CIVIL ENGINEERING MECHANICAL AND CIVIL ENGINEERING
Internal Exam – I Internal Exam – I
Subject: CS25C02 – Computer Programming : Python Subject: CS25C02 – Computer Programming : Python
Year/Sem: I/I Time:1hr /30minYear/Sem: I/I Time:1hr /30min
Maximum: 50 Marks
Maximum: 50 Marks
PART – A (5×2=10 Marks)
PART – A (5×2=10 Marks)
1. 1. What is Python?
1. 1. What is Python?
2. Define Algorithm and Flowchart
2. Define Algorithm and Flowchart
3. Write Pseudocode for area of a circle
3. Write Pseudocode for area of a circle
4. Define Data type
4. Define Data type
5. Define Indentation.
5. Define Indentation.
PART B(2×12=24Marks)
PART B(2×12=24Marks)
5.a)Discuss about Problem analysis chart and Problem solving in
5.a)Discuss about Problem analysis chart and Problem solving in
detail.(12m)
detail.(12m)
(OR)
(OR)
b) Draw a flowchart and write a python program to find the greatest
b) Draw a flowchart and write a python program to find the greatest
of two numbers with output and result. (12m)
of two numbers with output and result. (12m)
6.a)Explain Comments and its types with an example. (12m)
6.a)Explain Comments and its types with an example. (12m)
(OR)
(OR)
b)Explain Interactive mode and Script mode with example .(12m)
b)Explain Interactive mode and Script mode with example .(12m)
PART– C (1×16=16Marks)
PART– C (1×16=16Marks)
7.Explain the types of data types with example in detail.
7.Explain the types of data types with example in detail.
************ ******All the Best******