12th Computer Science Public Exam Question Papers with Answer Key March 2024

Hello 12th Student, From this post you can get your today exam’s 12th Computer Science Question Paper with Answer Key in PDF format. The 12th Computer Science Answer Key definitely helpful for checking your performance at today’s Computer Exam (8th March 2024). Ok, let’s see How to download the 12th Computer Science Public Exam Question Paper PDF and read Answekey online.

12th Computer Science Public Exam Question Paper 2024 with Answer Key

12th Computer Science Question Paper 2024 PDF

From the table below you can download the Original 12th Computer Science Question Paper with Answer Key in PDF format. The attached question paper would be helpful for next academic year’s 12th students.

Exam Date12 Public Exam Paper 2024PDF Link
8th March 2024Computer Science Original Question Paper 2024Download PDF
8th March 2024Computer Science Question with Answer Key PDFDownload PDF

Read More: 12th English Answer Key

12th Computer Science Public Exam Answer Key 2024

The section below contains the 12th Std Public Exam 2024’s Computer Science Answer Key in Text format. It contains accurate answers and detailed explanations. It allows students to verify their responses, evaluate their performance, and improve CS knowledge.

Part – I: Answer all the Questions

Choose the appropriate synonyms of the underlined words in the following sentences.

1. ஒரு நெறிமுறையின் மிக மோசமான நிலையைக் குறிக்க பின்வரும் எது பயன்படுகிறது?

Which of the following is used to describe the worst case of an algorithm?

  1. Big W
  2. Big A
  3. Big O
  4. Big 5

Answer: Big O

2. உருவமைப்பு அறியப்படாத தரவு வகை எவ்வாறு அழைக்கப்படுறது?

The datetype whose representation is unknown are called as :

  1. Concrete datatype
  2. Bullt-in datetype
  3. Abstract datetype
  4. Derived datetype

Answer: Abstract datetype

3. பைத்தான் ஸ்கிரிப்ட்டை இயக்க எந்த விசையை அழுத்த வேண்டும்?

Which key is pressed to execute Python Script?

  1. F1
  2. F5
  3. F3
  4. F2

Answer: F5

4. பின்வரும் எது பொருள் செய்ய வேண்டியதை தீர்மானிக்கிறது?

  1. இடைமுகம்
  2. இயக்க அமைப்பு
  3. நிரல் பெயர்ப்பி
  4. தொகுப்பான்

Answer: இடைமுகம்

Which of the following defines what an object can do?

  1. Interface
  2. Operating System
  3. Interpreter
  4. Compiler

Answer: Interface

5. கணினி சூழலில் உள்ள வளங்களை யார் பார்வையிட மற்றும் பயன்படுத்த முடியும் என்பதை வரைமுறைப்படுத்தும் ஒரு பாதுகாப்பு தொழில் நுட்பம்.

  1. அணுகல் கட்டுப்பாடு
  2. கடவுச்சொல்
  3. சான்றிதழ்
  4. அங்கீகாரம்

Answer: அணுகல் கட்டுப்பாடு

Which of the following security technique that regulates who can view or use resources in a computing environment?

  1. Access control
  2. Password
  3. Certification
  4. Authentication

Answer: Access control

6. பின்வருவனவற்றுள் எது சரத்தினை துண்டாக்கும் செயற்குறி

Which of the following is the Slicing Operator?

  1. < >
  2. [ ]
  3. ( )
  4. [ ]

Answer: [ ]

7. பைத்தானில் பொருளை உருவாக்கும் செயல்முறை _______ என அழைக்கப்படுகிறது.

  1. மதிப்பிருத்தல்
  2. ஆக்கி
  3. சான்றுருவாக்கல்
  4. அழிப்பி

Answer: சான்றுருவாக்கல்

In Python the process of creating an object is called as

  1. Initialize
  2. Constructor
  3. Instantiation
  4. Destructor

Answer: Instantiation

8. கொடுக்கப்பட்ட கூற்றை வெற்றிகரமாக இயக்குவதற்கு, பின்வருவனவற்றுள் சரியான ஒன்றை தேர்ந்தெடுக்கவும்

if ______ : print(x, “is a leap year”)

  1. x/4=0
  2. x%2=0
  3. x%4=0
  4. x%4==0

Answer: x%4==0

