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

BPLCK105B 205B Regular Paper

The document outlines the structure and content of the First Semester B.E./B.Tech. Degree Examination for Introduction to Python Programming held in Jan./Feb. 2023. It includes various questions from different modules covering topics such as functions, exception handling, file operations, and object-oriented programming in Python. Students are required to answer five full questions, selecting one from each module, with a total maximum score of 100 marks.
Copyright
© © All Rights Reserved
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
0% found this document useful (0 votes)
23 views2 pages

BPLCK105B 205B Regular Paper

The document outlines the structure and content of the First Semester B.E./B.Tech. Degree Examination for Introduction to Python Programming held in Jan./Feb. 2023. It includes various questions from different modules covering topics such as functions, exception handling, file operations, and object-oriented programming in Python. Students are required to answer five full questions, selecting one from each module, with a total maximum score of 100 marks.
Copyright
© © All Rights Reserved
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
Bes Sonate | | ] | | | | BPLCK105B/BPLCKB105 USN | | First Semester B.E./B.Tech. Degree Examination, Jan./Feb. 2023 Introduction to Python Programming Time: 3 hrs. Max. Marks: 100 Note: I, Answer any FIVE full questions, choosing ONE full question from each module, 2.M: Marks ,L2 Bloom's level ,.C: Course outcomes: Modulo-i L| Cc Qi [a. | What is the:need for role of precedence? Illustrate the rules of precedence | 6 | 12 | COL in Python with example. " = 'b. | Explain the local and global scope with suitable examples. 6 | 12} cot Develop a program to generate Fibonacci sequence of length (N). Read N from the console: Q.2 | a, What are functions? Explain Python function with parameters and return | 7 | L2 | COL statements. b. | Define exception handling. How exceptions are handled in python? Write a] 7 [L2 [COT program to solve divide by zero exception. ©. | Develop a python program to calculate the area of rectangle and triangle | 6 [C3 | COT print the result, Module -2 ‘Q3 | a. | Explain negative indexing, slicing, index( ), append( ), remove( ), pop(),] 8 | L2 | CO2 insert( ) and sort() with suitable example. ‘b. | Explain the use of in and not in operators in list with suitable examples. 6 | L2 | CO2 ce Develop. ‘a program to find mean, variance and standard deviation. 6 [13 | coz a OR QA Ja. | Explain the following methods in Tists with an examples: 8 | 12] Coz i)len() ii)sum() iii) max() iv) min). D. | Explain set( ) and setdefaull() method «wa uictionary. 6 |i2 | cor . | Develop a Python program to swap cases ofa given string © [13 | coz input: Java output; JAVA, les Module ~3 QS | a. | Explainjoin( )and spli( ) method with examples. 8] L2| cos b. | Explain with exampies:i) saiphaC) fi) Isalnum()” ii) isspace(). © [2 | cos ©. | Develop 3. python code to determine whether the given siring is a|6 |L3 | CO3 palindrome or not a palindrome. Lof2 BPLCK105B/BPLCKB105 OR Q&S Ja. ] Explain the concept of file handling. Also explain reading and writing C03 process with suitable example. b. | Explain the concept of file path. Also discuss absolite and relative file path, COs © | Briefly explain saving variables with shelve module. COs Module—4 : QT [a. | Explain the following file operations in Python with sullable example: COS i) Copying files and folders ii) Moving files and folders lii) Permanently deleting files and folders, + b. | List out the benefits of compressing file? Also explain reading ofa zip file with an’example. c. | List out the differences between shutil.copy( ) and shutil.copytree( ) | COs method. ae OR a. | Briefly explain assertions and raising a exception, y COs b. | List our the benefits of using logging module withan example. — COS © | Develop @ program with a funétion named DivExp which takes two CO3 parameters a, b and returns a value C (C = a/b). Write suitable assertion for a> 0 in function DivExp and raise an exception for when b = 0. Develop a suitable program whiclt reads two values from the console and calls a function DivExp. Module — 5 a. | Define a class and object, construct the class called rectangle and initialize cos it with height = 100, width = 200, starting point as (x = 0, y = 0). Write a Program to display the center point co-ordinates of a rectangle. \b. | Explain the concept of copying using copy module with an example, COs [s Explain the concept of inheritance with an example. CO4 OR @. | Define @ function which takes two objects representing complex numbers Cos and returns new complex number with a addition of two complex. numbers. Define a suitable class ‘Complex’ to represent the complex number. Develop a program to read N(N > = 2) complex numbers and to compute the addition of N complex numbers, b| Explain __init__() and __str__() method with examples. cos . | Briefly explain the printing of objects with an examples. Cot teaae 20f2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy