Kerala Plus Two Computer Science Previous Year Question Paper SAY 2018 with Answers

Download Kerala Board Solutions for Class 12 Computer Science

Access comprehensive textbook solutions for using the official curriculum guides for Class 12 Computer Science. Designed to align with the 2026-27 Kerala Board standards, these detailed answers help students reinforce core academic concepts.

Access Kerala Board Solutions and Answers

Access the complete solution PDF for Class 12 Computer Science below. Regular practice with these targeted textbook answers builds familiarity with standard question patterns and helps secure higher marks in final school evaluations.

Part A – Answer all questions from 1 to 5. Each carries 1 score.

Question 1: The ability of data to be processed in more than one form is called ________.

Answer:

Polymorphism

Exam Tips:

a) Polymorphism means "many forms"; function overloading and operator overloading are examples in C++.

 

Question 2: Each node in a linked list has a ________ to the next node.

Answer:

Pointer (link)

Exam Tips:

a) A node has two parts: the data and the pointer (link) to the next node. The last node's pointer is NULL.

 

Question 3: NORESIZE is an attribute of the ________ tag.

Answer:

<frame>

Exam Tips:

a) NORESIZE stops the user from changing the size of a frame by dragging its border. Write the tag with angle brackets.

 

Question 4: In client-side scripting, processing is done by the ________.

Answer:

Browser (the client)

Exam Tips:

a) In server-side scripting the web server does the processing; keep this pair clear.

 

Question 5: VPS stands for ________.

Answer:

Virtual Private Server

Exam Tips:

a) Write the full form in capitals for each word, exactly as above.

 

Part B – Answer any 9 questions from 6 to 16. Each carries 2 scores.

Question 6: What is a self-referential structure?

Answer:

A self-referential structure is a structure that has a member which is a pointer to the same structure type.
Example:
struct date
{
    int dd, mm, yyyy;
    date *ptr;
};

Exam Tips:

a) Always give the definition and a short example; the example carries a mark.
b) Self-referential structures are used to build linked lists, where each node points to the next node.

 

Question 7: What is the difference between the two declaration statements given below?
(a) int *ptr = new int(10);
(b) int *ptr = new int[10];

Answer:

(a) It allocates memory for a single integer dynamically and initialises it with the value 10.
(b) It allocates a dynamic array of 10 integers; the size of the array is 10 and no values are assigned.

Exam Tips:

a) Note the type of bracket: round brackets ( ) give the initial value, square brackets [ ] give the size of an array.
b) Memory allocated by new[] should be released using delete[].

 

Question 8: Differentiate static and dynamic data structures. Give an example for each.

Answer:

Main memory can be allocated in two ways: static memory allocation and dynamic memory allocation.
Static data structure: The amount of memory needed is known in advance and is allocated at compile time itself. The size cannot be changed during execution. Example: an array, such as int x[10]; or a simple variable, int x = 10;
Dynamic data structure: The amount of memory needed is not known in advance, so memory is allocated as and when required during run time. The size can grow or shrink while the program runs. The 'new' operator is used for this.
Syntax: datatype *pointer_variable = new datatype;
Example: int *ptr = new int; Linked lists, stacks and queues built using pointers are dynamic data structures.

Exam Tips:

a) Write two or three differences (when memory is allocated, whether the size can change) and one example for each.
b) Mention the 'new' operator for dynamic allocation; it is the keyword the examiner looks for.

 

Question 9: Categorise the following HTML tags appropriately: <br>, <h1>, <img>, <table>

Answer:

Empty tagsContainer tags
<br><h1>
<img><table>

Exam Tips:

a) Empty tags have no closing tag (<br>, <img>); container tags have both an opening and a closing tag.

 

Question 10: Explain any two data types in JavaScript.

Answer:

Unlike C++, JavaScript uses only three basic data types.
1. Number: Any number (whole or fractional) with or without a sign. Examples: +1977, -38.0003, -100, 3.14157.
2. String: A combination of characters enclosed within quotes. Examples: "BVM", "abc@example.com".
3. Boolean: It can store either true or false. It is case sensitive, so TRUE or FALSE cannot be used.

Exam Tips:

a) You need explain only two, but give a clear example for each.
b) Remember that Boolean values are written in lower case: true and false.

 

Question 11: Write the JavaScript code to display "Welcome to Kerala" inside the <h1> tag as shown in the HTML page.
<html>
<body>
<script language="javascript">
<h1> ............. </h1>
</script>
</body>
</html>

Answer:

