12 CS em

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

என்றும் மாணவர்கள் நலனில்

12
COMPUTER SCIENCE
PUBLIC EXAMINATION QUESTIONS
(from March 2020 to June 2023)

Compiled by
Mrs. G. Kiruba, M.Sc., M.Phil., B.Ed.,
PG Computer Instructor Grade-1
GHSS, Jallipatti
Udumalpet

PUBLIC ONE MARK QUESTIONS


March – 2020
1. The function which will give exact result when same arguments are passed are called
(a) Pure functions (b) Impure functions (c) Partial functions (d) Dynamic functions
2. A sequence of immutable objects is called
(a) Derived data (b) Built in (c) List (d) Tuple
3. Which of the following members of a class can be handled only from within the class?
(a) Public members (b) Private members (c) Protected members (d) Secured members
4. Two main measures for the efficiency of an algorithm are
(a) Data and space (b) Processor and memory
(c) Complexity and capacity (d) Time and space
5. Expand IDLE :
(a) Integrated Design Learning Environment (b) Insert Development Learning Environment
(c) Integrated Develop Learning Environment (d) Integrated Development Learning Environment
6. What is the output of the following snippet?
for i in range(2,10,2):
print(i,end="")
(a) 8 6 4 2 (b) 2 4 6 8 10 (c) 2 46 8 (d) 2 4 6
7. Evaluate the following function and write the output.
x=14.4
print(math.floor(x))
(a) 13 (b) 14 (c) 15 (d) 14.3
8. What will be the output of the following code?
str="NEW DELHI"
str[3]="-"
(a) NEW-DELHI (b) NE-DELHI (c) NEW DELHI (d) NEW-ELHI
9. The keys in Python dictionary is specified by
(a) ; (b)- (c) : (d) +

..1.. அ. பிரபாகர் - 9442979144


12 – Computer Science
10. Class members are accessed through which operator?
(a) . (b) & (c) % (d) #
11. What symbol is used for SELECT statement?
(a) Ω (b) σ (c) ∏ (d) x
12. The command to delete a table is :
(a) DROP (b) ALTER TABLE (c) DELETE (d) DELETE ALL
13. A CSV file is also known as a :
(a) Random File (b) String File (c) 3D File (d) Flat File
14. A framework for interfacing Python and C++ is :
(a) cytpes (b) Boost (c) SWIG (d) Cython
15. Which of the following is an organized collection of data?
(a) Records (b) Information (c) DBMS (d) Database
June - 2020
16. Which is the basic building block of computer programs?
(a) Argument (b) Parameter (c) Subroutine (d) Interface
17. Which functions build the abstract data type?
(a) Constructors (b) Data (c) List (d) Tuple
18. The process of binding a variable name with an object is called :
(a) Scope (b) Mapping (c) Namespaces (d) Memory
19. Which one of the following is not a factor to measure the execution time of an algorithm?
(a) Speed of the machine (b) Operating system
(c) Programming language used (d) Selection
20. Which key is pressed to execute Python Script?
(a) F5 (b) F2 (c) F1 (d) F3
21. Which statement is used to skip the remaining part of the loop and start with next iteration?
(a) break (b) pass (c) continue (d) null
22. Which of the following keyword is used to begin the function block?
(a) define (b) def (c) finally (d) for
23. In Python, which operator is used to display a string in multiple number of times?
(a) * (multiplication) (b) + (addition) (c) - (subtraction) (d) / (division)
24. Marks = [20, 40, 60, 80, 100]
print(Marks[-2])
What will be the output?
(a) 60 (b) 100 (c) 40 (d) 80
25. In Python, which of the following class declaration is correct?
(a) class class_name : (b) class class_name< > (c) class class_name (d) class class_name[]
26. The Relational Database model was first proposed by :
(a) C.D. Darween (b) Chris Date (c) E.F. Codd (d) Hugh Darween
27. Which is a Data Control Language command in SQL?
(a) Alter (b) Grant (c) Truncate (d) Commit
28. CSV is expanded as :
(a) Comma Separated Values (b) Condition Separated Values
(c) Comma Special Values (d) Condition Special Values
29. Which of the following is not a scripting language?
(a) Ruby (b) DBMS (c) Perl (d) JavaScript
30. Which SQL function returns the number of rows in a table?
(a) SUM() (b) MAX() (c) CHECK() (d) COUNT()

