0% found this document useful (0 votes)
5 views8 pages

Python QUESTION BANK

python question bank

Uploaded by

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

Python QUESTION BANK

python question bank

Uploaded by

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

AUTONOMOUS INSTITUTION│APPROVED BY AICTE │AFFILIATED TO ANNA UNIVERSITY

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


Academic Year 2025 – 2026(ODD)
Question Bank

Course Code / Name: CS25C02 Computer Programming: Python


Year / Sem. / Sec : I/I FT/RA
UNIT – I
PART – A
D.L
[Link] Questions CO BT
(E/M/D)

1 What is problem solving in Python? CO1 Remember E

2 Define algorithm. CO1 Remember E

3 What is a flowchart? CO1 Remember E

4 What is pseudocode? CO1 Remember E

5 What is indentation in Python? CO1 Remember E

6 Define variables in Python. CO1 Remember M

7 What are reserved words? CO1 Remember M

8 What are data types in Python? CO1 Remember M

9 What is an if statement? CO1 Remember D

Understan
10 What is a for loop in Python? CO1 D
d

PART – B
D.L
Q.N
Questions M CO BT (E/
o
M/D)

Explain the concept of problem solving in Python with steps such


1 as problem analysis chart, algorithm development, flowchart, and 13 CO1 Understand E
pseudocode.

Describe interactive mode and script mode in Python. Also


2 explain indentation, comments, and error messages with 13 CO1 Understand E
examples.
AUTONOMOUS INSTITUTION│APPROVED BY AICTE │AFFILIATED TO ANNA UNIVERSITY
Explain control structures in Python with syntax and examples of
3 13 CO1 Understand M
if, if-else, nested if, and if-elif ladder.

Illustrate looping constructs in Python with examples of while


4 13 CO1 Understand M
loop, for loop, nested loops, and pass statement.

Design a complete Python program using control structures to


5 solve a real-world problem and analyze its logic using algorithm 13 CO1 Create D
and flowchart representation.

UNIT – II

PART – A

D.L
[Link] Questions CO BT
(E/M/D)

1 Define function in Python. CO2 Remember E

2 What is parameter? CO2 Remember E

3 Define argument in Python. CO2 Remember E

4 What is return statement? CO2 Remember E

5 Define recursion. CO2 Remember E

6 What is lambda function? CO2 Remember M

7 What are formal arguments? CO2 Remember M

8 What are actual arguments? CO2 Remember M

Understan
9 What is the use of functions in programming? CO2 D
d

Understan
10 What is named argument in Python? CO2 D
d

PART – B
D.L
Q.N
Questions M CO BT (E/
o
M/D)

1 Explain the concept of functions in Python and how they help in 13 CO2 Understand E
AUTONOMOUS INSTITUTION│APPROVED BY AICTE │AFFILIATED TO ANNA UNIVERSITY
hiding redundancy and complexity.

Define parameters, arguments, and return values. Differentiate


2 13 CO2 Understand E
formal and actual arguments with examples.

3 Explain recursive functions in Python with suitable example. 13 CO2 Analyze M

4 Discuss lambda functions in Python with syntax and examples. 13 CO2 Understand M

Design a Python program using recursion and lambda functions


5 13 CO2 Create D
and explain its working.
AUTONOMOUS INSTITUTION│APPROVED BY AICTE │AFFILIATED TO ANNA UNIVERSITY

UNIT – III

PART – A

D.L
[Link] Questions CO BT
(E/M/D)

1 Define string in Python. CO3 Remember E

2 What is string slicing? CO3 Remember E

3 What is string formatting? CO3 Remember E

4 Define list in Python. CO3 Remember E

5 What is a tuple? CO3 Remember E

6 Define dictionary in Python. CO3 Remember M

7 What is string splitting? CO3 Remember M

8 What is stripping in strings? CO3 Remember M

Understan
9 What is dictionary literal? CO3 D
d

Understan
10 What is searching in a list? CO3 D
d

PART – B
D.L
Q.N
Questions M CO BT (E/
o
M/D)

Explain string operations such as comparison, formatting, slicing,


1 13 CO3 Understand E
splitting, and stripping with examples.

Describe lists, tuples, and dictionaries with their basic operations


2 13 CO3 Understand E
and examples.

3 Explain searching and sorting techniques in lists with examples. 13 CO3 Understand M

Discuss dictionary operations such as adding, removing,


4 13 CO3 Understand M
accessing, and replacing values with examples.

Design a Python program that demonstrates string and collection


5 13 CO3 Create D
operations together and analyze its working.
AUTONOMOUS INSTITUTION│APPROVED BY AICTE │AFFILIATED TO ANNA UNIVERSITY

UNIT – IV

PART – A

D.L
[Link] Questions CO BT
(E/M/D)

1 What is a file in Python? CO4 Remember E

2 What is file handling? CO4 Remember E

3 What is the use of open() function? CO4 Remember E

4 Define file modes in Python. CO4 Remember E

5 What is reading a file? CO4 Remember E

6 What is writing in a file? CO4 Remember M

7 What is append mode in file handling? CO4 Remember M

8 What is the purpose of close() function? CO4 Remember M

Understan
9 What is the use of OS module in Python? CO4 D
d

Understan
10 What is a CSV file? CO4 D
d

PART – B
D.L
Q.N
Questions M CO BT (E/
o
M/D)

1 Explain file operations in Python such as create, open, read, 13 CO4 Understand E
AUTONOMOUS INSTITUTION│APPROVED BY AICTE │AFFILIATED TO ANNA UNIVERSITY
write, append, and close with examples.

Describe OS and sys modules in Python with their uses in file and
2 13 CO4 Understand E
directory handling.

Explain reading and writing of text and numeric data in files with
3 13 CO4 Understand M
examples.

Discuss how directories are created, manipulated, and managed in


4 13 CO4 Understand M
Python using OS module.

Design a Python program to create and read formatted files like


5 13 CO4 Create D
CSV and tab-separated files and analyze its working.
AUTONOMOUS INSTITUTION│APPROVED BY AICTE │AFFILIATED TO ANNA UNIVERSITY

UNIT – V

PART – A

D.L
[Link] Questions CO BT
(E/M/D)

1 What is a module in Python? CO5 Remember E

2 Define built-in modules. CO5 Remember E

3 What are user-defined modules? CO5 Remember E

4 What is NumPy? CO5 Remember E

5 What is Pandas used for? CO5 Remember E

6 Define SciPy library. CO5 Remember M

7 What is Scikit-learn used for? CO5 Remember M

8 What is the purpose of import statement? CO5 Remember M

Understan
9 What is an array in NumPy? CO5 D
d

Understan
10 What is data frame in Pandas? CO5 D
d

PART – B
D.L
Q.N
Questions M CO BT (E/
o
M/D)

Explain built-in modules and user-defined modules in Python


1 13 CO5 Understand E
with examples.

Describe NumPy library and its operations with suitable


2 13 CO5 Understand E
examples.

Explain Pandas library and its use in data handling and analysis
3 13 CO5 Understand M
with examples.

Discuss SciPy and Scikit-learn libraries and their applications in


4 13 CO5 Understand M
Python.

5 Design a Python program using NumPy and Pandas for data 13 CO5 Create D
AUTONOMOUS INSTITUTION│APPROVED BY AICTE │AFFILIATED TO ANNA UNIVERSITY
analysis and explain its working.

Faculty incharge HoD Dean/ CT Principal

You might also like