The missing part is the JavaScript statement document.write("Welcome to Kerala"); placed so that its output appears inside the <h1> tag:
<html>
<body>
<h1>
<script language="javascript">
document.write("Welcome to Kerala");
</script>
</h1>
</body>
</html>

Exam Tips:

a) document.write() is the JavaScript method that writes output into the page; the text goes inside double quotes.
b) End the statement with a semicolon and keep the script tag inside the h1 tag so that the text appears as a heading.

 

Question 12: Explain any two components of a DBMS.

Answer:

The components of a DBMS are:
1. Database: It is the main component, where the data is stored.
2. Data Definition Language (DDL): It is used to define the structure of a table.
3. Data Manipulation Language (DML): It is used to add, retrieve, modify and delete records in a database.
4. Users: Users interact with the DBMS with the help of programs.

Exam Tips:

a) Explain exactly two components in one or two lines each; do not write more than needed.

 

Question 13: Consider the following table.

S.No.NameAgeTotal
1Albert5090
2Einstein6095
3Kalam7094
4Raman9098
5Babbage9599

(a) Identify the degree and cardinality of the given table.
(b) Identify a suitable primary key for the given table.

Answer:

(a) Degree = 4 (number of columns); Cardinality = 5 (number of rows).
(b) S.No. is the primary key, because its values are unique for every row.

Exam Tips:

a) Degree is the number of columns (attributes) and cardinality is the number of rows (tuples). Do not count the header row.
b) Name, Age and Total may repeat, so they are not suitable as a primary key.

 

Question 14: Write the output of the following PHP code fragment.
function justAfun($num)
{
    $num = $num * 5 + ($num + 6);
    return $num;
}
echo justAfun(100);

Answer:

$num = 5 × 100 + (100 + 6) = 500 + 106 = 606
So the output is 606.

Exam Tips:

a) Follow the order of operations: multiplication first, then the bracket, then addition.
b) Write the final output as a single value, 606.

 

Question 15: Compare serial and parallel computing.

Answer:

Serial computingParallel computing
A single processor is usedMultiple processors are used, with shared memory
A problem is divided into a series of instructionsA problem is divided into smaller parts that can be solved simultaneously
Instructions are executed sequentiallyInstructions are executed simultaneously
Only one instruction is executed on a single processor at any momentMore than one instruction is executed on multiple processors at any moment

Exam Tips:

a) A two-column table is the neatest way to answer "compare" and "differentiate" questions.
b) Give at least two clear points of difference.

 

Question 16: How does ICT help students in learning?

Answer:

ICT helps students through e-learning. The advantages of e-learning are:
1. It can offer various courses to a large number of students at distant locations.
2. It saves journey time and money, instructor fees and so on.
3. People can enjoy learning at a lower cost.
4. It enables people to do courses conducted by national or international institutions.

Exam Tips:

a) Two-score answers need two to four clear points; write them as a numbered list.

 

Part C – Answer any 9 questions from 17 to 27. Each carries 3 scores.

Question 17: What is a pointer in C++? Declare a pointer and initialise it with the name of your country.

Answer:

A pointer is a variable that stores the memory address of another variable.
Syntax: data_type *variable;
Program:
#include<iostream>
using namespace std;
int main()
{
    const char *ptr = "India";
    cout << ptr;
    return 0;
}
Output: India

Exam Tips:

a) Give the definition, the syntax and a working declaration with initialisation; each earns a score.
b) A character pointer can be initialised directly with a string, as shown.
c) Remember to include iostream and write the program inside main().

 

Question 18: What is procedural oriented programming? What are the disadvantages of procedural oriented programming?

Answer:

A program in a procedural language consists of a list of instructions that are carried out step by step, grouped into functions.
The disadvantages of procedural programming are:
a) Data is undervalued: The importance is given to doing things rather than to data. Data is exposed to all functions, so there is a chance that it will be accessed or destroyed accidentally or intentionally by many functions in a program.
b) Adding new data requires modifying many functions: A program may contain many functions that access different data in different places. If new data items are added, all the functions that access that data must be modified, which is a laborious task.
c) Creating new data types is difficult: Procedural languages have built-in data types such as int, float, double and char. Extensibility is the ability to create new data types without major rewriting of the basic architecture. Procedural languages are not extensible.
d) Poor real-world modelling: The procedural paradigm treats data and functions as separate things rather than a single unit, so real-life situations cannot be modelled easily.

Exam Tips:

a) Give a one-line definition first, then at least three disadvantages with a short explanation each.
b) Use the key phrases: data is exposed, difficult to add new data, no new data types, poor real-world modelling.

 