..2.. A. Prabhakar - 9442979144


12 – Computer Science
September - 2021
31. The small sections of code that are used to perform a particular task is called :
(a) Pseudo code (b) Subroutines (¢) Modules (d) Files
32. Let List = [2, 4, 6, 8, 10], then print(List[-2]) will result in :
(a) 4 (b) 10 (c) 6 (d) 8
33. SQLite falls under which database system?
(a) Hierarchical database system (b) Flat file database system
(c) Object oriented database system (d) Relational database system
34. The word comes from the name of a Persian Mathematician Abu Jafar Mohammed ibn-i Musa al Khowarizmi
is called :
(a) Algorithm (b) Flowchart (c) Syntax (d) Flow
35. Which one of the following character is used to give a single line comments in Python program?
(a) @ (b) # (c) & (d) &
36. What plays a vital role in Python programming?
(a) Structure (b) Statements (c) Indentation (d) Control
37. Which of the following keyword is used to exit a function block?
(a) finally (b) define (c) def (d) return
38. Strings in Python :
(a) Immutable (b) Changeable (c) Flexible (d) Mutable
39. Which of the following functions build the abstract data type?
(a) Recursive (b) Constructors (c) Nested (d) Destructors
40. The process of creating an object is called as
(a) Initialization (b) Constructor (c) Instantiation (d) Destructor
41. What is the acronym of DBMS?
(a) DataBase Management System (b) DataBase Management Symbol
(c) DataBasic Management System (d) DataBase Managing System
42. The clause used to sort data in a database :
(a) GROUP BY (b) SORT BY (c) SELECT (d) ORDER BY
43. The module which allows interface with the Windows Operating System is :
(a) csv module (b) OS module (c) getopt module (d) sys module
44. The process of binding a variable name with an object is called :
(a) Late binding (b) Scope (c) Early binding (d) Mapping
45. Using Matplotlib from within a Python Script, which method inside the file will display your plot?
(a) plot() (b) disp() (c) clear() (d) show()
May - 2022
46. Which of the following is a distinct Syntactic black?
(a) Definition (b) Subroutines (c) Modules (d) Function
47. Which of the following will retrieve information from the data type?
(a) Recursive (b) Constructors (c) Nested (d) Selectors
48. Which of the following names of variables to object is called :
(a) Binding (b) Scope (c) Namespaces (d) Mapping
49. The word comes from the name of a Persian mathematician Abu Jafar Mohammed ibn-i Musa al Khowarizmj
is called :
(a) Algorithm (b) Flow chart (c) Syntax (d) Flow
50. Which Operator is also called as Comparative Operator »
(a) Logical Operator (b) Arithmetic Operator
(c) Assignment Operator (d) Relational Operator

..3.. A. Prabhakar - 9442979144


