We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
Time : Three hours
p
oe)
ex
10.
ll.
Reg. No.: [4] i cJol2 [2 [1 lolglol2ia]
Question Paper Code : 51224
B.E/B.Tech. DEGREE EXAMINATIONS, APRIL/MAY 2024.
First Semester
Civil Engineering
GE 3151 - PROBLEM SOLVING AND PYTHON PROGRAMMING
(Common to all Branches)
(Also Common to PTGE 3151 — Problem Solving and Python Programming for
B.E, (Part-Time) First Semester — All Branches — Regulations — 2023)
(Regulations 2021)
Maximum : 100 marks
Answer ALL questions.
PART A — (10 x 2= 20 marks)
Differentiate Algorithm and Pseudo code.
Write any two disadvantages of flowchart? a
What is the difference between interactive mode and script mode?
Mention the features of lists in python.
What is ‘len’ function? Give example for how it is used on strings.
How to split strings and what function is used to perform that operation?
What is range() function and how it is used in lists?
What are the advantages of ‘Tuple’ over ‘List’?
What is module and package in Python?
List few common exception types.
PART B — (5 x 16 = 80 marks)
(a) @) Explain the steps involved in program development cycle. 8)
(ii) Write the algorithm, pseudocode and draw the flowchart for the
following :
(1) Guess an integer number in a range. ()
(2) Towers of Hanoi. (4)
Or13.
14.
15,
(b)
(a)
)
(a)
)
(a)
b)
)
(Explain the design structures in pseudo code. ®
Gi) Write the algorithm, pseudocode and draw the flowchart for the
following :
(2) To find the sum of square root of any three numbers. a
(2) To find the sum of first 100 integers. (4)
Write the following python programs
(Test whether a given year is leap year or not 3)
Gi) To convert Celsius to Fahrenheit. @)
Or
Write the following python programs
@ To find whether a given number is Armstrong number or not (8)
(i) To print Fibonacci series. 8)
(Explain call by value and call by reference in python. ®
(i) How to perform a user input in Python? Explain with example. (8)
Or
() Briefly explain about function prototypes. ®
Gi) Write a program to check whether entered string is palindrome or
not. ®
What are the basic list operations that can be performed in Python?
Explain each operation with its syntax and example a6)
Or
What is Dictionary? Explain Python dictionaries in detail discussing its
operations and methods. (16)
() Write a program to enter a number in Python and print its octal
and hexadecimal equivalent. ®)
Gi) Explain in detail about namespaces and scoping. (8)
Or
Explain in detail about Python Files, its types, functions and operations
that can be performed on files with examples. (16)
2 51224