Question 19: Write an algorithm to add a new item into a queue.

Answer:

Algorithm to insert an item into a circular queue of size N:
Step 1: If (front = 1 and rear = N) or (front = rear + 1)
    Then print "OVERFLOW" and return
Step 2: If front = NULL
    Then set front = 1 and rear = 1
    Else if rear = N
    Then set rear = 1
    Else set rear = rear + 1
    End if
Step 3: Set Queue[rear] = item
Step 4: Stop

Exam Tips:

a) Check for overflow first, then handle the empty queue, then move the rear pointer, and finally store the item.
b) The circular queue wraps around: when rear reaches N, it goes back to 1.

 

Question 20: List and explain any three attributes of the INPUT tag in HTML.

Answer:

The <input> tag is used to create input controls. Its attributes are:
1. type: It decides the type of the control. The main values of the type attribute are:
    text – creates a text box
    password – creates a password text box
    checkbox – creates a check box
    radio – creates a radio button
    reset – creates a reset button
    submit – creates a submit button
    button – creates a push button
2. name: It gives a name to the control, which is used to identify its value when the form is processed.
3. value: It gives the initial value of the control, or the caption shown on a button.
Other attributes are size (width of the text box) and maxlength (maximum number of characters allowed).

Exam Tips:

a) Name three attributes and explain each in one line; the type attribute with a few of its values is the safest first point.
b) Write the attribute names in lower case.

 

Question 21: Consider the string "Gandhiji". Write a JavaScript code fragment to do the following tasks.
(a) Convert the string to upper case.
(b) Find the length of the string.
(c) Display the 3rd letter in the string.

Answer:

(a) var x = "Gandhiji";
alert(x.toUpperCase());
(b) var x = "Gandhiji";
alert("The number of characters is " + x.length);
(c) var x = "Gandhiji";
alert(x.charAt(2));

Exam Tips:

a) The index of the first character is 0, so the 3rd letter is charAt(2); the result is 'n'.
b) length is a property, so it is written without brackets; toUpperCase() and charAt() are methods and need brackets.

 

Question 22: What is FTP client software? Differentiate FTP and SFTP.

Answer:

FTP client software: It is software that connects a client computer to a remote web server so that files can be transferred between them. Using it we can upload files from our computer to the web server (and download them) by the 'drag and drop' method. Access is allowed only with a username and password. Popular FTP clients are FileZilla, CuteFTP and SmartFTP.
Difference between FTP and SFTP:
FTP (File Transfer Protocol) transfers files without encryption, so the username, password and data can be read by others on the network.
SFTP (SSH File Transfer Protocol, or Secure FTP) transfers files through SSH (Secure Shell), so the username, password and data are encrypted and the website files are secure.

Exam Tips:

a) Give the full forms (FTP, SFTP, SSH) and the main difference, which is security (encryption).
b) Name at least one FTP client, such as FileZilla.

 

Question 23: List and explain the different database users in a DBMS.

Answer:

The users of a database are:
1. Database Administrator (DBA): The person who has central control over the DBMS.
2. Application programmers: Computer professionals who interact with the DBMS through programs.
3. Naive users (end users): They use the database through ready-made applications and do not know the details of the DBMS.

Exam Tips:

a) Write the name of each user type as a heading and explain it in one line.
b) The DBA is the most important user, as the DBA controls access and security.

 

Question 24: Differentiate DELETE and DROP in SQL. Write the syntax of DELETE and DROP.

Answer:

DELETEDROP
It is a DML commandIt is a DDL command
Used to delete rows in a tableUsed to delete the whole table
The table still exists, so rows can be inserted againThe table no longer exists, so rows cannot be inserted

Syntax:
DELETE FROM <table name> WHERE <condition>;
DROP TABLE <table name>;

Exam Tips:

a) Mention DML and DDL in the difference; this is the main point examiners look for.
b) Write the syntax with a semicolon at the end.

 

Question 25: Name the different types of arrays in PHP. Explain with an example.

Answer:

In PHP an array is a collection of key and value pairs. Unlike C++, PHP allows either non-negative integers or strings as keys.
The types of arrays in PHP are:
1. Indexed arrays
2. Associative arrays
3. Multidimensional arrays
Indexed arrays: The elements are identified by an index, and the index of the first element is zero. The function array() is used to create an array.
Syntax: $array_name = array(value1, value2, ...);
or $array_variable[key] = value;
Example:
$mark = array(60, 70, 80);
$course = array("Science", "Commerce", "Humanities");
Associative arrays: Arrays with named keys (string indices) are called associative arrays.
Syntax: $variable_name = array(key1 => value1, key2 => value2, ...);
Example:
$course = array("Computer Science" => "05", "Commerce" => "39", "Science" => "01");
Multidimensional arrays: An array in which each element is itself an array.
Example:
$marks = array(array(60, 70), array(80, 90));