12 – Computer Science
51. ‘elif’ can be considered to be short form of ___________
(a) else if (b) nested if (c) if...elif (d) if..else
52. Which function is called as anonymous un-named function?
(a) Recursion (b) Lambda (c) Define (d) Built-in
53. What will be the output of the following code?
str1 =“Chennai Schools” (a) Type Error (b) Chennai-Schools
str1[7]=“-” (c) Chennai (d) Chenna-School
54. If List=[17, 23, 41, 10] then, List.append(32) will result :
(a) [10, 17, 23, 32, 41] (b) [32, 17, 23, 41, 10] (c) [41, 32, 23, 17, 10] (d) [17, 23, 41, 10, 32]
55. Which of the following method is used as destructor?
(a) __rem__() (b) __init__() (c) __del__() (d) __dest__ ()
56. A tuple is also known as :
(a) Attribute (b) Table (c) Field (d) Row
57. The clause used to sort data in a database.
(a) GROUP BY (b) SORT BY (c) SELECT (d) ORDER BY
58. The expansion of CRLF is :
(a) Control Router and Line Feed (b) Control Return and Line Feed
(c) Carriage Return and Line Feed (d) Carriage Return and Form Feed
59. A Framework for interfacing Python and C++ is :
(a) Cython (b) Ctypes (c) Boost (d) SWIG
60. SQLite falls under which database system 2
(a) Hierarchical Database System (b) Flat File Database System
(c) Object Oriented Database System (d) Relational Database System
July - 2022
61. Which of the following is a unit of code that is often defined within a greater structure?
(a) Subroutines (b) Function (c) Files (d) Modules
62. Which of the following functions build the abstract data type?
(a) Constructors (b) Destructors (c) Recursive (d) Nested
63. Which scope refers to variables defined in current function?
(a) Local Scope (b) Global Scope (c) Module Scope (d) Function Scope
64. Which of the following shortcut is used to create new Python Program?
(a) Ctrl + C (b) Ctrl + F (c) Cul+B (d) Ctrl + N
65. _______ is used to print more than one item on a single line.
(a) Semicolon (;) (b) Dollar ($) (c) Comma (,) (d) Colon (:)
66. Which is the most Comfortable loop?
(a) do..while (b) while (c) for (d) if..elif
67. Which of the following keyword is used to Dei the function block 2
(a) define (b) for (c) finally (d) def
68. What is Stride?
(a) index value of slide operation (b) first argument of slice operation
(c) second argument of slice operation (d) third argument of slice operation:
69. What will be the result of the following Python code?
S =[ x ** 2 for x in range (5) ]
print (S)
(a) [0, 1, 2, 4, 5] (b) [0, 1, 4, 9, 16] (c) [0, 1, 4, 9, 16, 25] (d) [1, 4, 9, 16, 25]
70. Class members are accessed through which operator?
(a) & (b) . (c) * (d) %

..4.. A. Prabhakar - 9442979144


12 – Computer Science
71. A table is known as ;
(a) Tuple (b) Attribute (c) Relation (d) Entity
72. The command to delete a table is :
(a) DROP (b) DELETE (c) DELETE ALL (d) ALTER TABLE
73. Which of the following mode is used when dealing with non-text files like image or exe files?
(a) Text made (b) Binary mode (c) xls mode (d) CSV mode
74. getopt () will return an empty array if there is no error in splitting strings to :
(a) argv variable (b) opt variable (c) args variable (d) ifile variable
75. The function that returns the largest value of the selected column is :
(a) MAX () (b) LARGE () (c) HIGH () (d) MAXIMUM ()
March - 2023
76. _______ members are accessible from outside the class.
(a) Secured members (b) Public members.
(c) Private members (d) Protected members.
77. Which of the following is not a keyword in Python?
(a) continue (b) break (c) operator (d) while
78. The small sections of code that are used to perform a particular task is called:
(a) Pseudo code (b) Subroutines (c) Modules (d) Files
79. The number of important control structures in Python :
(a) 5 (b) 3 (c) 6 (d) 4
80. Class members are accessed through operator.
(a) # (b) & (c) % (d) .
81. The database Model which represents the Parent-Child relationship:
(a) Hierarchical (b) Relational (c) Object (d) Network
82. The operator which is sed for concatenation?
(a) * (b) + (c) = (d) &
83. Importing C++ program in a Python program is called
(a) Interconnecting (b) Wrapping (c) Parsing (d) Downloading
84. command is used to remove a table from the database
(a) DELETE ALL (b) DROP TABLE (c) ALTER TABLE (d) DELETE
85. The function that returns the largest value of the selected column is:
(a) HIGH () (b) MAX() (c) MAXIMUM () (d) LARGE()
86. The datatype whose representation is known are called:
(a) Concrete datatype (b) Built-in datatype (c) Abstract datatype (d) Derived datatype
87. A Function which calls itself, is called as :
(a) Lambda (b) Built-in (c) Return statement (d) Recursion
88. The mode which is used when dealing with non-text files like image or exe files :
(a) xls mode (b)Text mode (c) csv mode (d) Binary model
89. In dynamic programming, the technique of storing the previously calculated values is called :
(a) Memoization (b) Saving value property
(c) Mapping (d) Storing value property
90. Let set A={3, 6, 9}, set B={1, 3, 9}.
The result of the following snippet Print (set A set B)
(a) {1} (b) {3, 6, 9, 1, 3, 9} (c) {1, 3, 6, 9} (d) {3,9}

