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

18IS752-Python Programming Model Question Papers SEE March-April-2022

This document appears to be a model question paper for a Python programming examination. It contains 10 questions divided into two sections. The questions cover a range of fundamental Python topics including data types, operators, control structures, functions, classes and exceptions. Students are instructed to answer 5 full questions, choosing from either Section 1 or Section 2. The questions are mapped to various course outcomes and rated on a difficulty level scale.

Uploaded by

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

18IS752-Python Programming Model Question Papers SEE March-April-2022

This document appears to be a model question paper for a Python programming examination. It contains 10 questions divided into two sections. The questions cover a range of fundamental Python topics including data types, operators, control structures, functions, classes and exceptions. Students are instructed to answer 5 full questions, choosing from either Section 1 or Section 2. The questions are mapped to various course outcomes and rated on a difficulty level scale.

Uploaded by

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

(Page 1 of 6)

USN 18IS752
B. E. Degree (Autonomous) Seventh, Semester End Examination (SEE), March/April-2022
PYTHON PROGRAMMING
(Model Question Paper – I)
[Time: 3 Hours ] [ Maximum : 100 ]
Instructions to students: Course RBT
1. Answer FIVE FULL questions as per choices given therein. Marks Outcomes Levels

1. a) Describe the different operators in python programming Language with examples. 06 CO1 L2
b) List and Explain the basic data types in python programming. 07 CO1 L1
c) Discuss the features of python programming language. 07 CO1 L2
OR
2. a) Explain the Identifiers, Keywords, Statements, Expressions, and Variables in 05 CO1 L2
Python programming language with examples.
b) Write Python program to reverse a number and also find the Sum of digits in 06 CO1 L1
the reversed number. Prompt the user for input.

c) Develop a python program to find the best of two test average out of three test’s 09 CO1 L3
accepted from the user.
3. a) Define list data structure. List out the different operations and methods that can be 08 CO2 L1
performed on list elements.
b) Discuss any six string handling functions in python with examples. 06 CO2 L2
c) Develop a python program to check whether a given string is palindrome or not. 06 CO2 L3
OR
4. a) Consider the following list mylist=[1,7,9,12,16], Identify the output of the 05 CO2 L3
following commands:
(i) mylist[0:3] (ii) mylist[0:-1] (iii) mylist[::-1] (iv) mylist[-1:-4] (v) mylist[:]
b) What are Dictionaries? Explain with examples how dictionaries are 08 CO2 L2
created? Discuss Accessing , Traversing , Updating , Deleting dictionary
Operations and functions with examples.
c) Develop a python program to search an element in a list using linear 07 CO2 L3
search algorithm.
5. a) Create a student class and initialize it with rollno, name and . Implement the info 08 CO4 L4
Method to display all information of the student.
b) What does the keyword self in python mean? Explain with an example. 06 CO4 L1
c) Develop a python program to illustrate multiple inheritance in python. 06 CO4 L1

OR
6. a) Explain the role of str__ method in python. 08 CO4 L2
b) Discuss operator overloading. Mention any five operators with 06 CO4 L4
respective special functions to be overloaded in Python.

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
(Page 2 of 6)
c) Develop a python program to illustrate data hiding principle. 06 CO4 L2
7. a) Describe the need for regular expressions in python with examples. 08 CO3 L6

b) Illustrate with examples the date and time functions in python. 06 CO3 L1
c) Develop a python program to count the number of words, characters and lines 06 CO3 L3
present in a given file.
OR
8. a) Develop a python program to print each line of a file in reverse order. 06 CO3 L4
b) Develop a python program to validate USN of UG VTU student. 07 CO3 L4
c) Write a program to display most frequent 10 words in a text file. 07 CO3 L2

9. a) List out different methods defined in Thread class. 08 CO5 L6


b) Discuss the client-server programming in python with an example. 06 CO5 L6
c) Describe the standard attributes of GUI components. 06 CO5 L6
OR
10. a) Define Multithreading. Write a program to create and execute two threads . 06 CO5 ,L4
b) Illustrate with examples connect, insert, update, delete database operations in 06 CO5 L2
python.
c) Explain any five TkInter GUI widgets in python. 08 CO5 L6
******

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
(Page 3 of 6)
USN 18IS752
B. E. Degree (Autonomous) Seventh, Semester End Examination (SEE), March/April-2022
PYTHON PROGRAMMING
(Model Question Paper – II)
Time: 3 Hours ] [ Maximum : 100 ]
Instructions to students: Course
RBT
2. Answer FIVE FULL questions as per choices given therein. Marks Outcomes
Levels

1. a) List and Explain the basic data types in python programming. 08 CO1 L2
b) Discuss the applications of python programming. 06 CO1 L2
c) Develop a python program to generate prime numbers in a given range. 06 CO1 L3 L
OR
2. a) Write Pythonic code to check if a given year is a leap year or not. 06 CO1 L1

