Professional Documents
Culture Documents
12th Computer Science One Marks Question Paper English Medium PDF Download
12th Computer Science One Marks Question Paper English Medium PDF Download
ww
www.Padasalai.Net
ww
www.CBSEtips.in Page - 1
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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