Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

wwww wwww

ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 1

SUBJECT : XII STD COMPUTER SCIENCE


eet t eet t
lalai .iN
.N ONE MARK
l a
l i
a .iN
.N
QUESTIONS
l a
l i
a .iN
.
assaa CHAPTER 1. FUNCTIONaaddaassaa aa a
dd s
a aa
s
1. A function is w
P P
ww.of. code. ww P
..P
ww aw
unit
wwww

et
2. Subroutines are the basic blocks of computer programs.

t t t t
3. In programming languages subroutines are called functions.
ee ee
lalai.iN
4. N
.Parameters are variables.
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 5. Arguments are values. aaddaassaa ssaa

.N
add
a aa
w w
6. A function definition P P ww P
. .which call itself called recursive function.
.. P
w ww w
7. An interface is a set of action that an object can do. ww ww

l
assaa
a
l i
a .iN
.Nee t
arguments are passed.
lai
8. Implementation carries out the instruction defined in the interface.
t
10. Impure functioncausea
P a aassaal
ddeffects.
l i .iN
.Neet t
9. Pure functions are functions which will give exact result when the same
a a
P aa a
dd s
a aa
s l a
l i
a .iN
.
. . Pside
. . P
sa
ww w
w
wwwwthe type annotations the parenthesisww
11. When you write wwmandatory.
are
12.Definitions are distinct syntactic blocks.

eet t eet t
i .iN
.N 2. DATA ABSTRACTION i .iN
.N i.iN
.
da

l a
l aCHAPTER l a
l a l a
l a
assaa 1. Splitting a program is calledaadd aas saa
modules.
aa a
dd as saa
ww PP ww PP
.is.a type for objects whose behavior is defined
. . by a set of
wwww wwww
2. Abstract data type
values and operations.
Pa

3. To facilitate data abstraction, we will need to create two functions


eet t
constructor, destructor.
e et t
l a
l i
a .iN
.N are functions that buildla lai N.N data type.
.iabstract l a
l i
a .iN
.
assaa 5.Selectors are functions that aa aa
4.Constructors the
aa ss
dretrieve
d information from the data type. a
dd s
a s
P P aa
. .a ratio of integers. P
.. Paa
w w w
w
wwww
6. A rational number is
wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 2

7. A tuple is a comma separated values surrounded with parentheses.


eet t eet t
lalai .iN
.N
8. A class is bundled data and functions.
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 10. Pair is a compound structure.
9. Bundling of two values
a addaas
together saa
into one called pair.
aa a
dd s
a aa
s
ww P
.. P w
w P
..P
wwwwby placing expressions within squarewwbrackets
11.listis constructed ww separated by

et
commas.

t t t t
12. The elements of a list can be accessed in two ways.
ee ee
lalai.iN
.N
13.
l l a.iN
.N
The two ways of accessing element in ilist
a is multiple assignment, element
l a
l i
a .iN
.
assaa selection operator. s saa ssaa

.N
a a a a
dd is known is called concrete data P a addaa
w w PP
14. A representation of.data
. type
ww.. P
type.
wwwwof data type is unknown is called abstract
15. A representation wwww data type.

l a
l i
a
eet t
CHAPTER 3. SCOPING
.iN lai
N refers to visibility of variables.lalai.iN
.Scope
assaa 2. Namespaces are containers
1.

P a a aa ssaa
.Neet t
ddfor mapping names of variables to objects.
P aadd aass l
aa a
l i
a .iN
.
P
. .variable name to object .. P
sa
3. := sign is usedw ww w w
wwwto map
wwww
4. The process of binding variable name with an object is called mapping.

t t t t
5. The scope of variable is part of code where it is visible.
ee ee
i .iNN
.LEGBrule i N.N the scopes are to be searched lalai.iN
.which .
da

l a
l a6. is used to decide the ordera
l l a
in i
assaa for scope resolution. aaddaassaa a addaassaa
ww P
. P
7. There are 4 types of .variable scope.
w w P
.. P
ww to variable defined in current function.
wwrefers
8. Local scope wwww
Pa

9. A module is a part of program.


eet t e et t
l a
l i
a .iN
scope. lalai.iN
10. A variable which is declared outside of all functions is known as Global
.N .N l a
l i
a .iN
.
assaa 11. A function with in another
aadd a assaais called nested function.
function
aa a
dd s
a aa
s
ww P P
. .scope refers to Built in scope. ww..PP
wwww wwww
12. Pre-loaded program

eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 3

13. Module segments can be invoked by its names and parameters.


eet t eet t
lalai .iN
.N l a
l a .iN
.N
14. Access control is a security technique that regulates who or what can view or
i l a
l i
a .iN
.
assaa 15. All members in a pythonaaclass aa aa
use resources in computing environment.
a ass
dd are public by default. dda as s
P P P Paa
. .of class are accessible with in class andwwits. .sub class.
ww
wwww
16. Protected members
wwww

et
17. A variable can be changed as private by adding double underscore before
variable name.
eet t eet t
lalai.iN
.N l a
l i
a .iN
.N
18. All members in c++ , java are private by default.
l a
l i
a .iN
.
assaa 19. Object oriented languages are ssaaand JAVA. ssaa

.N
aa a aC++
a
dd processing logic and data. PPaadd a
P
..P
20. Modules contains instruction,
ww w
w ..
wwww wwww
CHAPTER 4. Algorithm

l a
l i
a .iN eet t lai
assaa 3. Data maintained and manipulated
2.

P a a a as saa l .iN
.AnNAlgorithm can be implemented in anylsuitable
a i
a .Neet t
1. An Algorithmis a finite set of instructions to accomplish a particular task.
programming language.
ddeffectively through data structure. PPaadd aass l
aa a
l i
a .iN
.
P
. . are Arrays, Structures, list, Tuples, dictionary
. . etc.
sa
ww ww ww w w
ww
4. Examples for Data structures
ww
5. The way of defining Algorithm is called Algorithmic strategy.

t t t t
6. The word Algorithm comes from the name of s Persian author Abu Jafar Mohammed
ee e e
i .iN
. N
ibnMussalKhowarizmi.
i .iN
. N i.iN
.
da

l a
l a l a
l a l a
l a
assaa testing,posteriori testing. aaddaassaa
7. Analysis of Algorithm and performance evaluation can be divided in to priori
a dd
a aassaa
w w P
. P
.like w w P
.. P
w www
8. Algorithm do functions search,sort ,insert,update,delete
ww ww
9. An algorithm that yields expected output for a valid input is called an Algorithmic
Pa

solution.
e et t eet t
l a
l i
a .iN
.N
Algorithm analysis. lala .iN
.N
10. An estimation of time and space of an Algorithm for varying input sizes is called
i l a
l i
a .iN
.
assaa 11. Big O is used to describe theaaworst
dd a as aaalgorithm.
s
case
aa a
dd s
a aa
s
w w P
12. Big Ω is used to describe P
. . the best case Algorithm. w
w P
.. P
wwww wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 4