Exam Tips:

a) Name all three types, and give a syntax and example for at least two of them.
b) Every PHP variable starts with the dollar sign, and keys and values are separated by => in associative arrays.

 

Question 26: Discuss any three information security laws for protecting information shared over cyberspace.

Answer:

In India, cyber crimes are dealt with under the Information Technology Act, 2000, which gives legal recognition to electronic records and digital signatures and provides punishment for offences such as hacking and data theft. To protect information over the internet, the following guidelines should be followed:
1. Emails may contain viruses, so do not open unwanted emails.
2. Download files only from reputed sites.
3. Avoid clicking on pop-up advertisements.
4. Most viruses spread through USB drives, so use them cautiously.
5. Use a firewall on your computer.
6. Use anti-virus software and update it regularly.
7. Use spam-blocking software.
8. Take backups at regular intervals.
9. Use strong passwords, that is, a mixture of letters (a-z and A-Z), numbers and special characters.
10. Do not use bad or rude language on social media and in emails.
11. Untick 'Remember Me' before logging in.

Exam Tips:

a) Start with the legal point (IT Act, 2000) and then give at least three guidelines with a short reason each.
b) For three scores, three well-explained points are enough; do not just list a dozen words.

 

Question 27: Briefly explain any three applications of computational intelligence.

Answer:

Computational intelligence is the ability of a computer to face and solve real-life problems just as an intelligent human being does. It includes Artificial Neural Networks (ANN), Evolutionary Computation (EC), Swarm Intelligence (SI) and Fuzzy Systems (FS).
A) Artificial Neural Networks (ANN): The brain is a complex, nonlinear and parallel computer that can perform tasks such as pattern recognition, perception and motor control. An ANN simulates biological neural systems so that a machine can learn, memorise and generalise like human beings. The human brain cortex is said to have 10 to 500 billion neurons with about 60 trillion synapses (a synapse is a structure that lets a neuron pass an electrical signal).
B) Evolutionary Computation (EC): It is the simulation of natural evolution, that is, survival of the fittest. It is applied in data mining, fault diagnosis, classification, scheduling and so on.
C) Swarm Intelligence (SI): It is the study of the behaviour of colonies or groups of social animals, birds, insects and ants, and of how they communicate and manage their colonies.
D) Fuzzy Systems: Just as human beings use common sense in facing a problem, fuzzy systems can use common sense and behave like a human being. They are used to control gear transmission and braking systems, lifts, home appliances, traffic signals and so on.

Exam Tips:

a) Choose any three of the four types (ANN, EC, SI, FS) and give one application or idea for each.
b) Start with a one-line definition of computational intelligence if you have time.

 

Part D – Answer any 2 questions from 28 to 30. Each carries 5 scores.

Question 28: (a) Name and explain any two attributes of the FORM tag. (2)
(b) Check the given HTML code. Fill in the missing code to generate an output as shown in the figure. (3)
(Figure: a login form with a text box for username, a password box, a Login button and a Reset button.)
<html>
<body>
<form name="loginForm">
username: <input type="text">
password: ............................
<input type="............" value="Login">
............................
</form>
</body>
</html>

Answer:

a) Attributes of the <form> tag:
1. action: It gives the name of the program (including its path) stored in the web server that will process the form data.
2. method: It specifies how the data is sent. There are two methods, get and post.
3. target: It specifies the target window for displaying the result. The values are:
    _blank – opens in a new window
    _self – opens in the same frame
    _parent – opens in the parent frameset
    _top – opens in the main browser window
    name – opens in the window with the specified name
b) The missing code is:
password: <input type="password">
<input type="submit" value="Login">
<input type="reset" value="Reset">

Exam Tips:

a) Name any two attributes and explain each in a line; action and method are the commonest.
b) The type "password" hides the typed characters, "submit" sends the form and "reset" clears it.
c) Write the quotes and angle brackets carefully in the code.

 

Question 29: (a) What are scripts in web programming? (2)
(b) Differentiate client-side scripting and server-side scripting. (3)

Answer:

a) Scripts are small programs embedded in HTML pages; the <script> tag is used to write them. There are two types:
1. Client scripts: These are executed by the browser (client), which reduces network traffic and the workload on the server.
2. Server scripts: These are executed by the server, and the result is returned to the client browser as a web page.
b)

