0% found this document useful (0 votes)
2 views3 pages

Python Impt Questions

The document outlines a curriculum for an introductory Python programming course, detailing practice programs and questions across five modules. Each module covers various topics such as basic functions, data types, file operations, and object-oriented programming concepts. Students are expected to spend an average of 60 minutes per module and select a specific number of questions to study and answer.

Uploaded by

aslipika37
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)
2 views3 pages

Python Impt Questions

The document outlines a curriculum for an introductory Python programming course, detailing practice programs and questions across five modules. Each module covers various topics such as basic functions, data types, file operations, and object-oriented programming concepts. Students are expected to spend an average of 60 minutes per module and select a specific number of questions to study and answer.

Uploaded by

aslipika37
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
You are on page 1/ 3

BPLCK205B-Introto Python Programming

SIMP Questions -22SCHEME


BY TIE REVIEW TEAM -SVIT and KSIT

Average time to be spent per module- 60 Mins

Practice Programs - P1-P5

1. Write a python program to add n numbers accepted from the user 2.


Write a function to calculate the factorial of a number.
3. Developa program to compute binomial coefficient (Given N and R).
4. Create a function to print out a blank tic-tac-toe board
5.Write a program in python that counts the number of occurrences of each letter
in a string.

6. Developa Python program to read and print the contents of a text file and
initiate a function to find the total size of all the files in a given directory
7. which takes TWO objects representing complex numbers and
Define a function
returns a new complex number with an addition of two complex numbers. Define a
suitable class Complex' to represent the complex number. Developa program to
read N (N >=2) complex numbers and to compute the addition ofN complex
numbers.

Module-1(Studyany 6 Questions)

1. List the salient features of Pythonprogramming Language,Demonstrate with


example print(), input) and len) in python
2. Explain string concatenation and string replication with one suitable examples
for each

3. Explain basic functions in Python by considering str(), int() and float) as point

of ref 4. What are Comparison and Booleanoperators? List all the Comparison and
Boolean operators in Python and explain the use of these operators with suitable

examples
5. What are the different flow control statementssupported in python? Explain all

the flow control statements with example program,syntax and flowchart

6. Explain different ways of importing modules into application in Python with


syntax and suitable programming examples
7. What is Exception Handling? How are exceptions handled in Python?Write a
Python program with exception handling code to solve an error situation

D.
8.Explain Local and Global Scope in Python programs. What are local and global

variables? How can you force a variable in a functionto refer to the global

variable?

Module-2 (Study any 5 Questions)

1.Explainthe methods of List data type in Python for the following operations
with suitable code snippets for each.
()Adding values to a list i) Removing valuesfrom a list

(ii) Finding a value in a list iv) a list


Sortingthe values in

2. What is a list? Explain append(), insert),index()and remove) methods with


examples, also list down differences between list and tuple and how list can be
converted to tuple-10M
3. What a string? Explainany four methods associated with string and explain
is

each of them with an example.


4. Discuss the different ways of traversing a list. Explaineach with an example

5. What is a Dictionaryin Python? How is it different from List data type?Discuss


the followingDictionarymethods in Python with examples.
()get) (i)items() (ii) keys) (iv) values(0
6. Compare list and dictionary data structureswith respect to python language.

Module-3(Study any 5questions)

1. List out all the useful string methods which are supported in python.Explain
with an example for each method.

2. ExplainPython string handling methods with examples


3. ExplainPassword Locker Project.

4. What are the different steps in the project Adding Bullets to Wiki Markup. 5.

Describethe difference between Python os and os.path modules. Also, discussthe


following methods of os module

a) chdir) b)rmdir) c) walk() d) listdir) e) getcwd()

6. What are the key properties of a file? Explainin detail the file reading/writing
process with an example of a python program.

Pogo
Module-4 (Study any 6 questions)

1. Explain all the functions of Shutil Module with programming examples

2. What are the different methods of file operations supported in the python shutil
module.
3. What is meant by compressing files? Explain reading, extracting and creating ZIP

files with programming examples for each


4. Explain the differences between permanent delete and safe delete with suitable

Pythonprogramming examples to each.


5. Explain in detail (i)Assertions (i)Logging(ii)Buttons in Debugging (iv)raising
exceptions with code snippets wherever necessary
6. Explain how assertions can be used in traffic light simulation with Python code
snippets.

7. Explain the supportfor Logging with logging module in Python

Module- 5(Studyany 4 questions)

1. What is a class?How to define a class in python? How to initiate a class and how
the class members are accessed? Explain with programming snippets
2. Define Class Diagram.Discuss the need for representing class relationships using
Class Diagram with suitable examples.
3. Illustrate the conceptof modifier and pure functions with Python snippets
4. Explain 'prototype and patch' with suitable examnple
5. Explain (i)Polymorphism (ii) Inheritance (ii)Overloading with examples 6.
Explain init and_str_ method with an example Python Program

D.

You might also like