0% found this document useful (0 votes)
27 views2 pages

Python Model QuestionPaper

This document is a model question paper for the First Semester B.E. Degree Examination in Introduction to Python Programming at Don Bosco Institute of Technology, Bengaluru. It includes instructions for the exam format, a breakdown of questions in Part A and Part B across various modules, and specifies the marks and Bloom's levels for each question. The paper covers topics such as data types, functions, string operations, file handling, and object-oriented programming.

Uploaded by

harshithan1265
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

Python Model QuestionPaper

This document is a model question paper for the First Semester B.E. Degree Examination in Introduction to Python Programming at Don Bosco Institute of Technology, Bengaluru. It includes instructions for the exam format, a breakdown of questions in Part A and Part B across various modules, and specifies the marks and Bloom's levels for each question. The paper covers topics such as data types, functions, string operations, file handling, and object-oriented programming.

Uploaded by

harshithan1265
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MODEL QUESTION PAPER B25PLC15B

D O N B O SC O I N S TI TU TE O F TE C H N O LO GY , B EN G A L U R U
( A n A u t o n o mo u s In s t i t u t i o n , a f f i l i a t e d t o V TU , B e l a g a v i )

USN

First Semester B.E., Degree Examination, Jan 2026


B25PLC15B: Introduction to python programming
Time: 3 hrs. Max. Marks: 100
Note: 1. Part A is compulsory.
2. In part B, answer any FIVE full questions choosing ONE full question from
each module.
3. M: Marks, L: Bloom’s level, C: Course outcomes.

Maximum of Three sub questions in each main question.


PART-A M L C
[Link]
1 a. Define Interpreter 2 2 1

b. Write an example for a data type and a value 2 1 1

c. List any 2 type conversion functions 2 2 2

d Why functions? 2 2 2

e Extract “Bos” from the given string str = “Don Bosco” using string slicing 2 2 3

f What is the syntax for opening a file? 2 2 3

g Differentiate between tuple, list and dictionary 2 1 4


h Write a syntax for creating a class 1 2 5

PART-B
Module-1
2 a. Discuss in detail about the building blocks of programs 9 2 1

b. Explain various operators used in python with suitable examples 8 2 1

OR
3 a. What is computer program? What are the various statements used in a python program? 9 2 1

b. What do you mean by order of operations? Explain in detail with suitable examples 8 2 1

Module-2
4 a. Why do you need functions? How do you create a function and call if for execution? 9 2 2

b. Develop a python program with a while loop to display the Fibonacci sequence up to 8 2 2
n terms entered by the user
OR
5 a. What are built in functions? Explain type conversion and fruitful functions in detail 8 2 2

1
b. Write a python program to display odd numbers from 1 to 20 using for loop and to display 9 2 2
even numbers from 1 to 20 using while loop and explain the flow of execution in detail

Module-3
6 a. Develop a python program to check if a string is palindrome using slicing 8 2 3

b. i) Write a python program to read only first five lines of “[Link]” 9 2 3


ii) Create a function that takes a filename as input and returns the total number of words in
that file
OR
7 a. Explain the string operations in python for slicing, concatenation, repetition and 9 3 3
comparison with suitable examples
b. What is file? Explain the various modes in which a file can be opened with suitable 8 2 3
examples
Module-4
8 a. Explain the key features and operations of python dictionaries. How are they different from 8 2 4
Lists? Develop suitable program to illustrate insertion, deletion and lookup
b. Develop a program that takes a list of numbers and returns a new list containing only the 9 2 4
even numbers
OR
9 Write a python program to perform the following operations 9 2 4
i) Sum and average of all the numbers given in the list
ii) Remove duplicate item in the list
iii) Reverse the given list
i) How do you create a nested dictionary explain with a suitable example 8 2 4
ii) Explain any 4 functions used in dictionary with an example of each
Modul-5
10 a. Discuss about the differences between traditional programming approach and object 9 2 5
oriented programming approach in detail
b. Explain the use of the following functions in detail with suitable example programs of 8 2 5
each
i) __init__
ii) __str__
OR
11 a. Explain the following in detail with suitable examples 8 2 5
i) Classes and Objects
ii) Attributes & Methods
iii) constructor
b. Explain the following with suitable examples 9 2 5
i) Operator overloading
ii) Type based Dispatch

NOTE: MAXIMUM OF THREE SUB QUESTIONS

****

You might also like