TN Online TestSamacheer Kalvi practice

12th Standard Computer Science: Most Repeated Board Exam Questions

Worked out from the 105 one-mark questions of the 2020–2026 public exams. The table shows how many board questions came from each chapter; below it are the questions the board asked more than once, with the answer.

Board questions from each chapter

ChapterQuestions
Database Concepts 9
Python Variables and Operators 8
Strings and String Manipulation 8
Python Classes and Objects 8
Structured Query Language (SQL) 8
Function 7
Data Abstraction 7
Algorithmic Strategies 7
Control Structures 7
Scoping 6
Python Functions 6
Lists, Tuples, Sets and Dictionary 6
Python and CSV Files 6
Importing C++ Programs in Python 6
Data Manipulation through SQL 4
Data Visualization using Pyplot: Line Chart, Pie Chart and Bar Chart 2

Questions asked in more than one year

The datatype whose representation is known are called __________.
  • A. Concrete datatypeCorrect
  • B. Built in datatype
  • C. Abstract datatype
  • D. Derived datatype
Explanation. A concrete data type is one whose representation (implementation) is known; an abstract data type hides its representation.
A framework for interfacing Python and C++ is:
  • A. Cython
  • B. Ctypes
  • C. BoostCorrect
  • D. SWIG
Explanation. Boost (Boost.Python) is the C++ framework for interfacing Python and C++; Ctypes, SWIG and Cython are other interfacing tools.
Class members are accessed through which operator?
  • A. #
  • B. &
  • C. %
  • D. .Correct
Explanation. Class members are accessed with the dot operator, for example object.member.
The clause used to sort data in a database :
  • A. GROUP BY
  • B. SORT BY
  • C. SELECT
  • D. ORDER BYCorrect
Explanation. ORDER BY sorts the result in ascending or descending order; SQL has no SORT BY clause.
Asked 2 times March 2026 March 2023
Which members are accessible from outside the class?
  • A. Secured members
  • B. Public membersCorrect
  • C. Private members
  • D. Protected members
Explanation. Public members can be accessed from anywhere, including outside the class; private and protected members are restricted.
Asked 2 times March 2026 March 2020
Two main measures for the efficiency of an algorithm are __________.
  • A. Time and SpaceCorrect
  • B. Processor and Memory
  • C. Complexity and Time
  • D. Data and Space
Explanation. The efficiency of an algorithm is measured by its time complexity and space complexity.
Asked 2 times March 2026 March 2024
Which key is used to execute Python Script?
  • A. F5Correct
  • B. F1
  • C. F10
  • D. F2
Explanation. In Python IDLE, a script is run using Run > Run Module or the F5 key.
Asked 2 times March 2026 March 2023
A function which calls itself is called as:
  • A. Lambda
  • B. Built in
  • C. Return
  • D. RecursionCorrect
Explanation. A function that calls itself is a recursive function (recursion).
Asked 2 times March 2026 March 2023
Which of the following operator is used for concatenation?
  • A. *
  • B. +Correct
  • C. =
  • D. &
Explanation. In Python the + operator joins (concatenates) two strings; * repeats a string.
Asked 2 times March 2026 March 2024
If mylist=[10, 20, 30, 40] then mylist.append(35) will result:
  • A. [10, 35, 20, 30, 40]
  • B. [10, 20, 30, 40, 35]Correct
  • C. [35, 10, 20, 30, 40]
  • D. [10, 20, 30, 35, 40]
Explanation. append() adds the element at the end of the list, giving [10, 20, 30, 40, 35].
Asked 2 times March 2026 May 2022
The expansion of CRLF is:
  • A. Control Router and Line Feed
  • B. Carriage Return and Line FeedCorrect
  • C. Control Return and Line Feed
  • D. Carriage Return and Form Feed
Explanation. CRLF stands for Carriage Return and Line Feed, the line terminator used in CSV files.
Asked 2 times March 2026 March 2023
__________ function returns the largest value of the selected column.
  • A. HIGH()
  • B. MAX()Correct
  • C. MAXIMUM()
  • D. LARGE()
Explanation. The SQL aggregate function MAX() returns the largest value in the selected column.
Asked 2 times March 2025 May 2022
Which of the following is a distinct syntactic block?
  • A. Subroutines
  • B. Function
  • C. DefinitionCorrect
  • D. Modules
Explanation. A definition is a distinct syntactic block: it binds a name to a function or value and is written as a separate block of code.
Which of the following functions that build the abstract data type?
  • A. ConstructorsCorrect
  • B. recursive
  • C. Destructors
  • D. Nested
Explanation. Constructors are functions that build (create) an abstract data type; selectors retrieve information from it.
Asked 2 times March 2025 May 2022
Which operator is also called as conditional operator?
  • A. Logical
  • B. TernaryCorrect
  • C. Assignment
  • D. Relational
Explanation. The ternary operator (x if condition else y) chooses a value based on a condition, so it is called the conditional operator.
Which of the following keyword is used to exit a function block?
  • A. finally
  • B. define
  • C. def
  • D. returnCorrect
Explanation. The return statement ends the execution of a function and sends control (and optionally a value) back to the caller.
The module which allows to interface with the Windows operating system is:
  • A. csv module
  • B. OS moduleCorrect
  • C. getopt module
  • D. sys module
Explanation. The OS module provides functions to interact with the operating system, such as os.system() to run the compiler and the executable.
In Python the process of creating an object is called as ________.
  • A. Initialize
  • B. Constructor
  • C. InstantiationCorrect
  • D. Destructor
Explanation. Creating an object (instance) of a class is called instantiation.
Asked 2 times March 2024 March 2020
What symbol is used for SELECT statement ?
  • A. X
  • B. σCorrect
  • C. Ω
  • D. Π
Explanation. In relational algebra, SELECT is denoted by σ (sigma); PROJECT uses Π and Cartesian product uses X.
Asked 2 times March 2024 March 2020
A CSV file is also known as a ________.
  • A. String File
  • B. Flat FileCorrect
  • C. Random File
  • D. 3D File
Explanation. A CSV file stores tabular data as plain text records, so it is also called a flat file.
The small sections of code that are used to perform a particular task is called :
  • A. Pseudo code
  • B. SubroutinesCorrect
  • C. Modules
  • D. Files
Explanation. Subroutines are small sections of code that perform a particular task and can be used repeatedly in a program.
Asked 2 times March 2023 March 2020
__________ command is used to remove a table from the database.
  • A. DELETE ALL
  • B. DROP TABLECorrect
  • C. ALTER TABLE
  • D. DELETE
Explanation. DROP TABLE removes the whole table (structure and data) from the database; DELETE only removes rows and ALTER TABLE changes the structure.
The word comes from the name of a Persian mathematician Abu Jafar Mohammed ibn-i Musa al Khowarizmi is called :
  • A. AlgorithmCorrect
  • B. Flow chart
  • C. Syntax
  • D. Flow
Explanation. The word "algorithm" is derived from the name of the Persian mathematician al-Khowarizmi.
SQLite falls under which database system ?
  • A. Hierarchical Database System
  • B. Flat File Database System
  • C. Object Oriented Database System
  • D. Relational Database SystemCorrect
Explanation. SQLite is a lightweight relational database system that stores data in tables and is queried with SQL.
Take online test → All previous year papers