0% found this document useful (0 votes)
3 views

python model2(set2)

This document is a model exam paper for a Problem Solving and Python Programming course at RRASE College of Engineering. It includes questions divided into three parts: Part A consists of short answer questions, Part B contains detailed questions and programming tasks, and Part C focuses on specific topics like tuple operations and decision-making statements. The exam covers various programming concepts, including flow control, algorithms, data structures, and file operations.

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)
3 views

python model2(set2)

This document is a model exam paper for a Problem Solving and Python Programming course at RRASE College of Engineering. It includes questions divided into three parts: Part A consists of short answer questions, Part B contains detailed questions and programming tasks, and Part C focuses on specific topics like tuple operations and decision-making statements. The exam covers various programming concepts, including flow control, algorithms, data structures, and file operations.

Uploaded by

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

REG.

NO

RRASE COLLEGE OF ENGINEERING


VANCHUVANCHERI, PADAPPAI.
SEM: I
MODEL EXAM II
Set-2

TIME: 3Hr
GE3151-PROBLEM SOLVING & PYTHON PROGRAMMING

PART A (10*2=20marks)

1. How does flow of control work?


2. Explain Towers of Hanoi Problem?
3. Write a snippet to display “hello world”in python interpreter?
4. Illustrate the use of * and + operators in string with example?
5. Comment with an example on the use of local& global variable with the identifier name?
6. Relate string and list?
7. Let list=[‘a’,’b’,’c’,’d’,’e’,’f’] find the following
a).list[1:3]
b) t[:4]
c) t[3:]
8. Define fruitful function?
9. How does try and execute work?
10. How do you handle the exception inside a program when you try to open a non-exixtent?
PART- B(5*13=65 marks)
11 a) (i)Compare and contrast machine language,assembly language & high level language in
detail?
ii)Give the difference between recursion and iteration?

OR

b)Explain in detail about the Notation of an algorithm?

12 a) what is the role of an interpreter?give a detailed note on python interpreter and


interactive mode of operation.Explain how python works in interactive mode and script mode
with examples?
OR
b)Explain in detail about Precedence of python operators and the associativity of python
operator?
13 a) Write a python program to find the square root of a number without using inbuilt
function and explain the same?
OR
b) Write a python program for linear search and binary search and explain its
implementation in detail?

14 a)Demonstrate with python code the various operations that can be performed on tuples?

OR
b)Define dictionary in python do the following operations on dictionaries
i)Initialize two dictionaries with key and value pairs.
ii)merge two dictionaries and create a new dictionary using a single expression
iii)find keys that are in first and not in second dictionary
iv)find same keys in two dictionaries

15 a)Explain about the file reading and writing operations using format operator with python
code?
OR
b)Write a python program to dump objects to a file using pickle?

PART C(1*15=15marks)
16 a)Explain in detail about tuple opearions?
OR
b)Explain in detail about Decision making statements?

You might also like