TN Online TestSamacheer Kalvi practice

12th Standard Computer Science May 2022: MCQs with Answers

15 MCQs 70 marks 180 minutes Paper code 5972
Share this chapter: Telegram

The 15 one-mark questions from the May 2022 12th Standard Computer Science public exam, in paper order, with the correct option marked and a short explanation.

Answer key at a glance

Take online test →
Q1
Which of the following is a distinct Syntactic block ?
  • A. DefinitionCorrect
  • B. Subroutines
  • C. Modules
  • D. Function
Explanation. Definitions are distinct syntactic blocks; a function definition binds a name to a block of code.
Chapter: Function
Q2
Which of the following will retrieve information from the data type ?
  • A. Recursive
  • B. Constructors
  • C. Nested
  • D. SelectorsCorrect
Explanation. Constructors build an abstract data type, while selectors retrieve information (individual values) from it.
Q3
Containers for mapping names of variables to object is called :
  • A. Binding
  • B. Scope
  • C. NamespacesCorrect
  • D. Mapping
Explanation. A namespace is a container that maps variable names to the objects they refer to.
Chapter: Scoping
Q4
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.
Q5
Which Operator is also called as Comparative Operator ?
  • A. Logical Operator
  • B. Arithmetic Operator
  • C. Assignment Operator
  • D. Relational OperatorCorrect
Explanation. Relational operators such as ==, !=, < and > compare two values and return True or False, so they are also called comparative operators.
Q6
'elif' can be considered to be short form of __________.
  • A. else ifCorrect
  • B. nested if
  • C. if...elif
  • D. if...else
Explanation. In Python, 'elif' is the short form of 'else if' and is used to check multiple conditions in a chain.
Q7
Which function is called as anonymous un-named function ?
  • A. Recursion
  • B. LambdaCorrect
  • C. Define
  • D. Built-in
Explanation. A lambda function is defined without a name using the lambda keyword, so it is called an anonymous function.
Q8
What will be the output of the following code ?
str1 = "Chennai Schools"
str1[7] = "-"
  • A. Type ErrorCorrect
  • B. Chennai-Schools
  • C. Chennai
  • D. Chenna-School
Explanation. Python strings are immutable, so assigning to str1[7] raises TypeError: 'str' object does not support item assignment.
Q9
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]Correct
Explanation. append() adds the element at the end of the list without sorting, giving [17, 23, 41, 10, 32].
Q10
Which of the following method is used as destructor ?
  • A. __rem__()
  • B. __init__()
  • C. __del__()Correct
  • D. __dest__()
Explanation. __del__() is the destructor, called when an object is destroyed; __init__() is the constructor.
Q11
A tuple is also known as :
  • A. Attribute
  • B. Table
  • C. Field
  • D. RowCorrect
Explanation. In a relational table, each row (record) is called a tuple, while each column is an attribute.
Q12
The clause used to sort data in a database.
  • A. GROUP BY
  • B. SORT BY
  • C. SELECT
  • D. ORDER BYCorrect
Explanation. The ORDER BY clause sorts the result in ascending (ASC) or descending (DESC) order; SQL has no SORT BY clause.
Q13
The expansion of CRLF is :
  • A. Control Router and Line Feed
  • B. Control Return and Line Feed
  • C. Carriage Return and Line FeedCorrect
  • D. Carriage Return and Form Feed
Explanation. CRLF stands for Carriage Return and Line Feed, the line terminator used in CSV files.
Q14
A Framework for interfacing Python and C++ is :
  • A. Cython
  • B. Ctypes
  • C. BoostCorrect
  • D. SWIG
Explanation. Boost (Boost.Python) is the C++ library framework for interfacing Python and C++; Ctypes is a foreign function library and Cython is a compiler.
Q15
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

About this paper

These are the Part I one-mark multiple-choice questions from the May 2022 12th Standard Computer Science public examination conducted by the Tamil Nadu Directorate of Government Examinations. The answers and explanations are prepared by TN Online Test for revision. Each question links to the textbook chapter it comes from, so you can go back to that chapter's notes and MCQs.

Other years

2026 · March 2026 2025 · March 2025 2024 · March 2024 2023 · March 2023 2021 · Supplementary 2021 2020 · March 2020