13. Big Ө is used to describe the better case Algorithm.


e et t e et t
lalai .iN
.N l a
l a .ibeN
14. Linear search is also called sequential search.
i .N l a
l i
a .iN
.
assaa 16. Binary search is also calledaHalf s saa ssaa
15. In linear search Algorithm Elements need not sorted.
aa
ddinterval search.
a aadd aa
w w P P
. . can be done as Divide-and-conquer search
ww P P
. .algorithm.
wwww
17. The binary search algorithm
wwww

et
18. The formula for find index of middle element of the array mid=low+(high-low)/2

t t
19. Bubble sort is a simple sorting Algorithm.
ee eet t
lalai.iN
.N
20.
l l a.iN
.Nto get the final sorted list.
Insertion sort Algorithm uses n-1 number of ipasses
a l a
l i
a .iN
.
assaa 21. Two main measures for theaEfficiency s aofaan Algorithm are time and space. aassaa
s

.N
add a a a add
w w
22. The complexity of linear P P
. . search algorithm is O(n). w w P
.. P
www
23. Selection sort
w
is not a stable sorting Algorithm. wwww

l
assaa
a
l i
a .iN
25..Ne t
called memoization.
e lai
24. In dynamic programming, the technique of storing the previously calculated value is
t

P a adda a s l a
l i
a .iN e
The Ө notation in asymptoticevaluation represents
s aa
t
e t
.NAverage case.
P aa a
dd s
a aa
s l a
l i
a .iN
.
P
. . variables and operators .. P
sa
CHAPTER 5.w w w w
Python ww w
w
w w
1. python created by Guido Van Rossum.
w w
t t
2. Python released in 1991.
ee eet t
i .iNN is a general purpose programming
.Python i .iNN
.language. i.iN
.
da

l a
l a3.
l a
l a l a
l a
assaa 4. The version 3.x of pythonaadIDLE
da assa
is
aused to develop and run python code.aassaa
aadd
5. The expansionwofww P P
. . is Integrated Development Learning ww P
. P
.Environment.
ww w IDLE
w
w ww
6. In python programs can be written in two ways namely Interactive mode,
Pa

script mode.
eet t eet t
l a
l i
a .iN
.N lalai.iN
.N
7. Script mode is used to create and edit python source file.
l a
l i
a .iN
.
assaa 8. The interactive mode canaabeddused
aassaasaa simple calculator. aad a
d s
a aa
s
w
w P P
9. The prompt >>>indicates
ww ..PP
. . the interpreter is ready to accept instruction.
wwwware reusable code.
10. Python scripts wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 5

11. To create script in python press ctrl+N or File->new.


eet t eet t
lalai .iN
.N l a
l a .iN
.N
12. To execute python script Choose Run->Run module orpress F5.
i l a
l i
a .iN
.
assaa 13. To save a python scriptaFile->save
a aassaaor ctrl+s.
ddat run time. aa a
dd s
a aa
s
P
.. P
14. input() is used to enter
w w data
ww P
..P
15. print() isw wwwto display the result of the program onww
used
wscreen.
thew