Pick the correct one to execute the given statement successfully.

  1. x/4=0
  2. x%2=0
  3. x%4=0
  4. x%4==0

Answer: x%4==0

9. SELECT கூற்றுக்கு பயன்படும் சின்னம்

What symbol is used for SELECT statement?

if ______ : print(x, “is a leap year”)

  1. X
  2. σ
  3. Ω

Answer: σ

10. If List = [10, 20, 30, 40, 50] எனில் List [2] = 35-ன் விடை

  1. [10, 20, 35, 40, 50]
  2. [35, 10, 20, 30, 40, 50]
  3. [10, 35, 30, 40, 50]
  4. [10, 20, 30, 40, 50, 35]

Answer: [10, 20, 35, 40, 50]

11. CSV கோப்பானது ________ எனவும் அழைக்கப்படுகிறது.

A CSV file is also known as a ________.

  1. String File
  2. Flat File
  3. Random File
  4. 3D File

Answer: Flat File

12. SQL-ல் மிகவும் பொதுவாக பயன்படுத்தப்படும் கூற்று

The most commonly used statement in SQL is:

  1. execute
  2. cursor
  3. commit
  4. select

Answer: select

13. பின்வரும் பைத்தான் குறிமுறையின் வெளியீடு என்ன?

for x in range (5):
If x==2
continue
print(x, end=”)

What is the output of the following snippet in Python?

for x in range (5):
If x==2
continue
print(x, end=”)

  1. 0 1 3 4
  2. 0 1 2
  3. 0 1 2 3 4
  4. 0 1 2 3

Answer: 0 1 3 4

14. _________ அனைத்து வளங்களையும் ஒன்றுபட்ட ஒற்றை காட்சி திரையில் காண்பிக்க பயன்படுகிறது

  1. பொருள்கள்
  2. இடைமுகம்
  3. வரைகலை
  4. டேஷ் போர்ட்

Answer: டேஷ் போர்ட்

_________ is a collection of resources assembled to create a single unified visual display

  1. Objects
  2. Interface
  3. Graphics
  4. Dashboard

Answer: Dashboard

15. ஒரு தரவுத்தளத்தில் உள்ள தரவை வரிசையாக்கம் செய்ய பயன்படும் clause :

The clause used to sort data in a database:

  1. GROUP BY
  2. SORT BY
  3. SELECT
  4. ORDER BY

Answer: ORDER BY

Part – II: Answer any six questions. Question No.24 Compulsory

16. What is abstract data type?

  • Abstract Data type (ADT) is a type (or class) for objects whose behavior is defined by a set of value and a set of operations.
  •  The process of providing only the essentials and hiding the details is known as abstraction.
  • Abstraction provides modularity (modularity means splitting a program in to many modules). Classes (structures) are the representation for “Abstract Data Types”, (ADT).

17. What are the different operators that can be used in Python?

  • Arithmetic operators
  • Relational or Comparative operators
  • Logical operators
  • Assignment operators
  • Conditional operator

18. What is Searching? Write is types.

Searching is designed to check for an element or retrieve an element from any data structure where it is stored.

Types:

  • Linear (or) sequential search
  • Binary (or) half interval search

19. Write the different types of function.

  • User-defined functions
  • Built-in functions
  • Lambda functions
  • Recursion functions

20. List the types of visualizations in Matplotlib

  • Line plot
  • Scatter plot
  • Histogram
  • Box plot
  • Bar chart
  • Pie chart

21. What is difference between Hierarchical data model Network data model

Hierarchical data model Network data model
A child record has only one parent node. A child may have many parent nodes.
This model represents a one-to-many relationship ie parent-child relationship.It represents the data in many-to-many relationships.
 This model is mainly used in IBM Main Frame computers.This model is easier and faster to access the data.

22. What is CSV file?

A CSV fi le is a human readable text file where each line has a number of fields, separated by commas or some other delimiter.

23. Which method is used to fetch all rows from the database table?

result = cursorfetchall()

Example : The fetchall() method is used to fetch all rows from the database table

24. Write the use pop() function Python

pop( ) function can also be used to delete an element using the given index value. pop( ) function deletes and returns the last element of a list if the index is not given.

PART – III Note: Answer any six questions. Question No.33 is compulsory

25. Differentiate pure and impure function.