..5.. A. Prabhakar - 9442979144


12 – Computer Science
June - 2023
91. The variables in a function definition are called as:
(a) Subroutines (b) Function (c) Definition (d) Parameters
92. A sequence of immutable objects is called:
(a) Built in (b) List (c) Tuple (d) Derived
93. dataContainers for mapping names of variables to object is called
(a) Scope (b) Mapping (c) Binding (d) Namespaces
94. The two main factors which decide the efficiency of an algorithm are
(a) Processor and Memory (b) Complexity and capacity (c) Time and Space (d) Data and space
95. The Shortcut key used to create new Python program is:
(a) Ctrl + C (b) Ctrl + F (c) Ctrl + B (d) Ctrl + N
96. “elif” can be considered to be the abbreviation of:
(a) nested if (b) if..else (c) else if (d) if..elif
97. The function which is called anonymous un-named function:
(a) Lambda (b) Recursion (c) Function (d) Define
98. Is used as placeholders or replacement fields which get replaced along with format() function.
(a) {} (b) <> (c) ++ (d) ^^
99. Pick odd one in connection with collection data type.
(a) List (b) Tuple (c) Dictionary (d) Loop
100. The process of creating an object is called as:
(a) Constructor (b) Destructor (c) Initialize (d) Instantiation
101. A table is known as
(a) tuple (b) attribute (c) relation (d) entity
102. The clause used to sort data in a database:
(a) SORT BY (b) ORDER BY (c) GROUP BY (d) SELECT
103. The Command used to skip a row in a CSV file:
(a) next() (b) skip() (c) omit() (d) bounce()
104. The module which allows to interface with the Windows operating system:
(a) OS module (b) Sys module (c) CSV module (d) getopt module
105. The most commonly used statement in SQL is:
(a) cursor (b) select (c) execute (d) commit

 “TECH EASY - என்றும் மாணவர்கள் நலனில்” என்னும் முதன்மமக் குறிக்ககாளுடன்


அனுபவமிக்க ஆசிரியர்களால் அமைத்து நிமலயிலுள்ள மாணவர்களும் எளிமமயாகப் படித்து,
சிறந்த மதிப்பபண்கள் மட்டுமின்றி முழு மதிப்பபண்கள் பபரும்கநாக்கில் திறம்படத்
தயாரிக்கப்பட்டுள்ளது.

ARUNA PUBLICATIONS
TECH EASY GUIDE
 11 & 12 – COMPUTER SCIENCE
 11 & 12 – COMPUTER APPLICATIONS
 11 & 12 – EMPLOYABILITY SKILLS

..6.. A. Prabhakar - 9442979144


PUBLIC TWO MARK QUESTIONS
March - 2020
1. What is a Pair? Give an example.
2. What do you mean by Namespaces?
3. What is an Algorithm?
4. Write note on range() in loop.
5. Write categories of SQL commands.
6. Write the expansion of : (i) SWIG (ii) MinGW
7. What is the advantage of declaring a column as “INTEGER PRIMARY KEY”?
8. List the general types of data visualization.
9. What will be the output of the given Python program?
str="COMPUTER SCIENCE”
(a) print(str*2)
(b) print(str(0 : 7))
June - 2020
10. List the characteristics of interface.
11. What are the characteristics of modules?
12. What are tokens in Python? List the types.
13. What is the use of replace( ) in Python? Write the general format of replace( ).
14. Write the syntax to create list with suitable example in Python.
15. What are the advantages of DBMS?
16. What are the two ways to read a CSV file in Python?
17. List the types of visualizations in Matplotlib.
18. What are the advantages of user-defined functions?
September - 2021
19. Define Function with respect to programming language.
20. What are the different modes that can be used to test Python Program?
21. Write note on break statement.
22. Write the different types of function.
23. What is String 2
24. Write advantages of DBMS.
25. What is CSV File?
26. What is the theoretical difference between scripting language and other programming language?
27. What is list in Python?
May - 2022
28. What is Abstract Data Type?
29. What is Mapping?
30. What is Searching? Write its types.
31. What are the different modes that can be used to test Python Program?
32. Write the syntax of creating a tuple with ‘n’ number of elements.
33. Differentiate unique constraint and primary key constraint.
34. What is CSV file?
35. Define Data Visualization.
36. Write the syntax of getopt.getopt method.

