Interior 0
Interior 0
et
9. What happens if you modify a variable outside the function? Give an example?
10. What are the differences between Pure and Impure Function?
i.N
CHAPTER – 2
DATA ABSTRACTION
2 MARKS & 3 MARKS
la
11. Differentiate Constructors and Selectors?
12. Define Pair
13. Define List
sa
14. Define Tuple
15. Define Instance or Define Object
16. Define Class
da
CHAPTER – 3
SCOPING
2 MARKS & 3 MARKS
20. Why scope should be used for variable? State Reason?
w.
CHAPTER – 4
ALGORITHMIC STRATEGIES
2 MARKS & 3 MARKS
32. What are the two different phases of an Algorithm?
33. What is Insertion sort?
CHAPTER – 5
et
PYTHON – VARIABLES AND OPERATORS
2 MARKS & 3 MARKS
i.N
45. Write short notes on Tokens.
46. What are the different operators that can be used in Python ?
47. What is a literal? Explain the types of literals ?
48. Write short notes on Exponent data?
la
49. What are the assignment operators that can be used in Python? Or What are the Compound
Operators in Python?
50. Write short notes on Escape sequences with examples.
sa
51. What are string literals? Explain.
52. What are the Key Features of Python?
53. What are Comments in Python?
54. What is Indentation?
da
CHAPTER – 6
CONTROL STRUCTURES
2 MARKS & 3 MARKS
64. Define Control Structure or Control Statement
65. Write the Syntax with example for If – Else?
66. Define If – Else Statement
67. Using if..else..elif statement write a suitable program to display largest of 3 numbers.
68. Define Sequential Statement
69. What is Branching Statement or Alternative Statement?
70. Define Simple If Statement
71. Write the Syntax with example for Simple – If?
72. Write the alternate method for If – Else?
73. What is Iteration Statements or Looping Statements?
74. Write a Python program to illustrate the use of while loop - to print all numbers from 10 to 15?
75. Write a Python program to illustrate the use of while loop - with else part?
kindly send me your key answers to our email id - [email protected]
CREATED BY P. SUBRAMANIAN M.Sc(I.T)., B.Ed., 9677066334 Page 2
CHRIST
www.Padasalai.Net THE KINGwww.Trb
BOYSTnpsc.com3
MATRIC HR. SEC. SCHOOL,
KUMBAKONAM – 612 001
76. Write a Python program to illustrate the use of for loop - to print single digit even number?
77. Write a Python program to illustrate the use of for loop - to print single digit even number with else
part?
78. Write a Python program to calculate the sum of numbers 1 to 100?
79. Write a Python program to illustrate the use of string in range() of for loop?
80. Define Nested Loop Structure
81. Write a Python program to illustrate the use nested loop -for within while loop?
82. Define Pass Statement
83. Write a Python Program to illustrate the use of pass statement?
84. Write a Python Program to illustrate the use of pass statement in for Loop?
CHAPTER – 7
PYTHON FUNCTIONS
et
2 MARKS & 3 MARKS
85. What are the Advantages of Function?
i.N
86. What is meant by scope of variable? Mention its types.
87. What is the base condition in Recursive Function?
88. How to set the limit for recursive function with example?
89. What happens when we modify Global Variable inside the function?
la
90. Write a python program to check whether the given year is leap year or not?
91. What is Composition in Functions?
92. How the Recursive Function Works?
sa
93. What are the things that need to be noted when defining Functions?
94. Write the Syntax for User – Defined Function?
95. Define Block
96. What is meant by Nested Block?
da
CHAPTER – 8
STRINGS AND STRING MANIPULATION
2 MARKS & 3 MARKS
115. Do you modify a string in Python?
116. What is slicing?
117. Define the following Built – in String Functions: a) len() b) capitalize()
118. Define the following Built – in String Functions: a) title() b) swapcase()
kindly send me your key answers to our email id - [email protected]
CREATED BY P. SUBRAMANIAN M.Sc(I.T)., B.Ed., 9677066334 Page 3
CHRIST
www.Padasalai.Net THE KINGwww.Trb
BOYSTnpsc.com4
MATRIC HR. SEC. SCHOOL,
KUMBAKONAM – 612 001
119. Define the following Built – in String Functions: a) ord() b) chr() c) count()
120. Define format() Function with Example
121. How to create Strings?
122. Define Subscript and its types
123. Write a Program to access each character with its positive subscript of a giving string
124. Write Program to access each character with its negative subscript of a giving string
125. Write the General format of replace( ) function with example?
126. Write the Syntax and Example for String Formatting?
127. List some String Formatting Characters with Usage?
128. Define the center( ) function in String Functions
129. Define the find( ) function in String Functions
130. Define the following Built – in String Functions: a) isalnum() b) isalpha() c) isdigit()
131. Define the following Built – in String Functions: a) isupper() b) islower()
et
132. Define the following Built – in String Functions: a) upper() b) lower()
133. Define Membership Operators
134. Write a Python Program to check whether the given string is palindrome or not
i.N
135. Write a Python Program to display the following pattern
*
**
***
****
*****
la
sa
136. Write a Python Program to display the number of vowels and consonants in the given string
137. Write a Python Program to create an Abecedarian series. (Abecedarian refers list of elements appear
in alphabetical order)
138. Write a Python Program that accept a string from the user and display the same after removing
da
vowels from it
139. Write a Python Program that count the occurrences of a character in a string
CHAPTER – 9
Pa
et
171. Write a python program that has a list of positive and negative numbers. Create a new tuple that has
only positive numbers from the list
172. How to create sets?
i.N
173. How to create sets using List or Tuple?
174. Define Dictionary
175. Write the Syntax for Dictionary?
176. How to create a Dictionary?
la
177. Define Dictionary Comprehension
sa
CHAPTER – 10
PYTHON CLASSES AND OBJECTS
2 MARKS & 3 MARKS
178. Write the Syntax of Class in Python?
da
CHAPTER – 11
DATABASE CONCEPTS
ww
CHAPTER – 12
STRUCTURED QUERY LANGUAGE (SQL)
2 MARKS & 3 MARKS
202. Write a query that selects all students whose age is less than 18 in order wise.
203. Write the difference between table constraint and column constraint?
204. Which component of SQL lets insert values in tables and which lets to create a table?
205. What is the difference between SQL and MySQL?
206. What is a constraint? Write short note on Primary key constraint.
207. Write a SQL statement to modify the student table structure by adding a new field.
208. Write any three DDL commands.
209. Write the use of Savepoint command with an example
et
210. Define SQL
211. What is the role of SQL in RDBMS?
i.N
212. How to Create Database?
213. Define TRUNCATE Command
214. Define DROP TABLE Command
215. Differentiate DELETE, TRUNCATE, and DROP Statement?
la
216. What is BETWEEN and NOT BETWEEN Keywords?
217. What is IN and NOT IN Keywords?
218. Define HAVING clause
sa
219. Define COMMIT command
220. Define ROLLBACK command
CHAPTER – 13
da
226. Write a Python program to read a CSV file with default delimiter comma (,)
227. What is the Purpose of CSV file?
228. Define close() method
ww
CHAPTER – 14
IMPORTING C++ PROGRAMS IN PYTHON
2 MARKS & 3 MARKS
238. What is the difference between Compiler and Interpreter?
239. Write the expansion of (i) SWIG (ii) MinGW
kindly send me your key answers to our email id - [email protected]
CREATED BY P. SUBRAMANIAN M.Sc(I.T)., B.Ed., 9677066334 Page 6
CHRIST
www.Padasalai.Net THE KINGwww.Trb
BOYSTnpsc.com7
MATRIC HR. SEC. SCHOOL,
KUMBAKONAM – 612 001
240. What is the use of modules?
241. What is the use of cd command. Give an example
242. What are the Applications of Scripting Language?
243. Define MinGW Interface
244. Define Scripting Language
245. What are the commonly used interfaces for importing C++ program into Python?
246. How to execute C++ program through Python?
247. What is the Syntax to execute the Python Program?
248. Define Python’s OS Module
249. Define Python’s getopt Module
CHAPTER – 15
DATA MANIPULATION THROUGH SQL
et
2 MARKS & 3 MARKS
250. Mention the users who use the Database.
i.N
251. Which method is used to connect a database? Give an example.
252. What is the advantage of declaring a column as “INTEGER PRIMARY KEY”
253. Write the command to populate record in a table. Give an example.
254. Which method is used to fetch all rows from the database table?
255. Define SQLite. What is it advantage?
la
256. How to create a Database using SQLite?
257. How to display a record using fetchone() function
sa
258. How to display all records using fetchone() function
259. How to display all records using fetchmany() function
260. Write a Python Program to display the content of tuples in newline without using loops
261. Define SQLite Master
da
CHAPTER – 16
DATA VISUALIZATION USING PYPLOT: LINE CHART, PIE CHART, AND BAR CHART
Pa
CHAPTER – 1
FUNCTION
5 Marks
268. Explain with example Pure and impure functions.
269. Explain with an example interface and implementation.
CHAPTER – 2
DATA ABSTRACTION
5 MARKS
270. How will you facilitate data abstraction? Explain it with suitable example
271. How will you access the multi-item? Explain with example.
CHAPTER – 3
SCOPING
kindly send me your key answers to our email id - [email protected]
CREATED BY P. SUBRAMANIAN M.Sc(I.T)., B.Ed., 9677066334 Page 7
CHRIST
www.Padasalai.Net THE KINGwww.Trb
BOYSTnpsc.com8
MATRIC HR. SEC. SCHOOL,
KUMBAKONAM – 612 001
5 MARKS
272. Write any Five Characteristics of Modules.
273. Write any five benefits in using modular programming.
CHAPTER – 4
ALGORITHMIC STRATEGIES
5 MARKS
274. Explain the Characteristics of an Algorithm?
275. Explain the concept of Dynamic programming with suitable example.
CHAPTER – 5
PYTHON – VARIABLES AND OPERATORS
et
5 MARKS
276. Describe in detail the procedure Script mode programming.
i.N
CHAPTER – 6
CONTROL STRUCTURES
5 MARKS
277. Explain the While Loop with Example?
la
278. Write a detail note on if..else..elif statement with suitable example.
CHAPTER – 7
sa
PYTHON FUNCTIONS
5 MARKS
279. Explain the different types of function with an example.
da
CHAPTER – 8
STRINGS AND STRING MANIPULATION
5 MARKS
282. Explain about string operators in python with suitable example.
w.
CHAPTER – 9
LISTS, TUPLES, SETS AND DICTIONARY
ww
5 MARKS
283. What the different ways to insert an element in a list. Explain with suitable example.
CHAPTER – 10
PYTHON CLASSES AND OBJECTS
5 MARKS
284. Explain about constructor and destructor with suitable example?
CHAPTER – 11
DATABASE CONCEPTS
5 MARKS
285. What are the Components of DBMS?
286. Explain the different types of data model.
287. Explain the different operators in Relational algebra with suitable examples.
et
(iii) To remove the employees who are mechanic.
(iv) To add a new row.
(v) To display the details of all employees who are operators.
i.N
289. What are the components of SQL? Write the commands in each.
CHAPTER – 13
PYTHON AND CSV FILES
la
5 MARKS
290. Tabulate the different mode with its meaning.
291. Write the different methods to read a File in Python.
sa
292. Write a Python program to write a CSV File with custom quotes.
293. Write the rules to be followed to format the data in a CSV file.
da
CHAPTER – 14
IMPORTING C++ PROGRAMS IN PYTHON
5 MARKS
294. Write any 5 features of Python.
Pa
int main()
{ cout<<“WELCOME”;
return(0);
ww
}
The above C++ program is saved in a file welcome.cpp
CHAPTER – 15
DATA MANIPULATION THROUGH SQL
5 MARKS
297. Explain about the Aggregate Functions in SQL?
298. Write in brief about SQLite and the steps used to use it.
299. Write a Python script to create a table called ITEM with following specification.
Add one record to the table.
Name of the database :- ABC
Name of the table :- Item
Column name and specification :-
Icode :- integer and act as
primary key
kindly send me your key answers to our email id - [email protected]
CREATED BY P. SUBRAMANIAN M.Sc(I.T)., B.Ed., 9677066334 Page 9
CHRIST
www.Padasalai.Net THE KINGwww.Trb
BOYSTnpsc.com10
MATRIC HR. SEC. SCHOOL,
KUMBAKONAM – 612 001
Item Name :- Character with
length 25
Rate :- Integer
Record to be added :- 1008,
Monitor,15000
300. Consider the following table Supplier and item .Write a python script for (i) to (ii)
SUPPLIER
Suppno Name City Icode SuppQty
S001 Prasad Delhi 1008 100
S002 Anu Bangalore 1010 200
S003 Shahid Bangalore 1008 175
S004 Akila Hydrabad 1005 195
S005 Girish Hydrabad 1003 25
et
S006 Shylaja Chennai 1008 180
S007 Lavanya Mumbai 1005 325
i.N
i) Display Name, City and Itemname of suppliers who do not reside in Delhi.
ii) Increment the SuppQty of Akila by 40
CHAPTER – 16
la
DATA VISUALIZATION USING PYPLOT: LINE CHART, PIE CHART, AND BAR CHART
5 MARKS
301. Explain in detail the types of pyplots using Matplotlib.
sa
302. Explain the various buttons in a matplotlib window.
da
Pa
w.
ww