Pure Function Impure Function
 The return value of the pure functions solely depends on its arguments passed. Hence, if you call the pure functions with the same set of arguments, you will always get the same return values. They do not have any side effects.The return value of the impure functions does not solely depend on its arguments passed. Hence, if you call the impure functions with the same set of arguments, you might get the different return values For example, random(), Date().
They do not modify the arguments which are passed to themThey may modify the arguments which are passed to them

26. What are the different ways to access the elements of a list? Give example

The elements of a list can be accessed in two ways. The first way is via our familiar method of multiple assignment, which unpacks a list into its elements and binds each element to a different name.

Example:

Ist 1st := [10, 20] x, y := 1st

  • A second method for accessing the elements in a list is by the element selection operator, also expressed using square brackets.

Example:

lst[0] 10
lst[1] 20

27. Write a note on Asymptotic notation? 

  • Asymptotic Notations are languages that uses meaningful statements about time and space complexity.
  • The following three asymptotic notations are mostly used to represent time complexity of algorithms

(i) Big 0:

Big 0 is often used to describe the worst-case of an algorithm.

(ii) Big Ω:

Big Omega is the reverse Big 0, if Bi 0 is used to describe the upper bound (worst – case) of a asymptotic function, Big Omega is used to describe the lower bound (best-case).

(iii) Big θ:

When an algorithm has a complexity with lower bound = upper bound, say that an algorithm has a complexity 0 (n log n) and SI (n log n), it’s actually has the complexity 0 (n log n), which means the running time of that algorithm always falls in n log n in the best-case and worst-case.

28. Using if..else..elif statement write a suitable program to display largest of 3 numbers.

a= int (input(“Enter number 1”)
b= int (input (“Enter number 2”)
c= int (input (“Enter number 3”)

if a>b and a>c:
put (“A is greater”)
elif b>a and b>c:
print (“B is greatest”)
else:
print (“C is greater”) 3

29. Write a short note for the following with suitable example.
      (a) capitalize (b) swapcase

(a) capitalize

Description: Used to capitalize the first character of the string.

Example: >

>>> city=”chennai”
print(city.capitalize())
Chennai

(b) swapcase( )

Description: It will change case of every character to its opposite case vice-versa.

Example:

str1=”tAmiL NaDu”
>>> print(str1.swapcase())
TaMI1 nAdU

30. How will you define Constructor and Destructor in Pythorn

  • Constructor is the special function that is automatically executed when an object of a class is created. In Python, there is a special function called “init” which act as a Constructor.
  • It must begin and end with double underscore. This function will act as an ordinary function; but only difference is, it is executed automatically when the object is created.
  • This constructor function can be defined with or without arguments. This method is used to initialize the class variables.

Syntax:

General format of _init_ method (Constructor function)
def _init_(self, [args…..]): N
<statements>

Example:

class Sample:
def _init_(self, num):
print(“Constructor of class Sample…”)
self.num=num
print(“The value is :”, num)
S=Sample(10)

DESTRUCTOR:

Destructor is also a special method gets executed automatically when an object exit from the scope. It is just opposite to constructor. In Python, _del_( ) method is used as destructor.

class Sample:

num=0
def _init_(self, var):
Sample.num+=1
self.var=var
print(“The object value is = “, var)
print(“The value of class variable is= “, Sample.num)
def _del_(self):
Sample.num-=1
print(“Object with value %d is exit from the scope”%self.var)

S1=Sample(15)
S2=Sample(35)
S3=Sample(45)

31. What are the application of scripting Language?

  • To automate certain tasks in a program
  • Extracting information from a data set
  • Less code intensive as compared to traditional programming language
  • can bring new functions to applications and glue complex systems together.

32. What is the use of where clauses? Give a Python statement by using where clause.

The WHERE clause is used to extract only those records that fulfill a specified condition. In this example we are going to display the different grades scored by male students from “student table”

Python statement:

cursor.execute(“SELECT DISTINCT (Grade) FROM student where gender=’M'”)

33. Write short notes on TCL Command in SQL

(i) COMMIT command

The COMMIT command is used to permanently save any transaction to the database.

(ii) ROLLBACK command

The ROLLBACK command restores the database to the last commited state.

(iii) SAVEPOINT command

The SAVEPOINT command is used to temporarily save a transaction so that you can rollback to the point whenever required.

 

Useful Links