et
16. Comma(,) is used as a separator in print() to print more than one item.
eet t eet t
lalai.iN
.N l a
l a .iN
.N
17. int() is used to convert string data as integer data explicitly.
i l a
l i
a .iN
.
assaa 18. In python comments begins ssahash
a symbol (#). ssaa

.N
aa a
with
a
dd line comment, multiline comment. add
a aa
19. Types of comments.P.P
are single P
.. P
w w ww
www
20. Python uses w
whitespaces such as spaces and tabs to wwwwprogram blocks.
define
21. Multiline comments should be begin with a set of ‘’’ ‘’’ (triple quotes).

l
assaa
a
l i
a .iN
.Neet t lai
components called as tokens.
dd
23. Tokens are classified asa5.
P a a s
a saa l a
l i
a .iN
.Neet t
22. Python breaks each logical line into a sequence of elementary lexical

P aa a
dd s
a aa
s l a
l i
a .iN
.
.. P .. P
sa
24. An identifierw w w w w
or object.
www wwww class, module
is a name is used to identify a variable, function,

eet
25. Identifier must not be a Python keyword.
t eet t
i .iN
.N i .iN
.N interpreter to recognize the lalai.iN
.
da

l a
l a26. Keywords are special words used byapython
l l a
assaa structure of program. aaddaassaa aadda s
a aa
s
ww P
27. Values and Variables P
. . used with operator are known as operands.
w w P
.. P
wwwoperator
28. An relational
w is also called as comparativew www
operator.
Pa

29. = is the simple Assignment operator.


ee t t eet t
l a
l i
a .iN
.N lalai.iN
.N
30. Literals are raw data given to a variable or constant.
l a
l i
a .iN
.
assaa 31. Ternary operator is known a a a
as s
a aa operator.
s
conditional
dd called the escape character. PPaaddaassaa
w w P
.. P
32. “\” is a special character also
ww ..
33. A Boolean wwww
can have any of two values such as true w
orw
ww
false.

eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 6

34. Python has fundamental data types such as Number, string, Boolean, tuple,
ee t t
list, and dictionary. eet t
lalai .iN
.N l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 36. Number data type supports aa aa
35. All data values in python are objects.
a ass a s
a s
ddinteger, floating point and complexPPnumbers.
dd
P
.. Paa .. aa
w w
ww enclosed in single quotes or doubleww ww
ww or triple
w
37. String datawtypes quotes

et
quotes.

eet t eet t
lalai.iN
.N
CHAPTER 6. Control Structuresla l i
a .iN
.N l a
l i
a .iN
.
assaa 1. Programs contain set of statements.
s saa ssaa

.N
aa ddaa a a ddaa
w
w P P P
. .that causes a jump of control from onewpart
w P
. .of the
wwwwis called controlstructures or controlwwstatement.
2. A program statement
program to another
ww

l a
l i
a .iN
. Neet t lai
3. Skip a segment or set of statements and execute another segment based on test

assaa 5. There are 3 important control


4. To execute a set of statements
P aa a s
a aa
s l a
l
multiple
ddstructures.
i
a .iN
of a condition is called alternative or branching.
.
times
Neet t
called iteration or
P
looping.
aadda ass l
aa a
l i
a .iN
.
.. P .. P
sa
w w ww
www
6. A sequential w is composed of a sequence ofw
statement www
statements.
7. Types of alternative or branching statements are simple if
t t
statement,if…elsestatement, if…elif statement.
e e e et t
i .iNN can be considered to be abbreviation
.elif i .iofN
.N i.iN
.
da

l a
l a l a
l a else…if l a
l a
assaa 9. if…elif…else statement aisadsimilar aa aa
8.
a s
a s
d to nested if statement. a
dd s
a s
P P
. . to 4 spaces. P
.. Paa
10.A indentationw ww ww
wwwis equal
wwww
Pa

11. A loop statement allows to execute a statement or group of statements


multiple times.
eet t eet t
l a
l i
a .iN
12..N la i.iN
.N such as while and for loop. lalai.iN
Python provides 2 types of looping structures
la .
assaa 13. print can have end, sepaasadparameters.
daa ssaa
a addaassaa
ww
14. end parameter can bePP
. . used to specify escape sequence likeww
‘\t’,P P
. .‘\n’ .
wwww wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 7

15. for loop is the most comfortable loop.


eet t eet t
lalai .iN
.N
16. for loop uses range().
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 17. range() generates a list aofadvalues
a ass astarting
a from start till stop-1.
dstring, list, dictionary etc. PPaadd aas saa
ww P
.. P
18. range() can take values from
w w..
19. The jumpw www in python is used to unconditionally
statement wwww transfer the control

et
from one part of the program to another.

eet t ee t t
20. There are 3 keywords to achieve jump statements in python such as break
lalai .iN
.N
,continue , pass.
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 21. break statement terminates ssaa containing it. s aa
s

.N
a add a a
the loop
aaddaa
ww P
.P
.skip ww P P
. .with next
wwww wwww
22. continue statement the remaining part of the loop and start
iteration.

l a
l i
a .iN
.Nee t lai
23. In python programming pass statement is a null statement.
t
assaa 25. Indentation plays vitalarole
P add a s
ina
l l i .iN
24. pass statement is used as placeholder .
a a .Neet
aa programming.
s
python
t

P aa a
dd s
a aa
s l a
l i
a .iN
.
.. P .. P
sa
ww ww wwww
w
w
CHAPTER 7. python functions w
w
1. Functions are group of related statements.
eet t ee t t
i .iNN that calls itself known as recursive
.Functions i .iN
.Nfunctions. i.iN
.
da

l a
l a2.
l a
l a l a
l a
assaa 3. Function blocks begins with
add
a aa
thes saa “ def” .
keyword
aa a
dd s
a aa
s
ww P
4. Function name followedP
. . by parenthesis (). ww P
.. P
w
w ww ww ww
5. The code block always comes after a colon (:).
Pa

6. The return statement exit a function.


eet t e et t
l a
l i
a .iN
7. N keyword should not used as function
.Python lalai.iN
.Nname. l a
l i
a .iN
.
assaa 8. Ablock within a block isacalled
add aassaa block.
nested
aadd aassaa
ww
9. When the first block P P
.indented
. ww
by a singletab, the second block P
. P
.indented by
ww w
double tab spaces.w www w

eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 8

10. Functions help us to divide a program into modules.


e t
e t eet t
lalai .iN
.N
11. Function arguments are 4 type
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 12. aas aa passed to a function in correct aassaa
s
Required arguments are the arguments
aadd aadd
positional order.
ww ..PP ww P
.. P
13. Keywordw www will invoke the function by theirwparameter
argument www names.

et
14. We cannot assure that how many arguments will be passed in that time
t t
asterisk (*) is used to define such arguments.
ee e et t
lalai.iN
.N
15.
l a
l ai
We can pass arguments in variable length.iN
.N
argument in two methods.
l a
l i
a .iN
.
assaa 16. Non keyword variable arguments ssaa ssaa

.N
a a a
dda are called tuples.
aaddaa
ww P P
. . length arguments . ww P
.. P
wwww
17. print() supports variable
w
w ww
18. Anonymous functions are called as lambda function.

l a
l i
a .iN
20..Neet lai
Lambda function access only globala
assaa 21. Any number of return statements
P a dd
a aass l
aarel i
a .iN
.Neet
19. Lambda function is used with the functions filter() , map() and reduce().
t
variables.
t
a allowed in a function.
P aaddaass l
aa a
l i
a .iN
.
P
. . is executed at run time. .. P
sa
22. Only one returnww ww
w w ww statement
wwww
23. Two types of scopes in python such as local scope and global scope.

eet eet
24. A variable declared inside the function body is known as local variable.
t t
i .iN
.N i .iN
.N i.iN
.
da

l a
l a25.
l a a
The formal arguments are local to function.
l l a
l a
assaa 26. A Global variable defined
aa ddaas saathe scope of any function/block. aassaa
outside
aa dd
w w P P P
. . to read and write a global variablewinside
w P
. . a function.
w www
27. We use global keyword
w www
28. We cannot modify the global variable without using global keyword.
Pa

29. abs() returns absolute value of a variable.


eet t eet t
l a
l i
a .iN
30..N l la .iN
.N
ord() returns ASCII value of Unicode icharacter.
a l a
l i
a .iN
.
assaa 31. chr() returns Unicode character
aadda assaagiven ASCII value.
for
aa a
dd s
a aa
s
32. bin() returns thew
w P P
. . value for given integer. w
w P
.. P
wwww wwww
binary

eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 9

33. type() returns the data type for object


eet t eet t
lalai .iN
.N l a
l a .iN
.N
34. id() returns the address of the object in memory.
i l a
l i
a .iN
.
assaa 35. min() returns the minimum aa a ass
valueaain a list
ddvalue in a list. aa a
dd s
a aa
s
P
.. P
36. max() returns the maximum
ww ww P
..P
wwww
37. sum() returns the sum of values in a list. wwww

et
38. format() returns the output based on the given format.
e t
e t eet t
lalai.iN
.N l a
l a .iN
.N
39. round() returns integer nearest to its output.
i l a
l i
a .iN
.
assaa 40. pow() returns the computation ssaa(a**b) ssaa

.N
aad aa of
aa aa
dd in a
d before using all mathematicalPfunctions
ww P
.P
41. We have to import .math module
w
w .. P
program. wwww wwww
42. floor() returns the largest integer less than or equal to variable value.

l a
l i
a .iN
.Nee t t lai
assaa 45. The value returned by aafunction
44. sqrt() returns the square

P
root
a a a
of
ss aal a
l i
a
variable
.iNN eet
.value.
t
43. ceil() returns the smallest integer greater than or equal to variable value.

dd used as an argument for anotherP aa a a


dd ins
function
aa
s l a
l i
a .iN
.
P
. . composition. .. P
sa
ww w w
a nested manner is called
wwww
ww
46. When a function call itself is known as recursion.
w
w
eet
47. Recursion works like a loop.
t eet t
i .iN
.N i .iN
.N code. i.iN
.
da

l a
l a48. Recursive function is called by someaexternal
l l a l a
l a
assaa 49. sys.setrecursionlimit(limit_value)
a adda assaachange the limitation value of recursion.
a addaa ssaa
w w..P P w w P
.. P
wwww wwww
Pa

CHAPTER 8. Strings and Strings manipulation


t t
1. String is a data type in python.
e e eet t
l a
l i
a .iN
2. .String lalai.iN
N is used to handle Array of characters. .N l a
l i
a .iN
.
assaa 3. String is a sequenceof Unicode
aa aas saa
dd characters. aa a
dd s
a aa
s
w w PP P
. . single, double or triple quotes. ww. . P
wwww
4. String is enclosed within
wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 10

5. Strings areimmutable.
eet t eet t
lalai .iN
.N l a
l a .iN
.N
6. Multiline string enclosed within triple quotes.
i l a
l i
a .iN
.
assaa 7. Positive subscript starts from
aa a0.ss
a
dbyd n-1
aa
aa dda assaa
P
.. P
8. The last character assigned
w w w
w P
..P
ww assigned from the last character towfirst
wwindex
9. The negative wwwcharacter in reverse

et
order begins with -1

eet t
10. The index value is called as subscript. eet t
lalai.iN
.N l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 12. We can remove entire stringdel aa aa
11. The subscript can be positive or negative integer numbers.
ss ss

.N
aa a a
dd command. add
a aa
w w P
..P w w P
.. P
wworwwmore strings is called as concatenation.
13. Joining two wwww
14. The ‘+’ operator is used to concatenate strings in python.

l a
l i
a16.
.Ne
The
et t
operator
lai
‘+=’ l
assaa 17. The repeating operator aisad‘*’daisasused
is

P
used to append a
l i
a .iN e et t
15. Adding more strings at the end of existing strings is known as Append.
.iN .Nstring with an existing string. lalai.iN
saa to display a string in multiple number
a new

P aa a s
a
dd of
aa
s
.
.. P .. P
sa
times.
ww w w ww ww
ww
18. Slice is a substring of a main string.
w w
eet
19. Slicing operator is [].
t eet t
i .iN
.N i .iN
.N i.iN
.
da

l a
l a20.
l a a
Stride is third argument in slicing operation.
l l a
l a
assaa 21. The formatting operatoraa%ddisaaused ssaato construct strings.
aa a
dd s
a aa
s
w w P P P
. .is used as placeholder in format(). ww. . P
w w ww
22. The curly braces {}
ww ww
23. len() returns the length os the string.
Pa

24. capitalize() is used to capitalize the first character of the string.


eet t eet t
l a
l i
a .iN
25..N
Membership operators are ‘in’and ‘not
lalai N
.N
.iin’ l a
l i
a .iN
.
assaa 26. Escape sequence starts awith
add a assaa (\).
backslash
aa a
dd s
a aa
s
ww..PP w
w P
.. P
wwww
27.%c denotes character.
wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 11

28. %s denotes string.


eet t eet t
lalai .iN
.N
29. %u denotes unsigned decimal integer.
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 30. %o denotes octal integer. aadd aassaa
aa a
dd s
a aa
s
w w
31. %f denotes floating P P
. .point numbers. ww P
..P
w w ww w
w ww
32. %e or %E denotes Exponential notation.

et
t t t t
33. %g or %G denotes short numbers in floating point or exponential
ee ee
lalai.iN
.N
notation
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa ssaa ssaa

.N
CHAPTER 9. Lists,.P a a aa
ddsets and dictionary add
a aa
w w .P
tuples,
w
w P
.. P
wwwwis sdata type
1. A list in python wwww
2. list is an ordered collection of values enclosed within square brackets [].

l a
l i
a N e
.list et t lai
3. Each value of list is called aselement.
.4.iN
assaa 5. for loop is used to accessaaallddelements
contains another list

P
as an l
elementa
l ai .
i N
. Neet t
aassaa in a list one by one.
is called as nested list.

P aa a
dd s
a aa
s l a
l i
a .
iN.
.. P .. P
sa
ww
wwto add a single element. ww
6. append() isw w
used wwww
7. extend() is used to add more than one element to an existing list.
e et t eet t
8. insert() is used to insert a new element at a particular location.
i.9.iNN
.del i . N
. N i. N.
da

l a
l a l a
l a i l a
l a i
assaa 10. remove() is used to delete ssaa s aa
s
statement is used to delete known elements
aa da a
dunknown aa a
dd a
ww..PP element.
ww P
.. P
wwwtowdelete last element of a list.
11. pop() is used wwww
Pa

12. Clear() is used to delete all the elements but retains the list.

eet t
13. range() is used to generate series of values. eet t
l a
l i
a.14.iN
.N lalai.iN. N l a
l i
a .
i N
.
assaa 15. list() is used to create aalist s aa s aa
range() has 3 arguments such as start,stop,stepvalue.
aa s
ddin python. a
dd a s
P
..P a P
.. Paa
ww w
w
wwwwa copy the list.
16. copy() returns wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 12

17. count() returns the number of similar elements present in a list.


ee t t eet t
lalai .iN
.N l a
l a .iN
.N
18. index() returns the index value of the first recurring element.
i l a
l i
a .iN
.
assaa 19. reverse() is used to reverse
a a a a s
dthedlist
aa of the element in the list.
thesorder
aa a
dd s
a aa
s
P
..
20. sort() sort the element
w w Pin
w w ..P
P
21. sort() willwwwwthe original list.
affect wwww

et
22. If reverse is set as True , list sorting is in descending order.
eet t eet t
lalai.iN
.N l a
l a .iN
.N
23. A number of values separated by comma and enclosed within parenthesis is
i l a
l i
a .iN
.
assaa 24. Iterating tuple faster thanaadthedaalist.
ssaa aa
tupledatatype.
ss

.N
add
a aa
w w P
.. P w
w P
.. P
wwwofwa tuple are unchangeable.
25. The elements wwww
26. The elements of a tuple enclosed within paraenthesis.

l a
l i
a .iN
.Neet t lai
27. tuple() is used to create tuples from a list.

assaa 29. Tuple assignment is powerful


28. Tuple with one element

P a
is
a
called
a ass aal a
l i
a .iN
singleton
e
dd feature in python.
et t
.Ntuple.
P aa a
dd s
a aa
s l a
l i
a .iN
.
.. P .. P
sa
ww w w
wwwwdefined inside another tuple is called w
30. A tuple can be
wwwtuple.
nested
31. The for loop will be useful to access all the elements in a nested tuple.

e et t eet t
32. A set is immutable and unordered collection of elements without duplicates.
i .iN
.N i .iN
.Nand eliminating duplicate lalai.iN
.
da

l a
l a l a
l a
assaa elements. aa aa
33. set() is used to include membership testing
dda ass dda as s
P Pa a
. . all the elements separated by comma P Paa
.within
.
34. set is created byw w ww
curly brackets.ww w w placing
ww ww pair of
Pa

35. set() is used to convert as set.


ee t t eet t
l a
l i
a .iN
.N lalai.iN
36. union()is used to join two sets in python.
.N l a
l i
a .iN
.
assaa 37. intersection() is used toaaintersect
aa ssatwo
a sets in python.
ddifference
d aa a
dd s
a aa
s
38. difference() is used.P
.P P
.. P
w w to do operation.
w
w
wwww wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 13

39. symmetric_difference() is use to return elements in two sets exclude


eet t
common elements in two sets. eet t
lalai .iN
.N l a
l ai .iN
.N l a
l i
a .iN
.
assaa 41. Dictionary elementsenclosed aa aa
40. A dictionary is a mixed collection of elements.
aas s
dd within curly braces{}. a
dd s
a s
P
.. Paa P
..Paa
aw
w w ww
42. The keys w
inw w dictionary is separated by a colon
python www
(:w
)

et
43. Dictionary is a datastructure.

e et t eet t
lalai.iN
.N 10. Python classes andlobjects al i
a .iN
.N l a
l i
a .iN
.
assaa 1.Python is an object oriented s aa s aa
CHAPTER
s s

.N
aa aa
ddprogramming language. aa a
dd a
w w P
..P ww P
.. P
www are the features of object orientedwprogramming.
2. classes andw
objects www
3. class is the main building block in python.

l a
l i
a
e et t lai
4. object is a collection of data and functions.
.iN
assaa 6. All string variables are object
5.

P aa aas aa
s
.iN
N are also called as instances oflaalaclass
.ojects i
ddof class string.
eet t
.Nor class variable.
P aa a
dd s
a aa
s l a
l i
a .iN
.
.. P .. P
sa
ww w w
wwww
7. In python class is defined by using the keyword class.w www
8. Every class has a unique name followed by a colon(:)

eet t eet t
9. Variables defined inside a class are called as class variable.
i .iN
.N i .iN
.N i.iN
.
da

l a
l a l a
l a l a
l a
assaa 11. class variable and methods aa aa
10. functions in a class is called as methods.
aas s
ddare together known as members ofP dd aa ss
..P Paa theaclass.
.. P a
ww ww
12. The classw www should be accessed through objects
members www
orw
instance of class.
Pa

13. A class can be defined anywhere in a program.

eet t ee t t
14. The process of creating object is called as class instantiation.
l a
l i
a .iN
.N lalai.iN
.N l a
l i
a .iN
.
assaa 16. The class method mustahave aa aa
15. A class member can be accessed by using object with a dot(.) operator
aas s
ddfirst argument named as self. PPaadd aass
P
.. P a ..
ww ww
wwwwin python called as init which acts aswwawconstructor.
17. Special function w

eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 14

18. init function should begin and end with double underscore.
e et t eet t
lalai .iN
.N l a
l a .iN
.N
19. initfunction can be defined with or without arguments.
i l a
l i
a .iN
.
assaa 20. initfunction is used to initialize
aa a as saaclass variables.
the
dd executed when an object is created.
a a a
dd s
a aa
s
P
.. P
21. init function gets automatically
w w ww P
..P
22. In pythonw www () is used as destructor.
__del__ wwww

et
23. __del__ ()gets automatically executed when an object exit from the scope.
et
e t eet t
lalai.iN
.N l a
l a .iN
.N
24. Thevariables defined inside the class is public by default.
i l a
l i
a .iN
.
assaa 25. A variable prefixed withaadouble
ss aunderscore
a aa
becomes private variable. ss

.N
ddaa a addaa
ww P
..P ww P
.. P
CHAPTERw www
11.Database concepts wwww

l a
l i
a .iN
.N ee
assaa 3.database.
t t lai
1. A database is an organized collection of data.

P aa a ass
A DBMS is a software that allows
dd
l a
l i
a .iN
.Nee t
2. Database is repository collection of related data. t
ausa to create, define and manipulate aassaa
P aa dd
l a
l i
a .iN
.
.. P .. P
sa
ww ww w
w
wwmajor components
ww
4. The database management system can be divided intow w
five
such as hardware, software, data, methods, data access language.

t t
5. Examples for popular DBMS is Dbase,FoxPro.
ee e et t
i .iN
.Table i .iN
N is the entire collection of relatedlaladata.N i.iN
.
da

l a
l a6. in one table referred to as a file. laa
l
assaa 7. Each row in a table represents
a add aa
a
s saa
record.
a add a as aa
s
w w P
.. P ww P
.. P
w www
8. Each table column represents a field.
ww ww
Pa

9. A table is known as relation.

t t
10. A row is known as tuple.
ee eet t
l a
l i
a .iN
11..N
A column is known as Attribute. aa
l l i.iN
.N l a
l i
a .iN
.
assaa 12. A data model describesathedd
a aas
datasaa be represented from a software. aassaa
can
aadd
13. Hierarchical w ww PP
.was
. developed by IBM. w w P
.. P
www wwww
model

eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 15

14. Hierarchical data model represents parent-child relationship.


eet t eet t
lalai .iN
.N l a
l a .iN
.N
15. Hierarchical data model is mainly used in main frame computers.
i l a
l i
a .iN
.
assaa 16. The relational databaseamodel
a aassaafirst proposedby E.F.Codd in 1970 aassaa
was
dd from hierarchical data model. PPaadd
17. A network model is.P
. P
extended ..
w w ww
18. Network wwwwrepresents the data in many-to-manyww
model
ww
relationships.

et
19. Networkdata model is easier and faster access the data.
et
e t eet t
lalai.iN
.N l a
l a .iN
.N
20. Entity Relationship model was developed by Chen in 1976.
i l a
l i
a .iN
.
assaa 21. In ER model relationshipaadaredaacreated
ssaa by dividing the objects in to entity. ssaa

.N
add
a aa
w w P
..P
22. Object oriented model stores data in the form of objects.
w
w P
.. P
wwww is used in Geographic Informationww
23. Object datamodel
ww (GIS),
System
engineering design and manufacturing,scientificexperiments

l a
l i
a .iN
.Neet t
management system. lai
assaa 25. Application programmeraaisddinvolved
l a
l i
a .iN
.Neet t
24. Database Administrator is the one who manages the complete database

aassaa in developing and designingaatheddaparts


assaa
l a
l i
a .iN
.
.P
. P .P
. P
sa
of DBMS.
ww ww ww w w
26. End usersw
w ww
are the one who store, retrieve, update and delete data.
27. Database designers are responsible for identifying the data to be stored in
eet t eet t
the database for choosing the appropriate structure to represent and store the
i .iN
.N i .iN
.N i.iN
.
da

l a
l adata. l a
l a l a
l a
assaa a
28. DBMS users are 4 typesasuch
a as saa
aa a
dd as Database Administrator, Application
dd s
a aa
s
programmer, Endw w P
users,P
. . Databasedesigners. ww P
.. P
29. Database wwww
normalization wwww
was first proposed by Dr.Edgar F Codd
Pa

30. Database normalization is used to reduce data redundancy and data


eet t eet t
l a
l i
a .iN
. N
integrity
lalai.iN
. N l a
l i
a .iN
.
assaa 32. Relational model invented
31. Father of relational database
aaddaa ss
is aa
E F Codd.
aa a
dd s
a aa
s
ww ..PP by E F Codd
w
w P
.. P
33. Relationalw w ww first created by E F Codd
algebra wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 16

34. Language used to query the database tables using SQL


eet t eet t
lalai .iN
.N
35. Relational algebra operations are
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa aa aa
UNION,INTERSECTION,DIFFERENCE,CARTESIAN PRODUCT
aass a
ddboth two table elements without duplicates.
dd s
a s
PP aa
36. UNION operations returns
.. ..PPa a
ww ww
wwww operation returns common elements
37. INTERSECTION www inw
two tables.

et
38. DIFFERENCE operation returns all elements that are in table A not in table
B.
eet t eet t
lalai.iN
.N
39.
l
CARTESIAN PRODUCT return elements a
l i
a .iN
.Nthat are cross product of relation lalai.iN
.
assaa A and B. ssaa s saa

.N
a addaa aadd a a
40. Select symbol inw
w P P
. . algebra is σ
relational ww P
.. P
wwww wwww

l a
l i
a .iN
.Nee t lai
CHAPTER 12. Structured Query Language
t
assaa 2. The later SQL was released
P aaddinaass
2008
l l i .iN
.Neet t
1. SQL is standard programming language to access and manipulate databases.
a a
aaand named as SQL 2008.
P aaddaass l
aa a
l i
a .iN
.
.. P .. P
sa
ww
3. RDBMS stands for Relational
ww
DataBase Management System.
www
4. Examples for
w
RDBMS package are Oracle, MySQL, w www
MS SQL server, IBM
DB2 and Microsoft access.
eet t
5. A field is a column. eet t
i.6.iN
.ANrecord is a row. i .iN
.N i.iN
.
da

l a
l a l a
l a l a
l a
assaa 7. A table is a collection ofarelated
a aassaa
dd data. aa a
dd s
a aa
s
ww P
.. P ww P
.. P
8. WAMP stands wwww wwww
for Windows, Apache, MySQL and PHP.
Pa

9. SQL Commands are divided in to five categories.

eet t eet t
10. Two types of DML is Procedural DML, Non-Procedural DML.
l a
l i
a .iN
.N lalai.iN N the access of data stored in lalai.iN
.control .
assaa a database. s aa s aa
11. DCL is a programming language used to
ddaa s dd aa s
P
..Pa a ..PP aa
ww ww
wwww wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 17

12. Grant command is used to grant permission to one or more users to perform
eet t
specific task. eet t
lalai .iN
.N l a
l i
a N
.Naccess permission given by Grant lalai.iN
.ithe .
assaa permission. aa aa
13. Revoke command is used to withdraws
dd aass dd aass
P Pa a P P
.is.used to save any transaction into the database
.. aa
ww ww
www wwww
14. Commit command
permanently.w

et
15. Roll back is used to restore the database to last commit state.
e et t eet t
lalai.iN
.N l a
l i
a .iN
.N
16. save point is used to save a transaction temporarily.
l a
l i
a .iN
.
assaa 17. DQL is used to query and s saadata from a database. ssaa

.N
a add aa
retrieve
add
a aa
18. select commandw
w P
.P
is .used ww
to display the records from the table. P
.. P
19. Keywordsw www
have special meaning. wwww

l a
l i
a .iN
.Nee t lai
20. Commands are instruction given by the user to the database as statements.
t
assaa 22. Arguments are the values.
P a addaa ssaal l i .iN
.Neet t
21. Clauses begin with a keyword and consist of keyword and argument.
a a
P aa a
dd s
a aa
s l a
l i
a .iN
.
P
. . by using CREATE TABLE command. .. P
sa
ww
23. A table can be created
ww w w ww
ww
24. constraint is a condition applicable on a field or set w
ofwfields.
25. Constraint could be either on table constraint, column constraint.
eet t eet t
i .iN
.N i .iN
.N i.iN
.
da

26. Based on database integrity constraint classified as unique, primary key,


l a
l a l a
l a l a
l a
assaa ssaa s aa
s
Default, check constraint.
a a aa
dthat a
d no two rows have the same value.PPaadd a
P
.. P
27. Unique constraint ensures
ww w w..
28. Primary wwwiswused to uniquely identify a record. wwww
key
Pa

29. Default constraint is used to assign a default value for the field.

eet t eet t
30.Check constraint may use relational and logical operators for condition.
l a
l i
a .iN
.N lalai.iN
.ofNfields of the table known as lalai.iN
.
assaa table constraint. s aa s aa
31. When the constraint is applied to a group
dda a s dd aa s
PP a a
. .is used to removes one or more recordswwfrom P Paa
. . the table.
w w
wwww
32. DELETE command
wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 18

33. To alter the table structure by using the ALTER command.


eet t eet t
lalai .iN
.N l a
l a .iN
.N
34. TRUNCATE command is used to delete all rows from the table but retains
i l a
l i
a .iN
.
assaa aa aa
the Table structure.
aa
dusedss
d to remove table from the database. a
dd s
a s
35. DROP table commanda isa aa
w w..P P ww P
..P
36. DISTINCT ww w w is used along with SELECT command
command w www to eliminate

et
duplicate rows in a table.

t t
37. ALL keywords retains duplicate rows.
ee eet t
lalai.iN
.N
38.
l
BETWEEN and NOT BETWEEN keywords a
l i
a .iN
.N defines a range of values. lalai.iN
.
assaa 39. WHERE clause is usedaatoddsearch
aassaacondition comes along with SELECT ssaa

.N
aadd aa
statement. ww P
..P ww P
.. P
40. WHERE w wwwuse Logical operators (i.e.) AND, OR,
clause wwww NOT

l a
l i
a .iN
.Nee t lai
41. ORDER BY clause is used to sort the data in ascending or descending order.
t
assaa 43. ORDER BY clause doesaanot
P dd aas s
affect
l l i .iN
.Neet t
42. By default ORDER BY sort the data in ascending order.
a a
aathe original table
P aa a
dd s
a aa
s l a
l i
a .iN
.
P
. . to include NULL values. .. P
sa
w w
44. The * is used to count
ww ww
45. MySQL isw w
a DataBase Management System. wwww
46. The various components of SQL are DDL, DML, DQL, TCL, and DCL.
eet t eet t
i .iN
.N .iN
.N
47. The original version of SQL developed at IBM’s research centre .
i i.iN
.
da

l a
l a l a
l a l a
l a
assaa 48. SQL originally called asaaSequel
ddaassainaearly 1970.
aad a
d s
a aa
s
w w P
49. SQL standard releasedP w P
.. P
. . by American National StandaradwInstitute.
50. WAMP isw aw
ww
variation of LAMP. wwww
Pa

51. LAMP used to serve live websites.


eet t eet t
l a
l i
a .iN
.N lalai.iN
.N
52. LAMP is used for Web development and internal testing.
l a
l i
a .iN
.
assaa 53. CRUD stands for Create,Read,Update,Delete.
aaddaas aa
s
aa a
dd s
a aa
s
ww P
..P w
w P
.. P
wwww wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 19

CHAPTER 13. PYTHON and CSV files


eet t eet t
lalai .iN
.N
1. A csv is a human readable text file.
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 2. The expansion of CSV isaaCommaa
dd s
a aSeparated
s a Values.
aa a
dd s
a aa
s
P
..
3. Excel is a binary file.
ww P ww P
..P
wwwwstore Charts or Graphs.
4. CSV file cannot wwww

et
5. File saved in excel cannot be opened in text editor.
ee t t eet t
lalai.iN
.N l a
l a .iN
.N
6. CSV file save data but does not contain formatting, formulas,macros etc.
i l a
l i
a .iN
.
assaa 7. A CSV file is a flat file. aaddaassaa ssaa

.N
add
a aa
P
..P
8. CSV files used in e-commerce
ww applications.
w w P
.. P
9. We have towwww CSV module then only we can dow
import www operation on
several
CSV files.

l a
l i
a .Neet t lai
assaa 12. open() is used to open aaafile.
11. The default reading is

P
text
dd
mode.
aa ssaal a
l i
a .Neet t
10. Two ways to reading a CSV file such as reader() , Dict Reader class .
.iN .iN
P aa a
dd s
a aa
s l a
l i
a .iN
.
.. P .. P
sa
w w ww
wwww
13. open() returns a file object called as handle.
wwww
14. Syntax for csv.reader is csv.reader(fileobject,delimiter,fmtparams)

eet t e t
e t
15. A dialect describes the format of the csv file that is to be read.
i .iN
.N i .iN
.N i.iN
.
da

l a
l a l a
l a l a
l a
assaa 17. A dialect is a class of CSV aa aa
16. By default skipinitialspace has a value false.
aass
ddmodule. a
dd s
a s
. P
. Paa . P
. Paa
ww ww
wwwwis used to remove space after delimiter.
18. skipinitialspace
wwww
Pa

19. The delimiter (|) pipe is considered as column separator.

eet t eet t
20. To sort by more than one column we can use itemgetter with multiple
l a
l i
a .iN
.N
indices
lalai.iN
.N l a
l i
a .iN
.
assaa 21. csv.reader works with list/tuples.
aaddaas saa
aa a
dd s
a aa
s
22. csv.DictReader ww P
.P
.csv.DictWriter works with dictionary.w
w P
.. P
wwww wwww
and

eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 20

23. DictReader() gives OrederedDict by default in its output.


eet t eet t
lalai .iN
.N l a
l a .iN
.N
24. writerow() is used to write one row at a time.
i l a
l i
a .iN
.
assaa 25. writerows() is used to a a aassaathan one row at a time.
write More
dd\r ,\n as line terminator. aa a
dd s
a aa
s
26. Python CSV module
ww P
.. P
accepts
w
w P
..P
ww
27. Python has
ww collector to clean up unreferenced
a garbage wwwwobjects.

et
28. The expansion of CRLF is Carriage Return and Line Feed.
eet t eet t
lalai.iN
.N
29. next() is used to skip a row.
l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 30. Adding a new row at theaaend ofssaafile is called appending a row. aassaa

.N
a a the
dd data. add
a
P
..
31. writerow() takes one
w w P
dimensional
ww P
.. P
ww two dimensional data.
wwtakes
32. writerows() wwww

l a
l i
a .iN
.Neet t lai
CHAPTER 14. Importing C++ programs in Python

assaa 1. Python acts as both scripting


P aa a s
and
a
l a
l i
a
ageneral
s
.iN
.Neet t
a purpose language.
dd or glue language. P aa a
dd s
a aa
s l a
l i
a .iN
.
.. P .. P
sa
2. Python is mostly used as scripting
w w ww
www typed language.
3. Python is aw
dynamic wwww
4. Python is typically interpreted language.
eet t eet t
i .iN
.N .iN
.N
5. Python uses automatic garbage collection.
i i.iN
.
da

l a
l a l a
l a l a
l a
assaa 6. MinGW refers to set ofruntime
aadd aassaa files.
header
aa a
dd s
a aa
s
w w P
. P
7. MinGW-W64 is the.best compiler.
ww P
.. P
wwww
8. MinGW allows to compile and execute C++ programsw
w ww through
dynamically
Pa

python program using g++.

eet t
9. g++ is a program that calls Gnu C Compiler.
e t
e t
l a
l i
a .iN
.N lalai.iN Ncls command.
.use l a
l i
a .iN
.
assaa 11. The dot (.) operator is used aa aa
10. To clear the screen in command window
a ass
ddto access the function. a
dd s
a s
PP aa
. . is argv. P
.. Paa
w w w w
wwww
12. Variable in sys module
wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 21

13. OS module allows you to interface with the windows operating system where
eet t
python is running on. eet t
lalai .iN
.N l a
l i
a .iN
.ofNtwo elements opts, args. l a
l i
a .iN
.
assaa 15. Importing C++ programaainddpython
aassaais called wrapping. aa
14. getopt() method returns value consisting
ddaass
..PP ..P Paa
w w ww
wwwfor
16. A framework w interfacing python and C++ is Boost. wwww

et
17. SWIG for both c and c++.

eet t eet t
18. Application Programming Interface for interfacing with c programs.
lalai.iN
.N l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 20. __name__ contains python aa aa
19. Ctypes for interfacing with c programs.
s s ss

.N
aa a a
ddfile name. add
a aa
ww P
..P w
w P
.. P
wwww wwww
CHAPTER 15. Data manipulation through SQL

l a
l i
a
eet t lai
N is a relational database management
.SQLite
assaa 3. cursor is used for performing
2.

P aa a assaal a
l i
a
e
ddall SQL commands.
et
1. A database is an organized collection of data.
.iN .iN
t
.Nsystem.
P a dd
a aass l
aa a
l i
a .iN
.
.. P .. P
sa
4. We can defineww w w
w
w command with a triple quoted string
wwSQL wwwinwpython.
5. If the table column is empty, the value 1 will be used for integer primary key
column.
eet t e t
e t
i .iN
.The i .iN
N cursor is a control structure to traverse .Nover the records from the result lalai.iN
.
da

l a
l a6.
l a
l a
assaa set. a adda as saa
aad daas aa
s
w w P P
7. SELECT is the most. .commonly used statement in SQL.
w w P
.. P
wwwwis used to fetch all rows from the table.
8. fetchall() method wwww
Pa

9. fetchone() method returns the next rowof a query result set.


ee t t eet t
l a
l i
a .iN
.N lalai.iN
.N
10. fetchmany() method is used to return next number of rows of the result set.
l a
l i
a .iN
.
assaa 11. The DISTINCT clauseaisadused aassaaavoid duplicate values.
to
dto extract only those records that fulfil
a add aassaa
12. The WHERE clause
ww P
..Pis used
ww P
.. P the
wwww
specified condition. wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 22

13. The aggregate functions are COUNT, MAX, MIN, SUM, and AVG.
eet t eet t
lalai .iN
.N l a
l a .iN
.N
14. The ORDER BY clause can be used along with the SELECT statement to
i l a
l i
a .iN
.
assaa aa aa
sort the data.
aas s
ddfilter data based on group functions.PPaadd a as s
PP
15. HAVING clause is used
.. a ato
..
ww ww w w
wwin a table satisfying
16. The COUNT w
w () method is used to return number of ww
rows

et
the criteria.

t t t t
17. COUNT () returns 0 if there were no matching rows.
ee ee
lalai.iN
.N
18.
l a
l i
a .iN
The master table holds the key information .Nabout your database tables called lalai.iN
.
assaa sqlite_master. s saa s saa

.N
aadd aa aadd aa
19. ‘AND’ and ‘OR’ w PP
. . are used to filter the records based
operators
w w w P P
.on. more than
wwww
one condition. wwww
20. The path of a file can be either represented as ‘/’ or ‘\’ in python.

l a
l i
a
eet t lai
.NSQL commands executed using cursor
assaa 23. CD stands for Change aDirectory.
P addaas aa
s l a
l i
a N eet
.object
t
21. execute() method is used to execute the SQL commands.
.22.iN .iN only.

P aa a
dd s
a aa
s l a
l i
a .
iN.
.. P .. P
sa
ww ww
wwww wwww
CHAPTER 16. Data visualization using PYPLOT
eet t eet t
1. Data visualization is the graphical representation of information and data.
i.2.iNN
.matplotlib i . N
. N i. N.
da

l a
l a l a
l a i l a
l a i
assaa 3. Scatter plot shows the data s saa s aa
s
is the most popular data visualization library in Python
aa aa
ddas a collection of points. aa a
dd a
ww..P P ww P
.. P
wwwwthedata based on five summary points.wwww
4. Box plot shows
Pa

5. Pipis a management software.

ee t t
6. A dashboard is a collection of resources. eet t
l a
l i
a .iN
.Info a i.iN
N graphics is the representation oflalinformation
.N in a graphic format. l a
l i
a .iN
.
assaa 8. A line chart is a type of chart s aa s aa
7.
aa s
ddwhich displays information as a series aa s
P a a P aofdd
a
called markers. w ww . .P ww . . P points

ww w wwww

eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 23

9. Bar chart shows the relationship between a numerical variable and a


ee t t
categorical variable. eet t
lalai .iN
.N l a
l i
a .iN
.N l a
l i
a .iN
.
assaa 11. Usage variable is used toaadassign aa aa
10. plt.bar() is used to create bar chart
a ass a
d values to the lables specified. PPaadd s
a s
w w P
.. P ww..
wwwwis used to specifies lables for the bars.wwww
12. labels variable

et
13. Bar graph and Histogram are the two ways to display data.

et
e t ee
14. plt.pie() function is used to make a pie chart.t t
lalai.iN
.N l a
l i
a N.Nfor 2D graphics.
.used
i l a
l i
a .iN
.
assaa 16. F5 function key is usedatoadrun aa aa
15. matplotlib.pyplot is a python package
ss ss

.N
aa
d the module. add
a aa
w w P
.. P ww P
.. P
EXPANDEDw
www FOR FOLLOWING ABBREVIATIONS.
FORM wwww

l
assaa
a
l i
a
1.
2.
.iN
.N
3.
4.
5.
eet
ADT
t
CDT
LEGB
GUI
IDE
-
-
-
-
-
P
lai
aa
ABSTRACT DATA TYPE
CONCRETE DAT TYPE

a
dd a aa
s l l i
a .iN
.Neet t
LOCAL ENCLOSED GLOBAL BUILTIN
a
GRAPHICAL USER INTERFACE
s
INTEGRATED DEVELOPMENT ENVIRONMENT
P aa a
dd s
a aa
s l a
l i
a .iN
.
6. IDLE
..
- P ..
INTEGRATED DEVELOPMENT LEARNING P
sa
w
w ww
ww w wwww
ENVIRONMENT
7. WAMP w - WINDOWS APACHE MYSQL PHP
8. DDL - DATA DEFINITION LANGUAGE
9. DML - DATA MANIPULATION LANGUAGE
eet t
10. TCL -
eet t
TRANSACTIONAL CONTROL LANGUAGE
i .iN
.N i .iN
.N i.iN
.
da

l a
l a 11. DCL -
a a
DATA CONTROL LANGUAGE
l l l a
l a
assaa 12. DQL
13. SQL
-
-
add
a assaa
DATA QUERY LANGUAGE
a
STRUCTURED QUERY LANGUAGE
aa a
dd s
a aa
s
14. DBA -
w
w P
.. P
DATABASE ADMINISTRQATOR.
ww P
.. P
15. DBMS
16. RDBMS wwww
-
- wwww
DATABASE MANAGEMENT SYSTEM
RELATIONAL DATABASE MANAGEMENT SYSTEM
Pa

17. ER - ENTITY RELATIONSHIP


18. ANSI - AMERICAN NATIONAL STANDARD INSTITUTE
eet t eet t
l a
l i
a .iN
.N
19. CSV
20. XLS
-
-
lala
eXceL Sheets .iN
.N
COMMA SEPARATED VALUES
i l a
l i
a .iN
.
assaa 21. API -
aassaa
APPLICATION PROGRAMMING INTERFACE
aadd aa a
dd s
a aa
s
22. SWIG
23. MinGW
-
-ww P
..PMinimalist GNU for Windows w
w P
SIMPLIFIED WRAPPER INTERFACE GENERATOR.
.. P
24. HTML wwww
- wwww
HYPER TEXT MARKUP LANGUAGE

eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N
wwww wwww
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 24

25. PC - PERSONAL COMPUTER


e t t
26. GIS
e -
e t t
GEOGRAPHIC INFORMATION SYSTEM
e
lalai .iN
.N
27. GCC -
l a
l i
GNU C Compiler
a .iN
.N l a
l i
a .iN
.
assaa aa aa
28. CRUD - Create Read Update Delete
29. CD - a
dd s
a s
Change Directory a
dd s
a s
P
.. Paa P
..Paa
w
w ww
wwww wwww
J.SASIREKHA M.sc,M.Phil(CS)

et
et
e t eet t
PG ASST IN COMPUTER SCIENCE AND COMPUTER APPLICATIONS

lalai.iN
.N l a
l i
a .iN
.N HR SECSCHOOL l a
l i
a .iN
.
assaa aa aa
SAIGURUJI MATRICULATION
s s ss

.N
a
K.V.KUPPAM a a a
dd DISTRICT
,VELLORE add
a aa
w w P
.. P ww P
.. P
wwwwMail ID – jsasirekha78@gmail.com wwww

l
assaa
a
l i
a .iN
.Neet t

P
lai
aa a
dd s
a aa
s l a
l i
a .iN
.Neet t

P aa a
dd s
a aa
s l a
l i
a .iN
.
.. P .. P
sa
w
w ww
wwww wwww
eet t eet t
i .iN
.N i .iN
.N i.iN
.
da

l a
l a l a
l a l a
l a
assaa add
a aassaa
aa a
dd s
a aa
s
w
w P
.. P ww P
.. P
wwww wwww
Pa

eet t eet t
l a
l i
a .iN
.N lalai.iN
.N l a
l i
a .iN
.
assaa aa a
ddassaa
aa a
dd s
a aa
s
ww P
..P w
w P
.. P
wwww wwww
eet t e e t t
.NN Kindly send me your study materials to our .NN padasalai.net@gmail.com
email id - J.SASIREKHA M.sc,M.Phil(CS)
.N

You might also like