PBA Questions list Computer Science (XII)
Chapter: 3 Programming Fundamentals
1. What is programming paradigm, how does functional programming paradigm work? With
examples.
2. What is object oriented programming (OOPS)? Also write pros and cons of OOP.
3. Describe key concepts of OOP, with examples.
4. Differ between functional and object and object oriented programming.
5. Design a vehicle management system using object oriented
(a)-Requirement:
Create a vehicle class with attributes: types, brand, model &mileage
(b)-implement a constructor to initialize these attributes, also add method to update mileage
a display setting.
(c)- create two vehicles (object). Update their mileage and display there detail.
6. Write a python program using OOP to manage student record. The program should include
class, student with attribute: name, roll no., grade and marks. It should have method to
update marks and display student details.
7. What is the list in python and how elements are added or removed using different functions?
Explain with examples
8. How can we search and remove all odd numbers from a list in python, handle missing
values safely and calculate the average using built-in functions.
9. What are tuples in python? How can we access, search and combine them. Explain with
examples.
10. Differ between list and tuple in python
11. Write program to write max. And min. Values in a tuple of numbers.
12. Write program in python that swaps two tuple.
13. What are sets in python? How can we use methods like add () and the operators with sets.
14. Write a program to find union and intersection of two sets
15. What is a dictionary in python? How does it store data using key-value pairs and how can
we create, update, delete and search entries?
16. Write a program in python to check if a key exist in dictionary.
17. What are nested lists? How can we nested list to create and print a 3x3 matrix using
different printing methods, how can we calculate and display its transpose using python
code? Explain with examples.
18. A matrix ‘X’ is a symmetric matrix, if X= (transpose of X). Write code to determine whether a
given matrix is symmetric matrix or not.
19. How can we store multiple values like registration number and marks for each student using
a list as a value in a dictionary, and how can we access, update and display this data?
20. A primary school has subject teachers such that a teacher teaches only 2 subjects to a
class. Assuming, each class studies 8 subjects in total. Write a program using list as a value
in dictionary so that ‘class’ becomes the key and respective ‘teachers’ are stored as values.
21. Write a program to calculate the sum of each row in a nested list(matrix).
22. Write program to store employees as keys and their list of skills as values in dictionary, and
then display each employee’s skills.
23. Differ between text files and binary files in python.
24. Write a program to open a file “[Link]” in read-mode. Create another file “[Link]” , and write
the contents of abc.
25. Write a program to open the file”[Link]” in read mode. Create another file”[Link]” and write
the contents of [Link] by reading character by character.
26. Write a program to count the number of lines, words, and characters in text file.
27. Write a python program to copy the contents of one text file into another.
28. Write a python program to read a text file and display only lines containing a specific word.
29. Write a python program to store a list of numbers in a file and then read and calculate their
sum.
30. Write a python program to reverse the contents of a text file and store it in another file.
31. Explain the importance of GUI in python programming, describe the features and uses of
Tkinter, and discuss how GUI components and event handling work in Tkinter-based
application.
32. Explain how to build a simple number adder application using Tkinter.
33. How we create an interactive color guessing game using python Tkinter GUI library.
34. What is database? Describe its advantages, major types and important key concepts.
35. Explain the different types of keys used in databases. Describe their purpose and give one
table example of each.
36. What is data normalization in relational databases? Describe its purpose and importance.
37. What is 1NF? Write steps to convert a table in 1NF along with examples.
38. What is 2NF? Explain with examples. Write steps to convert a table from 1NF to 2NF.
39. What is 3NF? Explain with examples. Write steps to convert from 2NF to3nf.
40. Explain normalization process through example of laptop.
41. What is some common database tools used for data management? Explain features of
Microsoft Access.
42. What is sqlite? Explain the features of sqlite. Write its advantages.
43. How can you download, extract, and verify installation of sqlite on windows using command
promt?
44. Explain the step by step process of creating a new sqlite database using CLI.
45. Explain the keys involved in creating table,inserting and querying records,updating data and
deleting using sqlite
46. Write an SQL example using insert into to add records in order detail table.
47. Explain concept of debugging with help of matrix transpose example.
48. What is unit test? Explain the use of python unit test framework with help of function testing
using assertions, breakpoints, and watch points.
Chapter: 4 Data and Analysis
1. Explain how python can be used for data visualization. Write a python program to perform
simple linear regression on the dataset of study hours and marks. Explain how graph is
plotted using Matplotlib.
2. What is meant by data story telling in machine learning and data science? How does it help
make understandable and actionable?
3. Explain the process of hypothesis formulation and testing in real world. How do null and
alternative hypothesis guide research decision making.
4. What is hypothesis testing along with example?
5. What is p-values in hypothesis testing.
6. Describe steps involved in hypothesis testing.
PBA Questions list Computer Science (XI)
Chapter: 3 Programming Fundamentals
1. What is program? Describe two types/classification/categories of program? Also
describe what are programming languages?
2. What is Python? Write down applications of python. Describe reason/benefit/why python
is popular other language?
3. What is IDE? Briefly explain Python Integrated development environment (IDE/IDLE)?
4. What are turtle graphics in python? Write down applications, advantages and
disadvantages of turtle graphics give example?
5. What are turtle graphics in python explain it with circle triangle and car example?
6. What is library? Explain it with a code line example in python?
7. What are variables in programming? What are the rules for naming variables in python?
8. What are variables? Which data type Python supports? Write code to swap the values of
two variables in Python.
9. What is input and output? Explain with examples.
10. What are operations? Describe types of operation in Python? Give examples.
11. What is a conditional statement? Explain if-else and if-elif-else statements in Python with
examples.
12. What are loops? Why loops are used? Explain with examples.
13. What are lists? Describe functions of lists in Python? Give Examples.
14. What are functions? Why functions are used in programming? Explain with example in
Python?
15. What are functions arguments? Explain with example of code in Python? How functions
return value or results?
16. What is debugging? What is debugger in python IDE /IDLE?
Chapter: 4 Data and Analysis
1. What is statistical modeling? Describe use causes for statistical modeling.
2. How to solve a Data science case study?
3. What are statistical modeling techniques? Explain supervised learning and unsupervised
learning?
4. How to build a statistical model using python?
5. What is experimental design? Explain experimentation in data science as a tool.
6. Explain Correlation and causation. Briefly describe Population and Random Sample,
parameter and statistics in experimental design in data science.
7. What is data collection? Describe primary and secondary data collection methods in
experimental design in data science.
8. Briefly describe real words experimentation example in experimental design in data
science
9. Describe steps to analyze a dataset also describe data products and data visualization
10. Describe data analysis through python?