..7.. அ. பிரபாகர் - 9442979144


12 – Computer Science
July - 2022
37. Differentiate constructor and selector.
38. Write a short note on Namespaces.
39. Write note on range () in loop.
40. What is meant by scope of variables? Mention its types.
41. What is set in Python?
42. Mention few examples of Database Management System.
43. Differentiate compiler and interpreter.
44. Which method is used to fetch all rows from the database table?
45. What will be the output of the following code?
Strl = “School”
print (str1*3)
March - 2023
46. What is a Tuple? Give an example.
47. What is a scope?
48. How will you delete a string in Python?
49. Write note on range () in loop.
50. What is class?
51. What is Data Manipulation Language?
52. Mention the default modes of the File.
53. List the general types of data visualization.
54. What will be output of the following Python code?
Squares=[x**2 for x in range(1,11)]
print (squares)
June - 2023
55. Differentiate Interface and Implementation.
56. What is a pair?
57. Give an example.Write short notes on Tokens.
58. List the control structures in Python.
59. What are the main advantages of function?
60. What is data consistency?
61. Write the difference between table constraint and column constraint.
62. Write notes on: (i) MAX () function (ii) MIN () function
63. What is Set in Python?

..8.. A. Prabhakar - 9442979144


PUBLIC THREE MARK QUESTIONS
March - 2020
1. Differentiate pure and impure function.
2. Write a note on Asymptotic notation.
3. Explain Ternary operator with example.
4. How recursive function works?
5. What will be the output of the following code?
list=[3**x for x in range(5)]
print(list)
6. Write short notes on TCL commands in SQL.
7. What is the difference between reader() and DictReader() function?
8. Mention the difference between fetchone() and fetchmany().
9. Write the output of the following program.
class Hosting:
def__init__(self, name):
self. _name=name
def display(self):
print(“ Welcome to”, self. name)
obj=Hosting(“Python Programming”)
obj.display()
June - 2020
10. (a) What is a selector?
(b) What are the parts of a program?
11. Write note on Dynamic Programming.
12. Write the syntax of Nested if..elif...else statement with example.
13. Write short note on public and private data members in Python.
14. Write note on types of DBMS users.
15. Write short note on DELETE, TRUNCATE, DROP command in SQL.
16. What are the applications of scripting languages?
17. Write short note on :
(a) GROUP BY (b) ORDER BY clause - in SQL
18. What will be the output of the given Python program?
a="“Computer”
b="Science”
x=a[:4]+b[len(b)-3:]
print(x)
September - 2021
19. Define Abstraction. What is abstract data type?
20. Define Local scope with an example.
21. What is an Algorithm? List any three characteristics of an algorithm.
22. What are the advantages of Tuples over a list 2
23. What are class members 2 How do you define it?
24. Write any three DDL commands.
25. What is the difference between the write mode and append mode 2
26. Differentiate Python and C++.
27. Write short notes on Arithmetic operator with examples.

..9.. அ. பிரபாகர் - 9442979144


