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

TAMIL NADU STATE BOARD CLASS 12 COMPUTER SCIENCE 2023

2023 · 38 questions · First 10 Solutions Free
Questions 1–10 have full step-by-step solutions visible. Sign in to unlock all 38 →
Q1 mcq 1 mark
__________ members are accessible from outside the class.
a.
Secured members
b.
Public members Correct Answer
c.
Private members
d.
Protected members
Step-by-Step AI Explanation
Verified Method
Public members are accessible from outside the class as they have no access restrictions. Private members (c) are accessible only within the class. Protected members (d) are restricted to the class and its subclasses. Secured (a) is not a standard access modifier keyword in object-oriented terminology.
Q2 mcq 1 mark
Which of the following is not a keyword in Python ?
a.
continue
b.
break
c.
operator Correct Answer
d.
while
Step-by-Step AI Explanation
Verified Method
In Python, 'continue', 'break', and 'while' are reserved keywords used for control flow. 'operator' is not a reserved keyword in Python; it is the name of a standard library module.
Q3 mcq 1 mark
The small sections of code that are used to perform a particular task is called :
a.
Pseudo code
b.
Subroutines Correct Answer
c.
Modules
d.
Files
Step-by-Step AI Explanation
Verified Method
Subroutines (also known as functions) are small, reusable sections of code designed to perform a specific task. Pseudo code is a high-level description of an algorithm, modules are files containing code, and files are data storage entities.
Q4 mcq 1 mark
The number of important control structures in Python :
a.
5
b.
3 Correct Answer
c.
6
d.
4
Step-by-Step AI Explanation
Verified Method
Python generally classifies control structures into 3 main types: Sequential, Selection (or Branching), and Iteration (or Looping).
Q5 mcq 1 mark
Class members are accessed through ________ operator.
a.
#
b.
&
c.
%
d.
. Correct Answer
Step-by-Step AI Explanation
Verified Method
In Python (and many other object-oriented languages), the dot operator (.) is used to access the attributes and methods of a class object.
Q6 mcq 1 mark
The database Model which represents the Parent-Chil d relationship :
a.
Hierarchical Correct Answer
b.
Relational
c.
Object
d.
Network
Step-by-Step AI Explanation
Verified Method
The Hierarchical database model organizes data into a tree-like structure, where each record has a single parent and can have multiple children, explicitly representing the parent-child relationship.
Q7 mcq 1 mark
The operator which is used for concatenation ?
a.
*
b.
1
c.
=
d.
& Correct Answer
Step-by-Step AI Explanation
Verified Method
In many contexts, such as SQL and certain programming environments, the ampersand (&) or plus (+) is used for concatenation. Among the given choices, the & operator is the recognized symbol for concatenating strings or items.
Q8 mcq 1 mark
Importing C++ program in a Python program is called __________.
a.
Interconnecting
b.
Wrapping Correct Answer
c.
Parsing
d.
Downloading
Step-by-Step AI Explanation
Verified Method
Wrapping is the process of creating a Python interface for C++ code, effectively 'wrapping' the C++ functionality so that it can be imported and executed within a Python program.
Q9 mcq 1 mark
__________ command is used to remove a table from the d atabase.
a.
DELETE ALL
b.
DROP TABLE Correct Answer
c.
ALTER TABLE
d.
DELETE
Step-by-Step AI Explanation
Verified Method
The 'DROP TABLE' command is used to remove an entire table structure and its data from the database. 'DELETE' is used to remove specific rows based on a condition. 'ALTER TABLE' is used to modify the structure of an existing table. 'DELETE ALL' is not a standard SQL command.
Q10 mcq 1 mark
The function that returns the largest value of the selected column is :
a.
HIGH ( )
b.
MAX ( ) Correct Answer
c.
MAXIMUM ( )
d.
LARGE ( )
Step-by-Step AI Explanation
Verified Method
In SQL, the aggregate function 'MAX()' is used to return the maximum or largest value from a selected column. HIGH(), MAXIMUM(), and LARGE() are not standard SQL aggregate functions.
🎉 10 Free Sample Solutions Completed

Unlock All 38 Questions & Solutions

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

Q11 mcq 1 mark
The datatype whose representation is known are called :
a.
Concrete datatype
b.
Built-in datatype
c.
Abstract datatype
d.
Derived datatype
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
A Function which calls itself, is called as :
a.
Lambda
b.
Built-in
c.
Return statement
d.
Recursion
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
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 mode
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
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
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
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}
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 a Tuple ? Give an example.
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 is a scope ?
Correct Answer & Step-by-Step Solution Locked

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

Q18 short answer 2 marks
How will you delete a string in Python ?
Correct Answer & Step-by-Step Solution Locked

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

Q19 short answer 2 marks
Write note on range ( ) in loop.
Correct Answer & Step-by-Step Solution Locked

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

Q20 short answer 2 marks
What is class ?
Correct Answer & Step-by-Step Solution Locked

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

Q21 short answer 2 marks
What is Data Manipulation Language ?
Correct Answer & Step-by-Step Solution Locked

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

Q22 short answer 2 marks
Mention the default modes of the 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
23. List the general types of data visualization.
Correct Answer & Step-by-Step Solution Locked

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

Q24 short answer
24. What will be output of the following Python code ? Squares=[x **2 for x in range(1,11)] print (squares)
Correct Answer & Step-by-Step Solution Locked

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

Q25 short answer
25. Mention the characteristics of Interface.
Correct Answer & Step-by-Step Solution Locked

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

Q26 short answer
26. What do you understand by Dynamic Programming ?
Correct Answer & Step-by-Step Solution Locked

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

Q27 short answer
27. Explain Ternary operator with an example.
Correct Answer & Step-by-Step Solution Locked

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

Q28 short answer
28. Write the syntax of while loop.
Correct Answer & Step-by-Step Solution Locked

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

Q29 short answer
29. Differentiate - ceil ( ) and floor ( ) function.
Correct Answer & Step-by-Step Solution Locked

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

Q30 short answer
30. What is the difference between csv reader ( ) method and DictReader ( ) class ?
Correct Answer & Step-by-Step Solution Locked

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

Q31 short answer
31. Differentiate fetchone ( ) and fetchmany ( ).
Correct Answer & Step-by-Step Solution Locked

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

Q32 short answer
32. Write a Python program to display the given pattern. C O M P U T E R C O M P U T E C O M P U T C O M P U C O M P C O M C O C
Correct Answer & Step-by-Step Solution Locked

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

Q33 long answer
33. Write about the steps of Python program executing C ++ program using control statement.
Correct Answer & Step-by-Step Solution Locked

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

Q34 long answer
34.(a)What is a List ? Why List, can be called as pairs ? Explain with suitable example. OR (b)Discuss about linear search algorithm.
Correct Answer & Step-by-Step Solution Locked

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

Q35 long answer
35.(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( )
Correct Answer & Step-by-Step Solution Locked

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

Q36 long answer
36.(a)What is Nested Tuple ? Explain with an example. OR (b)Explain the different types of relationship mapping.
Correct Answer & Step-by-Step Solution Locked

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

Q37 long answer
37.(a)Write the syntax for getopt( ) and explain its arguments and return values. OR (b)Differentiate DBMS and RDBMS.
Correct Answer & Step-by-Step Solution Locked

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

Q38 long answer
38.(a)Explain about differences between Histogram and Bar Graph. OR (b)Explain β€˜continue’ statement with an example.
Correct Answer & Step-by-Step Solution Locked

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