← Class 12 Board Exam (HSC)
Tamil Nadu State Board · Computer Science

TAMIL NADU STATE BOARD CLASS 12 COMPUTER SCIENCE 2024

2024 · 40 questions · First 10 Solutions Free
Questions 1–10 have full step-by-step solutions visible. Sign in to unlock all 40 →
Q1 mcq 1 mark
Which of the following is used to describe the worst case of an algorithm ?
a.
Big W
b.
Big A
c.
Big O Correct Answer
d.
Big S
Step-by-Step AI Explanation
Verified Method
Big O (Big O notation) is the standard mathematical notation used to describe the asymptotic upper bound of an algorithm's running time, which represents the worst-case scenario. Big W (Omega) represents the best case, and Big S is not a standard asymptotic notation.
Q2 mcq 1 mark
The datatype whose representation is unknown are called as :
a.
Concrete datatype
b.
Built-in datatype
c.
Abstract datatype Correct Answer
d.
Derived datatype
Step-by-Step AI Explanation
Verified Method
An Abstract Data Type (ADT) is a model for data types where the implementation details are hidden from the user, focusing instead on the operations that can be performed. Concrete, built-in, and derived data types generally have known or explicit representations.
Q3 mcq 1 mark
Which key is pressed to execute Python Script ?
a.
F1
b.
F5 Correct Answer
c.
F3
d.
F2
Step-by-Step AI Explanation
Verified Method
In the Python IDLE environment, the F5 key is the standard shortcut used to run or execute the currently open Python script.
Q4 mcq 1 mark
Which of the following defines what an object can do ?
a.
Interface Correct Answer
b.
Operating System
c.
Interpreter
d.
Compiler
Step-by-Step AI Explanation
Verified Method
An interface defines a set of methods or behaviors that an object can perform without specifying how those methods are implemented. It acts as a contract for the object's functionality.
Q5 mcq 1 mark
Which of the following security technique that regulates who can view or use resources in a computing environment ?
a.
Access control Correct Answer
b.
Password
c.
Certification
d.
Authentication
Step-by-Step AI Explanation
Verified Method
Access control is the security process that manages and restricts who is authorized to view or use specific computing resources. Authentication identifies a user, while passwords are a method to gain access, but Access Control is the overall regulation technique.
Q6 mcq 1 mark
Which of the following is the Slicing Operator ?
a.
< >
b.
{ }
c.
( )
d.
[ ] Correct Answer
Step-by-Step AI Explanation
Verified Method
In Python, the square brackets [ ] are the designated slicing operator used to extract a subset of elements from a sequence like a string, list, or tuple.
Q7 mcq 1 mark
In Python the process of creating an object is called as __________.
a.
Initialize
b.
Constructor
c.
Instantiation Correct Answer
d.
Destructor
Step-by-Step AI Explanation
Verified Method
Instantiation is the process of creating a specific instance (object) of a class. The constructor is the method called during this process, but the act itself is known as instantiation.
Q8 mcq 1 mark
Pick the correct one to execute the given statement successfully. if __________ : print(x, ''is a leap year'')
a.
x/4=0
b.
x%2=0
c.
x%4=0
d.
x%4==0 Correct Answer
Step-by-Step AI Explanation
Verified Method
To check if a number x is a leap year, we must check if the remainder when divided by 4 is zero using the modulo operator (%) and the equality operator (==). Option C uses an assignment operator (=), which is incorrect for a condition.
Q9 mcq 1 mark
What symbol is used for SELECT statement ?
a.
X
b.
σ Correct Answer
c.
Ω
d.
Π
Step-by-Step AI Explanation
Verified Method
In relational algebra, the SELECT operation (used for filtering rows) is represented by the Greek letter sigma (σ). Option (D) Π represents the PROJECT operation.
Q10 mcq 1 mark
If List = [10, 20, 30, 40, 50] then List [2] = 35 will result :
a.
[10, 20, 35, 40, 50] Correct Answer
b.
[35, 10, 20, 30, 40, 50]
c.
[10, 35, 30, 40, 50]
d.
[10, 20, 30, 40, 50, 35]
Step-by-Step AI Explanation
Verified Method
Python lists use zero-based indexing. Index 2 refers to the third element, which is 30. Assigning 35 to List[2] replaces 30 with 35, resulting in [10, 20, 35, 40, 50].
🎉 10 Free Sample Solutions Completed

Unlock All 40 Questions & Solutions

Sign up free in seconds to unlock step-by-step AI answers for the remaining 30 questions.

Q11 mcq 1 mark
A CSV file is also known as a __________.
a.
String File
b.
Flat File
c.
Random File
d.
3D File
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q12 mcq 1 mark
The most commonly used statement in SQL is :
a.
execute
b.
cursor
c.
commit
d.
select
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q13 mcq 1 mark
What is the output of the following snippet in Python ? for x in range (5): if x==2: continue print(x, end= ' ')
a.
0 1 3 4
b.
0 1 2
c.
0 1 2 3 4
d.
0 1 2 3
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q14 mcq 1 mark
__________ is a collection of resources assembled to create a single unified visual display.
a.
Objects
b.
Interface
c.
Graphics
d.
Dashboard
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q15 mcq 1 mark
The clause used to sort data in a database :
a.
GROUP BY
b.
SORT BY
c.
SELECT
d.
ORDER BY
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q16 short answer 2 marks
What is abstract data type ?
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q17 short answer 2 marks
What are the different operators that can
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q17 short answer
What are the different operators that can be used in Python ?
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q18 mcq
used statement in SQL is :
a.
execute
b.
cursor
c.
commit
d.
select
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q18 short answer
What is searching ? Write its types.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q19 short answer
Write the different types of function.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q20 short answer
List the types of visualizations in Matplotlib.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q21 short answer
What is the difference between Hierarchical and Network data model ?
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q22 short answer
What is CSV file ?
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q23 short answer
Which method is used to fetch all rows from the database table ?
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q24 short answer
Write the use of pop( ) function in Python.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q25 short answer
Differentiate pure and impure function.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q26 short answer
What are the different ways to access the elements of a list ? Give example.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q27 short answer
Write a note on Asymptotic notation.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q28 short answer
Using if..else..elif statement write a suitable program to display largest of 3 numbers.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q29 short answer
Write a short note for the followings with suitable example. (a)capitalize( ) (b)swapcase( )
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q30 short answer
How will you define Constructor and Destructor in Python ?
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q31 short answer
What are the applications of scripting language ?
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q32 short answer
What is the use of Where clause ? Give a Python statement by using Where clause.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q33 short answer
Write short notes on TCL Commands in SQL.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q34 long answer 5 marks
(a)How will you facilitate data abstraction ? Explain it with suitable example. OR (b)What is Binary Search ? Explain it with example.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q35 long answer 5 marks
(a)Explain input( ) and print( ) functions with examples. OR (b)Explain the scope of variables with an example.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q36 long answer 5 marks
(a)What is the purpose of range( ) function ? Explain with an example. OR (b)Explain the following operators in Relational algebra with suitable examples. (i)UNION (ii)INTERSECTION (iii)DIFFERENCE (iv)CARTESIAN PRODUCT
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q37 long answer 5 marks
(a)What are the components of SQL ? Write the commands for each. OR (b)Discuss the features of Python over C++.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q38 long answer 5 marks
(a)Write the different methods to read a file in Python. OR (b)Explain the various buttons in a matplotlib window.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.