12 – Computer Science
May - 2022
28. List the characteristics of an Algorithm.
29. List the difference between break and continue statements.
30. Write the rules of local variable.
31. What is sys.argv?
32. What is the use of ‘where clause’? Give a Python statement using the where clause.
33. Write any three uses of data visualization.
34. Write short notes on Arithmetic Operator with example.
35. Write a SQL statement using DISTINCT keyword.
36. Write a program to get the following output :
A
AB
ABC
ABCD
ABCDE
July - 2022
37. Write the syntax of ‘while’ loop.
38. Write the basic rules for global keyword in python.
39. Identify the module, operator, definition name for the following :
welcome.display()
40. Mention the difference between fetchone () and fetchmany ().
41. Write a python program to modify an existing file.
42. Write a SQL statement to modify the student table structure by adding a new field.
43. Write a note on open () function of Python. What are the differences between its two methods?
44. List the general types of data visualization.
45. What is the output of the following program?
class Greeting :
def _ init _ (sell, name) :
self._ name = name
def display (self) :
print (“Good Morning”, self. name)
obj = Greeting (“Bindu Madhavan”)
obj.display ()
March - 2023
46. Mention the characteristics of Interface.
47. What do you understand by Dynamic Programming?
48. Explain Ternary operator with an example.
49. Write the syntax of while loop.
50. Differentiate - ceil() and floor () function.
51. What is the difference between csvreader() method and DictReader () class?
52. Differentiate fetchone () and fetchmany ().

..10.. A. Prabhakar - 9442979144


12 – Computer Science
53. Write a Python program to display the given pattern.
COMPUTER
COMPUTE
COMPUT
COMPU
COMP
COM
CO
C
54. Write about the steps of Python program executing C++ program using control statement.
June - 2023
55. Write any three characteristics of modules.
56. Write a note on Asymptotic notation.
57. What are string literals ?
58. Write a note on if..else Structure.
59. Write about composition in functions with an example.
60. What are the differences between List and Dictionary?
61. What is the role of DBA ?
62. Differentiate Python and C++.
63. Write a Python code to check whether a given year is leap year or not.

..11.. A. Prabhakar - 9442979144