b) Demonstrate the use of break, continue and pass keywords using a code snippet. 06 CO1 L2 L
c) Write Python program to find the GCD of two positive numbers. 08 CO1 L1
3. a) Define dictionary data structure. List out the different operations and methods that can 06 CO2 L1
be performed on dictionary elements.
b) List and explain any six built in string manipulation functions supported by python. 06 CO2 L2
c) Illustrate the following list methods with examples: 08 CO2 L3
i) extend() ii) insert() iii) remove() iv) reverse()
OR
4. a) Write a python program to accept a sentence from the user and display the longest word 08 CO2
of that sentence along with its length. L6
b) Write Python program that accepts a sentence and calculate the number of words, 06 CO2
digits, uppercase letters and lowercase letters.
L6
c) Write Python program to add two matrices and also find the transpose of the 06 CO2
resultant matrix. L6
5. a) With syntax and programming example, explain how the class is defined, object 08 CO3 L3
is created, and methods are invoked in Python.
b) Discuss method overriding in python with an example. 06 CO3
L6
c) Discuss operator overloading. Mention any five operators with respective special 06 CO3 L4
functions to be overloaded in Python
OR
6. a) Distinguish Error and Exception. Describe exception handling in python with example 08 CO3 L6
program.
b) What does the keyword self in python mean? Explain with an example. 06 CO3 L6
c) Develop a python program to illustrate multiple inheritance in python. 06 CO3 L6

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
(Page 4 of 6)
7. a) Write a program to extract only email-ID’s in a text file. Use suitable 06 CO3 L1
regular expression
b) Write a Python program print to first 10 lines and last 10 lines in a file. 06 CO3 L2
c) Develop a program to count frequency of words in a given file, using dictionaries. 08 CO3 L6
Ignore the punctuation marks attached to the words in file and treat lowercase and
uppercase letters as the same.
OR
8. a) Develop a python program to implement stacks using lists. 06 CO3 L3 L

b) Develop a python program to count the number of words, characters and lines present 08 CO3 L3
in file.
c) Explain the need for Pickle module. Write Python program to save dictionary in 06 CO3 L2
Python Pickle.
9. a) List out different methods defined in Thread class. 08 CO5 L2

b) Discuss the client-server programming in python with an example. 06 CO5 L2


c) Describe the standard attributes of GUI components. 06 CO5 L2
OR
10. a) Define Multithreading. Write a program to create and execute two threads . 06 CO5 L2
b) Illustrate with examples connect, insert, update, delete database operations in python. 0 CO5 L2
6
c) Explain any five TkInter GUI widgets in python. 08 CO5 L2
******

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
(Page 5 of 6)

USN 18IS752
B. E. Degree (Autonomous) Seventh, Semester End Examination (SEE), March/April-2022
PYTHON PROGRAMMING
(Model Question Paper – III)
[Time: 3 Hours ] [ Maximum : 100 ]

Instructions to students: Course


RBT
3. Answer FIVE FULL questions as per choices given therein. Marks Outcomes
Levels

1. a) Write a Python program to check if a 3 digit number is Armstrong number or 07 CO1 L2


not.
b) List out the iterative statements in python. Describe with examples. 08 CO1 L2
c) List and Explain the basic data types in python with examples. 05 CO1 L2
OR
2. a) In what situations, break and continue statements were used? Discuss with examples. 06 CO1 L2
b) Create two sets of strings and compute their intersection and union by using & and | 06 CO1 L6
operators.
c) Write Pythonic code to find the factorial of a number. 08 CO1 L1
3. a) Define lists. Discuss the different ways of creating and accessing lists. Lists are 06 CO2 L2
mutable? justify.
b) Write Python program to perform a linear search for a given Key number in the 08 CO2 L1
list and report Success or Failure.
c) List and explain the different ways of parameter passing in python with examples. 06 CO2 L2
OR
4. a) Write Python Program to count the number of characters in a string using 08 CO2 L1
dictionaries. Display the keys and their values in alphabetical Order.
b) Write a python program to generate first n Fibonacci numbers using recursion. 06 CO2 L2
c) With example program illustrate how the Dictionary can be used to count the 06 CO2 L2
occurrence of words in a file.

5. a) Create a student class and initialize it with rollno, name and . Implement the info 08 CO4 L6
method to display all information of the student.
b) What does the keyword self in python mean? Explain with an example. 06 CO4 L1
c) Develop a python program to illustrate multiple inheritance in python. 06 CO4 L3
OR
6. a) Develop a python program to illustrate data hiding principle. 08 CO4 L3
b) Discuss method overriding in python with an example. 06 CO4 L2

c) Discuss operator overloading. Mention any five operators with respective 06 CO4 L2
special functions to be overloaded in Python

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
(Page 6 of 6)
7. a) Develop a python program to implement stacks using lists. 06 CO3 L3

b) Develop a python program to count the number of words, characters and lines 06 CO3 L2
present in file.
c) Explain the need for Pickle module. Write Python program to save dictionary in 08 CO3 L2
Python Pickle.
OR
8. a) Write a program to extract only email-ID’s in a text file. Use suitable 06 CO3 L1
regular expression
b) Write a Python program print to first 10 lines and last 10 lines in a file. 08 CO3 L1
c) Write a program to count frequency of words in a given file, using dictionaries. 06 CO3 L1
Ignore the punctuation marks attached to the words in file and treat lowercase
and uppercase letters as the same.
9. a) List out different methods defined in Thread class. 08 CO5 L2
b) Discuss the client-server programming in python with an example. 06 CO5 L2
c) Describe the standard attributes of GUI components. 06 CO5 L2
OR

10. a) Define Multithreading. Write a program to create and execute two threads . 06 CO5 L1
b) Illustrate with examples connect, insert, update, delete database operations in python. 06 CO5 L2
c) Explain any five TkInter GUI widgets in python. 08 CO5 L2

******

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)

You might also like