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

QP 2024

This document outlines the examination structure for the 'Introduction to Python Programming' course, including details on the format, modules, and types of questions. It specifies that students must answer five full questions, selecting one from each module, with a total duration of three hours and a maximum score of 100 marks. The document includes various programming tasks and theoretical questions related to Python concepts such as data types, functions, file handling, and object-oriented programming.

Uploaded by

Keerthana Balaji
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)
88 views2 pages

QP 2024

This document outlines the examination structure for the 'Introduction to Python Programming' course, including details on the format, modules, and types of questions. It specifies that students must answer five full questions, selecting one from each module, with a total duration of three hours and a maximum score of 100 marks. The document includes various programming tasks and theoretical questions related to Python concepts such as data types, functions, file handling, and object-oriented programming.

Uploaded by

Keerthana Balaji
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
USN GBGS Senziilz BPLCK205B/BPLCKB205 Second Semester B.E./B.Tech, Degree Supplementary Examination, June/July 2024 Introduction to Python’ Programming Time: 3 hrs. Max. Marks: 100 Notes 1. Answer any FIVE full questions, choosing ONE full question from each module. 2. M: Marks, L: Bloom’s level Cs Course outcomes. Module —1 MIL] C QI] & | Explain elif for, while statement in python with example for each. 06 | 12 | Cor b. | List and explain math operators used in python with example 06 | 12 | Cor «. | Develop a progranito read the name and year of birth of a person. Print| 08 | L3 | COL whether person is Senior citizen or not. OR Q2 a. | Explain local and global scope with example. 06) £2] COI b. | With an example, explain the following built in function’: 06 | 12 | Cor (i) print() Gi) imput( ) (ii) len) ©. | Develop a program to generate Fibonacci number of length (N). Read N] 08 |L3 | COL from the console. J Module— 2 . QB | @. | Explain the following list methods with example 08] L2 | Coz (i) append(_) (ii) insert( sort( ) b. | Differentiate List and dictionaries, 04) L1 | COZ . | Develop a program using dictionary to print Ten most frequently appearing | 08 | L3 | COZ word in a text file. OR Q4 | a | Explain the following method with example: 08) 12 | Coz (iykey() ii) values) ii) items() in dictionary b. | Show that List are Mutable. 04) L1 | Coz ©. | Develop @ program to compute Mean, Variance, Standard deviation with | 08 | L3 | COZ message. Module —3 QS | @ | Explain the following string method with example: 08) LI] COs (i) isalpha() , (ii) isalmum( ) (iii) isdecimal() (iv) isspace( Lof2 BPLCK205B/BPLCKB205 b. | Differentiate between absolute and relative path in specify file path 04) 2 | Coa . | Write a program to accept string and display total number of alphabet, 08 | 13 | COs OR Q6 Explain the following method with example: 08] 12] COs upper) Gi) lower) Gi) ix_uppert) . (iv) &_Jower( ) Explain how to save variable with Shelve module. 04| 12 | Cos . | Develop a program to sort the content of a text file and write the sorted| 08) L2 | CO3 content into separate file ___- Module - 4 Q7 How do you copy files and folders using Shutil module? Explain in detail.) 10] L2 | CO3 . | With suitable code, explain Backup a folder into a Zip files, clearly mention | 10 | L3 | COS steps in detail OR QB | a | What are asseftions? Write the content ofan assert statement. Explain then] 10] L2 | CO3 with example B. | Explain logging module with example how files “and folder can_be| 10| L2 | CO3 permanently deleted Module—5 Qs What is a class? How to’define class in python? How to initiate a class and] 10) L2 | COs how the class members are accessed? | What is polymorphism? Demonstrate polymorphism with function to find | 10 | L3 | Cod histogram to count the number oftimes each letter appears in a word and in sentences, OR @i0] a. | Discuss operator overloading. Mention any five operators with respective | 10] L2 | CO4 | special function to be 6yerloaded in python. Define pure function: Mlustrate with an example. 10] 13 | Cos 2of2

You might also like