PUBLIC FIVE MARK QUESTIONS
March - 2020
1. (a) Discuss about Linear Search algorithm with example.
OR
(b) Explain input() and print() functions with example.
2. (a) (i) Write a program to display all 3 digit even numbers.
(ii) Write the output for the following program.
i=1
while(i<=6):
for j in range(1, i):
print(j,end="\t)
print(end="\n)
i+=1
OR
(b) Explain the following built-in functions :
(i) id() (ii) chr() (iii) round() (iv) type() (v) pow()
3. (a) Write the output for the following Python commands :
str1="Welcome to Python"
(i) print(str1)
(ii) print(str1[11 : 17])
(iii) print(str1[11 : 17 : 2])
(iv) print(str1[: : 4])
(v) print(str1[: : —4])
OR
(b) How to define constructor and destructor in Python? Explain with example.
4. (a) Explain the different set operations supported by Python with suitable example.
OR
(b) Differentiate DBMS and RDBMS.
5. Write a SQL statement to create a table for employee having any five fields and Create a table constraint
for the employee table.
OR
(b) Write the features of Python over C++.
June - 2020
6. (a) Explain the types of variable scope.
OR
(b) Explain data types in Python with suitable example.
7. (a) Write the output for the following Python programs.
(i) j=15 (ii) k=5
while(j>=10): while(k<=9):
print(j, end="\t") for i in range(1, k):
j=i-1 print(i, end=’\t’)
else: print(end="\n")
print(“\n End of the loop”) k=k+1
OR
(b) Write about the following Python string functions.
(i) capitalize() (ii) swapcase() (iii) center()
(iv) islower() (v) title()

..12.. அ. பிரபாகர் - 9442979144


12 – Computer Science
8. (a) Debug the following Python program to get the given output :
Output:
Inside add( ) function x value is : 10
In main x value is : 10.
Program:
x=0
define add:
globally x:
x=x+10
print(“Inside add( ) function X value 15 :
add
print(“In main x value is 2)
OR
(b) What is set in Python? Explain the following set operations with suitable example.
(i) Union
(ii) Intersection
(iii) Difference
9. (a) Explain about constructors and destructors in Python with suitable example.
OR
(b) Explain the types of data model.
10. (a) Explain the types of constraints in SQL with suitable example.
OR
(b) List the differences between CSV and excel sheets (XLS) file.
September - 2021
11. (a) What is Binary Search? Discuss with example.
OR
(b) Discuss in detail about Tokens in Python.
12. (a) Write a detail note on for loop.
OR
(b) Explain the scope of variables with an example.
13. (a) (i) What is slicing?
(ii) What is output for the following Python Commands?
str = “Thinking with Python”
(i) print(str[::3]) (ii) print(str[::—3]) (iii) print(str[9:13])
OR
(b) What is the purpose of range()? Explain with an example.
14. (a) Explain the characteristics of DBMS.
OR
(b) Write the different types of constraints and their functions.
15. (a) Write the Python script to display all the records of the following table using fetchmany().
Icode ItemName Rate
1003 Scanner 10500
1004 Speaker 3000
1005 Printer 8000
1008 Monitor 15000
1010 Mouse 700
OR
(b) Write any five key differences between Histogram and Bar Graph.
..13.. A. Prabhakar - 9442979144
12 – Computer Science
May - 2022
16. (a) (i) What are called Parameters?
(ii) Write a note on : Parameter without type and Parameter with type.
OR
(b) Explain LEGB rule with example.
17. (a) Explain Bubble Sort Algorithm with example.
OR
(b) Construct the following SQL statements in the student table,
(i) SELECT statement using GROUP BY Clause
(ii) SELECT statement using ORDER BY Clause
18. (a) Explain input() and output( ) functions with example.
OR
(b) Explain the purpose of the following functions :
(i) plt.xlabel (ii) plt.ylabel (iii) plt.title
(iv) plt.legend( ) (v) plt.show()
19. (a) Write a detail note on for loop.
OR
(b) Differentiate Excel file and CSV file.
20. (a) Explain the different set operations supported by Python with suitable example.
OR
(b) Explain each word of the following command.
Python <filename.py> — <i> <C++ filename without cpp extension
July - 2022
21. (a) Discuss about linear search algorithm.
OR
(b) Explain the different types of function with an example.
22. (a) What is nested tuple? Explain with an example.
OR
(b) Explain about SQLite and the steps to be used.
23. (a) Write a detail note on ‘for’ loop.
OR
(b) Explain the different types of operators used in Python.
24. (a) Write the different types of constraints and their functions?
OR
(b) Explain the characteristics of DBMS.
25. (a) Write the different methods to read a file in Python.
OR
(b) What is the purpose of range ()? Explain with an example.
March - 2023
26. (a) What is a List? Why List, can be called as pairs? Explain with suitable example.
OR
(b) Discuss about linear search algorithm.
27. (a) Discuss in details about Token in Python.
OR
(b) Explain the following built-in function.
(i) id() (ii) chr() (iii) round() (iv) type (v) pow()

..14.. A. Prabhakar - 9442979144


12 – Computer Science
28. (a) What is Nested Tuple? Explain with an example.
OR
(b) Explain the different types of relationship mapping.
29. (a) Write the syntax for getopt() and explain its arguments and return values.
OR
(b) Differentiate DBMS and RDBMS.
30. (a) Explain about differences between Histogram and Bar Graph.
OR
(b) Explain 'continue' statement with an example.
June - 2023
31. (a) What is Binary Search? Explain with an example.
OR
(b) How will you facilitate data abstraction? Explain it with suitable example.
32. (a) Explain input() and print() functions with examples.
OR
(b) Explain the scope of variables with an example.
33. (a) Explain about string operators in Python with suitable example.
OR
(b) What are the different ways to insert an element in a list? Explain with suitable example.
34. (a) Explain the characteristics of DBMS.
OR
(b) Explain about SQLite and the steps to be used.
35. (a) Write the different methods to read a file in Python.
OR
(b) Write any five features of Python.

..15.. A. Prabhakar - 9442979144

You might also like