Client-side scriptingServer-side scripting
The script is copied to the client browserThe script is kept on the web server
It is executed by the clientIt is executed by the server and the result is sent back to the browser window
Used for client-level validationUsed to connect to the database in the server
It is possible for the user to block itIt cannot be blocked by the user
It depends on the type and version of the browserIt does not depend on the type and version of the browser

Exam Tips:

a) Give at least three differences in the table for the three scores.
b) Mention examples: JavaScript for client-side and PHP for server-side scripting.

 

Question 30: Write SQL queries based on the table PRODUCT given below.

PIDNameProductPrice
P1LukraSeafood4000
P5Exotic LiquidsMineral water7000
K1Tokyo TradersSoft drink5000
R3ChangIron8000
W5Tokyo TradersSoft drink3000

1. Set PID as the primary key.
2. Display the Name and Price of the product having the highest price.
3. Change the Name of the supplier 'Exotic Liquids' to 'Singapore Foods'.
4. Delete all products of the supplier 'Tokyo Traders'.
5. Display the Product and Name (supplier) of all products in ascending order of price.

Answer:

1. ALTER TABLE PRODUCT ADD PRIMARY KEY (PID);
(or, while creating the table: CREATE TABLE PRODUCT (PID VARCHAR(2) PRIMARY KEY, Name VARCHAR(20), Product VARCHAR(20), Price DECIMAL(8,2));)
2. SELECT Name, Price FROM PRODUCT WHERE Price = (SELECT MAX(Price) FROM PRODUCT);
3. UPDATE PRODUCT SET Name = 'Singapore Foods' WHERE Name = 'Exotic Liquids';
4. DELETE FROM PRODUCT WHERE Name = 'Tokyo Traders';
5. SELECT Product, Name FROM PRODUCT ORDER BY Price ASC;

Exam Tips:

a) Use ALTER TABLE ... ADD PRIMARY KEY for an existing table; CREATE TABLE is used only while creating it.
b) The highest price needs a sub-query with MAX(); do not use ORDER BY here.
c) Strings in SQL go within single quotes, and every query ends with a semicolon.
d) For ascending order use ORDER BY Price ASC (ASC is also the default).

 

Computer Science Class 12 Curriculum Solutions:

Accessing Solutions

Review comprehensive exercise answers for Class 12 Computer Science . Fully updated to match current Kerala Board syllabus guidelines, these textbook solutions help students verify their work and maintain accurate study notes.

Concept-Driven Answers for Class 12 Computer Science

Clear, methodical explanations accompany every challenging problem within the Class 12 Computer Science text. Engaging with these detailed answers lays a solid foundation for advanced learning and improves foundational clarity for upcoming assessments.

Maximizing Study Efficiency

Consistent practice with these solution guides cultivates faster problem-solving habits and clearer logical structuring. For a complete preparation experience, pair these textbook answers with our dedicated revision notes and sample papers for Class 12 Computer Science.

FAQs

Where can I find the latest Kerala Plus Two Computer Science Previous Year Question Paper SAY 2018 with Answers for the 2026-27 session?

The complete and updated Kerala Plus Two Computer Science Previous Year Question Paper SAY 2018 with Answers is available for free on StudiesToday.com. These solutions for Class 12 Computer Science are as per latest Kerala Board curriculum.

Are the Computer Science Kerala Board solutions for Class 12 updated for the new 50% competency-based exam pattern?

Yes, our experts have revised the Kerala Plus Two Computer Science Previous Year Question Paper SAY 2018 with Answers as per 2026 exam pattern. All textbook exercises have been solved and have added explanation about how the Computer Science concepts are applied in case-study and assertion-reasoning questions.

How do these Class 12 Kerala Board solutions help in scoring 90% plus marks?

Toppers recommend using Kerala Board language because Kerala Board marking schemes are strictly based on textbook definitions. Our Kerala Plus Two Computer Science Previous Year Question Paper SAY 2018 with Answers will help students to get full marks in the theory paper.

Do you offer Kerala Plus Two Computer Science Previous Year Question Paper SAY 2018 with Answers in multiple languages like Hindi and English?

Yes, we provide bilingual support for Class 12 Computer Science. You can access Kerala Plus Two Computer Science Previous Year Question Paper SAY 2018 with Answers in both English and Hindi medium.

Is it possible to download the Computer Science Kerala Board solutions for Class 12 as a PDF?

Yes, you can download the entire Kerala Plus Two Computer Science Previous Year Question Paper SAY 2018 with Answers in printable PDF format for offline study on any device.