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

Question Bank Python

The document is a comprehensive question bank for a Python Programming course, covering foundational topics across four units. Each unit includes questions categorized into three parts: 2 marks, 5 marks, and 10 marks, addressing various aspects of Python programming, data structures, object-oriented programming, and data analysis. The questions are designed to assess understanding, application, and analysis of Python concepts and libraries.

Uploaded by

p88402197
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)
6 views8 pages

Question Bank Python

The document is a comprehensive question bank for a Python Programming course, covering foundational topics across four units. Each unit includes questions categorized into three parts: 2 marks, 5 marks, and 10 marks, addressing various aspects of Python programming, data structures, object-oriented programming, and data analysis. The questions are designed to assess understanding, application, and analysis of Python concepts and libraries.

Uploaded by

p88402197
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
You are on page 1/ 8

QUESTION BANK – UNIT I: Foundations of Python Programming

Subject: Python Programming


Class: BCA III Year
Unit – I: Foundations of Python Programming
Total Hours: 14

Bloom’s Taxonomy Cognitive Levels (CLs)

Cod
Level Description
e

Rememberin
C1 Recall basic facts and concepts
g

Understandi
C2 Explain ideas or concepts
ng

Use information in new


C3 Applying
situations

C4 Analyzing Draw connections among ideas

Justify a decision or course of


C5 Evaluating
action

C6 Creating Produce new or original work

PART – A: 2 Marks Questions


1. What is a Python Interpreter? (C1)
2. Define identifiers and give examples. (C1)
3. List any four Python keywords. (C1)
4. What is the difference between a statement and an expression in Python?
(C2)
5. Define variables and explain the rules for naming them. (C1)
6. What is operator precedence? (C2)
7. What are the different data types available in Python? (C1)
8. Why is indentation important in Python? (C2)
9. What is the purpose of comments in Python? (C1)
10.Write the syntax of reading input from the user in Python. (C3)
11.What is the use of the type() function? (C3)
12.Differentiate between dynamic typing and strongly typed language. (C2)
13.Write the syntax of an if-else statement in Python. (C3)
14.What is the use of the break and continue statements? (C2)
15.Define a function and mention its advantages. (C1)

PART – B: 5 Marks Questions


1. Explain different data types in Python with suitable examples. (C2)
2. Write a Python program to demonstrate the use of arithmetic and
relational operators. (C3)
3. Explain operator precedence and associativity with examples. (C2)
4. Write a Python program to find the largest of three numbers using nested
if. (C3)
5. Discuss the working of for and while loops in Python with examples.
(C2)
6. Explain the use of break, continue, pass, and else statements in loops
with examples. (C3)
7. Write a note on scope and lifetime of variables in Python. (C2)
8. Explain the concept of default parameters in Python functions with an
example. (C3)
9. Illustrate various string operations and methods with examples. (C4)
10.Write a Python program to accept command line arguments and display
them. (C3)

PART – C: 10 Marks Questions


1. Explain in detail the structure of a Python program with an example
covering comments, variables, and output statements. (C2)
2. Describe different operators in Python (arithmetic, logical, relational,
assignment, and membership) with examples. (C2)
3. Write a Python program to demonstrate conditional and looping
statements for generating a number pattern. (C3)
4. Discuss and compare while loop vs for loop. Write examples for both.
(C4)
5. Explain functions in Python—definition, calling, arguments, return
values, and scope with suitable examples. (C2)
6. Demonstrate the use of command line arguments in Python with an
example. (C3)
7. Explain the creation and manipulation of strings—covering slicing,
joining, and built-in string methods with examples. (C4)
8. Design a Python program that reads input, performs arithmetic operations,
and prints formatted output. Analyse how type conversion works in it. (C5,
C6)

QUESTION BANK – UNIT II: Data Structures and File Handling


PART – A: 2 Marks Questions
1. What is a list in Python? (C1)
2. Write any two basic list operations. (C1)
3. What is list slicing? Give an example. (C2)
4. Write the syntax for deleting an element using the del statement. (C1)
5. How do you create a dictionary in Python? (C1)
6. What are key-value pairs in a dictionary? (C2)
7. List any two dictionary methods. (C1)
8. Differentiate between tuples and lists. (C2)
9. What is a frozenset? (C1)
10.Mention any two set operations supported in Python. (C1)
11.What is an iterator in Python? (C2)
12.Define iterable and give an example. (C1)
13.Name the types of files supported in Python. (C1)
14.What is the difference between text files and binary files? (C2)
15.What is the purpose of the pickle module in Python? (C2)

PART – B: 5 Marks Questions


1. Explain different list methods in Python with examples. (C2)
2. Write a Python program to create a list and perform slicing and
concatenation. (C3)
3. Explain the dictionary methods keys(), values(), items() with examples.
(C2)
4. Compare and contrast lists, tuples, and dictionaries. (C4)
5. Write a Python program to demonstrate tuple operations. (C3)
6. Explain set operations such as union, intersection, and difference with
examples. (C3)
7. Discuss the difference between mutable and immutable data structures in
Python. (C4)
8. Explain the concept of iterators and iterables in Python with examples.
(C2)
9. Explain the process of reading and writing data to a text file in Python.
(C3)
10.Describe how to read and write CSV files in Python. (C3)

PART – C: 10 Marks Questions


