Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
9 views

python set3

The document is an exam paper for a course on Problem Solving and Python Programming, covering various topics such as Python expressions, control flow, data structures, and algorithms. It includes questions on evaluating expressions, understanding loops, and writing Python programs for specific tasks. The exam is divided into three parts, with a total of 65 marks for Part B and additional questions in Part C.

Uploaded by

Karthika
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

python set3

The document is an exam paper for a course on Problem Solving and Python Programming, covering various topics such as Python expressions, control flow, data structures, and algorithms. It includes questions on evaluating expressions, understanding loops, and writing Python programs for specific tasks. The exam is divided into three parts, with a total of 65 marks for Part B and additional questions in Part C.

Uploaded by

Karthika
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

REG.

NO

RRASE COLLEGE OF ENGINEERING diagrams. (13m)


SEM: I 12.(a). Evaluate the following expressions in python (5m)
MODEL EXAM II (i) 24//6%3 (ii) 2**2**3
TIME: 3Hr (ii) Sketch the structures of interpreter and complier.
GE3151-PROBLEM SOLVING & PYTHON PROGRAMMING
Detail the difference between them. Explain how python works
in Interactive mode and script mode with example (8m)
PART A (10*2=20marks)
OR
1. What are the factors used to judge the quality of the
(b) (i). Outline the operator precedence of arithmetic
algorithm?
operators in Python. (8m)
2. What is control flow? List and define the ways of
( ii). Write a Python Program to Exchange the value of
execution of control.
two variable (5m)
3. What is a tuple? How literals of type tuple are
13.(a) List the three types of conditional statements in
written? Give example.
python and explain them (13m)
4. Write a Python program to exchange the values of
OR
two numbers without using a temporary variable?
b.(i). Appraise with an example nested if and elif header
5. Differentiate while loop and for loop
in python (5m)
6.What is meant by scope of variable in python? What
(ii).Explain with an example while loop, break
is the purpose of dictionary in python?
statement and continue statement in python? (8m)
7.What is cloning list? Give example.
14.(a).i. Write a Python program to store n numbers in a list
8.What is difference between list and tuple in python?
and sort the list using selection sort (8m)
9.Find the syntax error in the code given:
(ii).Compare and contrast tuples and lists in python. (5m)
While True print(‘Hello world’)
OR
While True:
(b). Explain bubble sort Algorithm using python
Print “Hello world!”
programming? (13m)
10. Write a python script to display the current date and
15.(a) Explain in detail about modules? (13m)
time.
OR
PART- B (65 marks)
(b).Give brief notes on Packages (13m)
11.(a)..Explain the guidelines for preparing flowcharts,
PART –C
benefits and limitation of flowcharts. (8m)
16 (a)Describe how exceptions are handled in python with)
(b).Write an algorithm to compute the factorial of a
necessary examples (15m
number n. (5m)
OR
OR
(b).Explain in detail about list and its operation(15)
(b).Outline the Towers of Hanoi problem. Suggest a
solution to the Towers of Hanoi problem with relevant

You might also like