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 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 Date | 12 Public Exam Paper 2024 | PDF Link |
8th March 2024 | Computer Science Original Question Paper 2024 | Download PDF |
8th March 2024 | Computer Science Question with Answer Key PDF | Download 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?
- Big W
- Big A
- Big O
- Big 5
Answer: Big O
2. เฎเฎฐเฏเฎตเฎฎเฏเฎชเฏเฎชเฏ เฎ เฎฑเฎฟเฎฏเฎชเฏเฎชเฎเฎพเฎค เฎคเฎฐเฎตเฏ เฎตเฎเฏ เฎเฎตเฏเฎตเฎพเฎฑเฏ เฎ เฎดเฏเฎเฏเฎเฎชเฏเฎชเฎเฏเฎฑเฎคเฏ?
The datetype whose representation is unknown are called as :
- Concrete datatype
- Bullt-in datetype
- Abstract datetype
- Derived datetype
Answer: Abstract datetype
3. เฎชเฏเฎคเฏเฎคเฎพเฎฉเฏ เฎธเฏเฎเฎฟเฎฐเฎฟเฎชเฏเฎเฏเฎเฏ เฎเฎฏเฎเฏเฎ เฎเฎจเฏเฎค เฎตเฎฟเฎเฏเฎฏเฏ เฎ เฎดเฏเฎคเฏเฎค เฎตเฏเฎฃเฏเฎเฏเฎฎเฏ?
Which key is pressed to execute Python Script?
- F1
- F5
- F3
- F2
Answer: F5
4. เฎชเฎฟเฎฉเฏเฎตเฎฐเฏเฎฎเฏ เฎเฎคเฏ เฎชเฏเฎพเฎฐเฏเฎณเฏ เฎเฏเฎฏเฏเฎฏ เฎตเฏเฎฃเฏเฎเฎฟเฎฏเฎคเฏ เฎคเฏเฎฐเฏเฎฎเฎพเฎฉเฎฟเฎเฏเฎเฎฟเฎฑเฎคเฏ?
- เฎเฎเฏเฎฎเฏเฎเฎฎเฏ
- เฎเฎฏเฎเฏเฎ เฎ เฎฎเฏเฎชเฏเฎชเฏ
- เฎจเฎฟเฎฐเฎฒเฏ เฎชเฏเฎฏเฎฐเฏเฎชเฏเฎชเฎฟ
- เฎคเฏเฎพเฎเฏเฎชเฏเฎชเฎพเฎฉเฏ
Answer: เฎเฎเฏเฎฎเฏเฎเฎฎเฏ
Which of the following defines what an object can do?
- Interface
- Operating System
- Interpreter
- Compiler
Answer: Interface
5. เฎเฎฃเฎฟเฎฉเฎฟ เฎเฏเฎดเฎฒเฎฟเฎฒเฏ เฎเฎณเฏเฎณ เฎตเฎณเฎเฏเฎเฎณเฏ เฎฏเฎพเฎฐเฏ เฎชเฎพเฎฐเฏเฎตเฏเฎฏเฎฟเฎ เฎฎเฎฑเฏเฎฑเฏเฎฎเฏ เฎชเฎฏเฎฉเฏเฎชเฎเฏเฎคเฏเฎค เฎฎเฏเฎเฎฟเฎฏเฏเฎฎเฏ เฎเฎฉเฏเฎชเฎคเฏ เฎตเฎฐเฏเฎฎเฏเฎฑเฏเฎชเฏเฎชเฎเฏเฎคเฏเฎคเฏเฎฎเฏ เฎเฎฐเฏ เฎชเฎพเฎคเฏเฎเฎพเฎชเฏเฎชเฏ เฎคเฏเฎพเฎดเฎฟเฎฒเฏ เฎจเฏเฎเฏเฎชเฎฎเฏ.
- เฎ เฎฃเฏเฎเฎฒเฏ เฎเฎเฏเฎเฏเฎชเฏเฎชเฎพเฎเฏ
- เฎเฎเฎตเฏเฎเฏเฎเฏเฎพเฎฒเฏ
- เฎเฎพเฎฉเฏเฎฑเฎฟเฎคเฎดเฏ
- เฎ เฎเฏเฎเฏเฎเฎพเฎฐเฎฎเฏ
Answer: เฎ เฎฃเฏเฎเฎฒเฏ เฎเฎเฏเฎเฏเฎชเฏเฎชเฎพเฎเฏ
Which of the following security technique that regulates who can view or use resources in a computing environment?
- Access control
- Password
- Certification
- Authentication
Answer: Access control
6. เฎชเฎฟเฎฉเฏเฎตเฎฐเฏเฎตเฎฉเฎตเฎฑเฏเฎฑเฏเฎณเฏ เฎเฎคเฏ เฎเฎฐเฎคเฏเฎคเฎฟเฎฉเฏ เฎคเฏเฎฃเฏเฎเฎพเฎเฏเฎเฏเฎฎเฏ เฎเฏเฎฏเฎฑเฏเฎเฏเฎฑเฎฟ
Which of the following is the Slicing Operator?
- < >
- [ ]
- ( )
- [ ]
Answer: [ ]
7. เฎชเฏเฎคเฏเฎคเฎพเฎฉเฎฟเฎฒเฏ เฎชเฏเฎพเฎฐเฏเฎณเฏ เฎเฎฐเฏเฎตเฎพเฎเฏเฎเฏเฎฎเฏ เฎเฏเฎฏเฎฒเฏเฎฎเฏเฎฑเฏ _______ เฎเฎฉ เฎ เฎดเฏเฎเฏเฎเฎชเฏเฎชเฎเฏเฎเฎฟเฎฑเฎคเฏ.
- เฎฎเฎคเฎฟเฎชเฏเฎชเฎฟเฎฐเฏเฎคเฏเฎคเฎฒเฏ
- เฎเฎเฏเฎเฎฟ
- เฎเฎพเฎฉเฏเฎฑเฏเฎฐเฏเฎตเฎพเฎเฏเฎเฎฒเฏ
- เฎ เฎดเฎฟเฎชเฏเฎชเฎฟ
Answer: เฎเฎพเฎฉเฏเฎฑเฏเฎฐเฏเฎตเฎพเฎเฏเฎเฎฒเฏ
In Python the process of creating an object is called as
- Initialize
- Constructor
- Instantiation
- Destructor
Answer: Instantiation
8. เฎเฏเฎพเฎเฏเฎเฏเฎเฎชเฏเฎชเฎเฏเฎ เฎเฏเฎฑเฏเฎฑเฏ เฎตเฏเฎฑเฏเฎฑเฎฟเฎเฎฐเฎฎเฎพเฎ เฎเฎฏเฎเฏเฎเฏเฎตเฎคเฎฑเฏเฎเฏ, เฎชเฎฟเฎฉเฏเฎตเฎฐเฏเฎตเฎฉเฎตเฎฑเฏเฎฑเฏเฎณเฏ เฎเฎฐเฎฟเฎฏเฎพเฎฉ เฎเฎฉเฏเฎฑเฏ เฎคเฏเฎฐเฏเฎจเฏเฎคเฏเฎเฏเฎเฏเฎเฎตเฏเฎฎเฏ
if ______ : print(x, โis a leap yearโ)
- x/4=0
- x%2=0
- x%4=0
- x%4==0
Answer: x%4==0
Pick the correct one to execute the given statement successfully.
- x/4=0
- x%2=0
- x%4=0
- x%4==0
Answer: x%4==0
9. SELECT เฎเฏเฎฑเฏเฎฑเฏเฎเฏเฎเฏ เฎชเฎฏเฎฉเฏเฎชเฎเฏเฎฎเฏ เฎเฎฟเฎฉเฏเฎฉเฎฎเฏ
What symbol is used for SELECT statement?
if ______ : print(x, โis a leap yearโ)
- X
- ฯ
- ฮฉ
- โ
Answer: ฯ
10. If List = [10, 20, 30, 40, 50] เฎเฎฉเฎฟเฎฒเฏ List [2] = 35-เฎฉเฏ เฎตเฎฟเฎเฏ
- [10, 20, 35, 40, 50]
- [35, 10, 20, 30, 40, 50]
- [10, 35, 30, 40, 50]
- [10, 20, 30, 40, 50, 35]
Answer: [10, 20, 35, 40, 50]
11. CSV เฎเฏเฎพเฎชเฏเฎชเฎพเฎฉเฎคเฏ ________ เฎเฎฉเฎตเฏเฎฎเฏ เฎ เฎดเฏเฎเฏเฎเฎชเฏเฎชเฎเฏเฎเฎฟเฎฑเฎคเฏ.
A CSV file is also known as a ________.
- String File
- Flat File
- Random File
- 3D File
Answer: Flat File
12. SQL-เฎฒเฏ เฎฎเฎฟเฎเฎตเฏเฎฎเฏ เฎชเฏเฎพเฎคเฏเฎตเฎพเฎ เฎชเฎฏเฎฉเฏเฎชเฎเฏเฎคเฏเฎคเฎชเฏเฎชเฎเฏเฎฎเฏ เฎเฏเฎฑเฏเฎฑเฏ
The most commonly used statement in SQL is:
- execute
- cursor
- commit
- 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=โ)
- 0 1 3 4
- 0 1 2
- 0 1 2 3 4
- 0 1 2 3
Answer: 0 1 3 4
14. _________ เฎ เฎฉเฏเฎคเฏเฎคเฏ เฎตเฎณเฎเฏเฎเฎณเฏเฎฏเฏเฎฎเฏ เฎเฎฉเฏเฎฑเฏเฎชเฎเฏเฎ เฎเฎฑเฏเฎฑเฏ เฎเฎพเฎเฏเฎเฎฟ เฎคเฎฟเฎฐเฏเฎฏเฎฟเฎฒเฏ เฎเฎพเฎฃเฏเฎชเฎฟเฎเฏเฎ เฎชเฎฏเฎฉเฏเฎชเฎเฏเฎเฎฟเฎฑเฎคเฏ
- เฎชเฏเฎพเฎฐเฏเฎณเฏเฎเฎณเฏ
- เฎเฎเฏเฎฎเฏเฎเฎฎเฏ
- เฎตเฎฐเฏเฎเฎฒเฏ
- เฎเฏเฎทเฏ เฎชเฏเฎพเฎฐเฏเฎเฏ
Answer: เฎเฏเฎทเฏ เฎชเฏเฎพเฎฐเฏเฎเฏ
_________ is a collection of resources assembled to create a single unified visual display
- Objects
- Interface
- Graphics
- Dashboard
Answer: Dashboard
15. เฎเฎฐเฏ เฎคเฎฐเฎตเฏเฎคเฏเฎคเฎณเฎคเฏเฎคเฎฟเฎฒเฏ เฎเฎณเฏเฎณ เฎคเฎฐเฎตเฏ เฎตเฎฐเฎฟเฎเฏเฎฏเฎพเฎเฏเฎเฎฎเฏ เฎเฏเฎฏเฏเฎฏ เฎชเฎฏเฎฉเฏเฎชเฎเฏเฎฎเฏ clause :
The clause used to sort data in a database:
- GROUP BY
- SORT BY
- SELECT
- 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 them | They 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.
ย