1. Explain in detail the creation and manipulation of lists with indexing,
slicing, and built-in methods. (C2)
2. Write a Python program to demonstrate dictionary creation, modification,
and traversal. (C3)
3. Compare lists, tuples, and dictionaries in terms of mutability, syntax, and
use cases. (C4)
4. Discuss the features of sets and frozensets with examples. Explain set
operations and methods. (C3, C4)
5. Explain the working of iterators and iterables in Python. Write a user-
defined iterator class as an example. (C3, C6)
6. Describe the steps for handling text and binary files in Python with
examples. (C3)
7. Explain CSV file handling in Python with example code for reading and
writing data. (C3, C4)
8. What is the Pickle module? Explain how data serialization and
deserialization are done using Pickle with an example. (C2, C5)

QUESTION BANK – UNIT III: Object-Oriented Programming and Data


Handling Libraries
PART – A: 2 Marks Questions
1. What is Object-Oriented Programming? (C1)
2. Define class and object in Python. (C1)
3. What is the purpose of the __init__() method? (C2)
4. Differentiate between class attributes and instance attributes. (C2)
5. What is encapsulation? (C1)
6. Define inheritance and give one example. (C1)
7. What is polymorphism in Python? (C1)
8. How are multiple objects created in Python classes? (C3)
9. What are NumPy arrays? (C1)
10.Write any two advantages of using NumPy arrays over lists. (C2)
11.What is a Pandas Series? (C1)
12.Define a DataFrame in Pandas. (C1)
13.What is indexing in Pandas? (C2)
14.What is meant by handling missing values in Pandas? (C2)
15.Define data aggregation in Pandas. (C2)

PART – B: 5 Marks Questions


1. Explain how classes and objects are created in Python with examples. (C2)
2. Describe the purpose of the constructor method (__init__) with a suitable
program. (C3)
3. Discuss the difference between class variables and instance variables with
examples. (C4)
4. Explain encapsulation and demonstrate it using getter and setter
methods. (C3)
5. Write a Python program to implement single and multilevel inheritance.
(C3)
6. Explain polymorphism in Python using method overriding and operator
overloading examples. (C4)
7. Explain how NumPy arrays are created and perform basic arithmetic
operations on them. (C3)
8. Describe the features of Pandas Series and how data can be accessed
using labels and indexes. (C2)
9. Write short notes on handling missing values in Pandas. (C2)
10.Explain data grouping and summarization in Pandas with examples. (C3)

PART – C: 10 Marks Questions


1. Explain in detail the concepts of class, object, constructor, and multiple
objects with suitable examples. (C2)
2. Describe and demonstrate encapsulation, inheritance, and polymorphism
in Python OOP. (C3, C4)
3. Compare procedural and object-oriented programming in Python with
examples. (C4)
4. Write a Python program to implement multiple inheritance and method
overriding. (C3, C6)
5. Explain the NumPy array data structure and demonstrate array creation,
indexing, slicing, and vectorized operations. (C3)
6. Describe the Pandas Series and DataFrame structures with examples of
data access and modification. (C2, C3)
7. Explain data aggregation, grouping, and summarization in Pandas with
example programs. (C3, C4)
8. Discuss how to handle missing data and perform basic data cleaning
operations using Pandas. (C3, C5)

QUESTION BANK – UNIT IV: Data Analysis and Visualization

PART – A: 2 Marks Questions

1. What is data analysis? (C1)


2. Define data visualization. (C1)
3. What is the purpose of importing data in Python? (C1)
4. Mention any two formats used for data import/export. (C1)
5. What is a CSV file? (C1)
6. What is JSON? (C1)
7. Write one function used to read data from a CSV file using Pandas. (C3)
8. What is the purpose of data formatting? (C2)
9. Define Matplotlib. (C1)
10.What is Plotly used for? (C1)
11.Mention any two types of plots supported by Matplotlib. (C1)
12.What is a line graph used for? (C2)
13.Define random walk. (C2)
14.What is an API in Python? (C1)
15.What is meant by mapping datasets using JSON? (C2)

PART – B: 5 Marks Questions


1. Explain how to import and export CSV files using Pandas with examples.
(C3)
2. Describe the steps to read and write JSON files in Python. (C2)
3. Explain how to format and clean data before analysis. (C3)
4. Write a Python program to plot a line graph and bar chart using Matplotlib.
(C3)
5. Explain the difference between Matplotlib and Plotly. (C4)
6. Discuss the steps to generate and visualize random walk data in Python.
(C3)
7. Explain how to simulate dice rolls and plot the results graphically. (C3)
8. Describe how to fetch and visualize data using APIs in Python. (C3, C4)
9. Explain the process of visualizing GitHub repositories using Plotly. (C4)
10.What is JSON-based mapping? Explain how to map global datasets with
JSON. (C3)

PART – C: 10 Marks Questions

1. Explain the process of importing and exporting data using CSV and JSON
formats with example code. (C2, C3)
2. Discuss data understanding, formatting, and cleaning with examples. (C2,
C4)
3. Write a Python program using Matplotlib to plot multiple data sets using
line and bar charts. (C3, C6)
4. Explain how to use Plotly for creating interactive data visualizations with
examples. (C3, C6)
5. Describe the steps involved in generating random walks and plotting them
using Matplotlib or Plotly. (C3, C4)
6. Write a Python program to perform a dice simulation and visualize
outcomes using bar charts. (C3, C6)
7. Explain how to work with APIs, download external data, and visualize it
using Plotly. (C3, C5)
8. Discuss how to map and visualize global datasets using JSON and Plotly.
(C3, C6)

You might also like