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

Step-by-Step Textbook Solutions for Class 12 Computer Science

Explore reliable textbook solutions for tailored for Class 12 learners. Utilizing these Computer Science answers ensures thorough preparation and strengthens foundational knowledge before final Kerala Board evaluations.

Download Textbook Solutions PDF

Navigate directly to the solved Computer Science textbook exercises using the digital viewer below. Each solution includes detailed step-by-step explanations, allowing students to instantly cross-check their work and identify areas requiring further revision.

Part A: One Score Questions

Question 1: Showing only the essential features and hiding the complexities from the outside world is referred to as ________.

Answer:

Abstraction.

Exam Tips:

a) Abstraction hides the "how" and shows only the "what"; do not confuse it with encapsulation, which wraps data and functions together.

 

Question 2: Name the data structure where memory allocation is done only at the time of execution.

Answer:

Linked list (a dynamic data structure).

Exam Tips:

a) Arrays get their memory before execution (static); linked lists get it during execution (dynamic).

 

Question 3: The space between the content and the cell border in a table can be changed using the ________ attribute.

Answer:

cellpadding

Exam Tips:

a) Cellpadding is the space between content and cell border; cellspacing is the space between two cells.

 

Question 4: What is the expansion of LAMP?

Answer:

Linux, Apache, MySQL, PHP.

Exam Tips:

a) Write all four names in the correct order: operating system, web server, database, scripting language.

 

Question 5: New domain names are checked in the database of ________ before approving registration.

Answer:

WHOIS (the WHOIS database).

Exam Tips:

a) WHOIS keeps the registration details of all domain names, so a new name can be checked for availability.

 

Part A: Two Score Questions

Question 6: Identify the errors in the following code fragment:
Struct
{
  int regno;
  char name[20];
  float mark = 100;
};

Answer:

The errors are:
1. The keyword must be written in lower case as struct, and the structure should be given a tag name, for example struct student.
2. A member of a structure cannot be given an initial value inside the structure declaration, so float mark = 100; is wrong. It should be declared as float mark; and a value assigned to a structure variable later.
The corrected code is:
struct student
{
  int regno;
  char name[20];
  float mark;
};

Exam Tips:

a) C++ is case sensitive, so struct must be in lower case.
b) Remember that a structure declaration only defines a new type; it does not reserve memory, so members cannot be initialised there.

 

Question 7: What is the difference between static and dynamic memory allocation?

Answer:

In static memory allocation, the memory needed is allocated before the program is executed and it stays fixed throughout the execution. An array is an example.
In dynamic memory allocation, memory is allocated during the execution of the program and can grow or shrink as needed. A linked list is an example.

Exam Tips:

a) Make the contrast clear: before execution and fixed (static) versus during execution and flexible (dynamic).
b) Give one example of each.

 

Question 8: Write an algorithm to add a new item into a stack.

Answer:

This is the PUSH operation. The algorithm is:
Step 1: If top = N, print "OVERFLOW" and stop.
Step 2: Set top = top + 1.
Step 3: Set Stack[top] = item.
Step 4: Stop.

Exam Tips:

a) The overflow check (stack full) must come first.
b) Write the steps in order and number them.

 

Question 9: Write the HTML code fragment to insert an image "Profile.jpg" aligned in the centre of a webpage.

Answer:

<center>
<img src="Profile.jpg" width="100" height="100">
</center>

Exam Tips:

a) Put the image tag inside the center tag and write the file name in quotes.
b) Giving width and height is good practice.

 

Question 10: The following code in HTML will call ShowMessage() in JavaScript.
<input type="button" value="show" onClick="ShowMessage();">
Modify the code to call ShowMessage() when
(a) the user moves the mouse over the button
(b) the user presses any key on the keyboard

Answer:

(a) <input type="button" value="show" onMouseOver="ShowMessage()">
(b) <input type="button" value="show" onKeyDown="ShowMessage()">

Exam Tips:

a) Only the event attribute changes; keep the rest of the tag the same.
b) Use straight quotes, not curly quotes, in code.

 

Question 11: Consider two strings "Education is the most powerful weapon" and "you can use to change the world". Write JavaScript code to:
(a) Store these strings in two variables
(b) Combine the two string variables.

Answer:

<html>
<head>
<script language="JavaScript">
function combine()
{
  var str1, str2, str3;
  str1 = "Education is the most powerful weapon";
  str2 = "you can use to change the world";
  str3 = str1 + " " + str2;
  alert("The combined string is - " + str3);
}
</script>
</head>
<body>
<form name="frm">
<input type="button" value="Combine two strings" onClick="combine()">
</form>
</body>
</html>

Exam Tips:

a) Use the + operator to join (concatenate) strings in JavaScript.
b) Add a space between the two strings so that the words do not run together.

 

Question 12: What is a primary key? What is the significance of the primary key in a relation?

Answer:

A primary key is an attribute, or a set of attributes, chosen from the candidate keys to identify each row (tuple) of a relation uniquely. It cannot contain duplicate values and cannot be NULL.
Its significance is that every row can be identified without confusion, so no two rows of the relation are the same.

Exam Tips:

a) Mention both properties: unique and not null.
b) Give an example such as admission number in a student table.

 

Question 13: Consider the given table SPORTS and write relational expressions for the following:

PIDNameGoalsGames
1Maradona9085
2Carlos7068
3Messi8049
4Robert7560

(a) Select the names of all players.
(b) Select the Name and Goals of players who have scored more than 70 goals.

Answer:

(a) \(\pi_{Name}(SPORTS)\)
(b) \(\pi_{Name,Goals}(\sigma_{Goals>70}(SPORTS))\)

Exam Tips:

a) \(\pi\) (project) picks columns and \(\sigma\) (select) picks rows; do not mix them up.
b) In (b) apply the condition first (inner bracket) and then project the columns.

 

Question 14: Name the global variables used for passing data using HTTP GET and POST requests.

Answer:

$_GET: used to collect data sent using the HTTP GET method.
$_POST: used to collect data sent using the HTTP POST method.

Exam Tips:

a) Write the variable names exactly, with the dollar sign and underscore, in capital letters.

 

Question 15: What is cyberspace? How has cyberspace influenced our life?

Answer:

Cyberspace is a virtual (not physical) environment created by the integration of telephone systems and computer systems.
It has influenced our life because services are available with great speed and at low cost. Government departments provide fast, reliable and convenient online services, which increase productivity. Online shopping, online banking, online auctions, online debates and many other services are offered through the Internet.

Exam Tips:

a) Define cyberspace in one line, then give two or three real examples of its influence.

 

Question 16: What are Artificial Neural Networks?

Answer:

The brain is a complex, nonlinear and parallel computer that can recognise patterns, perceive and control movement. Artificial Neural Networks (ANN) simulate the biological neural system so that a computer can learn, memorise and generalise like human beings. The human brain cortex has many billions of neurons connected by trillions of synapses (a synapse is the structure that allows a neuron to pass an electrical signal to another).

Exam Tips:

a) Say that ANN is modelled on the brain's neurons and can learn from examples.
b) Mention uses such as pattern recognition if you have space.

 

Part A: Three Score Questions

Question 17: Read the following code fragment:
int a[] = {5, 10, 15, 20, 25};
int *p = a;
Predict the output of the following statements:
(a) cout<<*p;
(b) cout<<*p+1;
(c) cout<<*(p+1);

Answer:

(a) 5 (the content of the first address, that is a[0])
(b) 6 (the content of the first address plus 1, that is 5 + 1)
(c) 10 (the content of the next address, that is the second element a[1])

Exam Tips:

a) *p + 1 adds 1 to the value, while *(p+1) moves the pointer to the next element first; this difference is the point of the question.
b) Write the reason in brackets next to each output.

 

Question 18: What is the object-oriented programming paradigm? Give any two advantages.

Answer:

Procedural programming has many drawbacks, and OOP removes them. In OOP, data and functions are wrapped into a single unit called an object.
Advantages (any two):
1. It allows modularity, that is, a large program can be divided into smaller ones.
2. It supports data abstraction, so data is hidden and protected.
3. It allows code reusability.
4. Real-life entities can be created easily.
5. It is good for defining abstract data types and supports creating new data types.

Exam Tips:

a) Define the paradigm with the key idea of objects that combine data and functions.
b) Write exactly two advantages with a short explanation each.

 

Question 19: What is a data structure? How are data structures classified?

Answer:

A data structure is a particular way of organising logically related data items into a single unit.
Classification: data structures are classified as simple (array and structure) and compound. Compound data structures are further classified as linear and non-linear. A data structure is linear if its elements form a sequence (needing contiguous memory locations); otherwise it is non-linear.
Stack, queue and linked list are examples of linear data structures.

Exam Tips:

a) A small tree diagram (data structure, then simple and compound, then linear and non-linear) helps make the classification clear.
b) Give examples at the last level.

 

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

Answer:

1. bgcolor: sets the background colour of the page.
2. text: specifies the colour of the text content in the page.
3. background: sets an image as the background of the document body.

Exam Tips:

a) Give a one-line example such as <body bgcolor="yellow" text="blue"> to support the explanation.

 

Question 21: Identify suitable JavaScript data types for the following:
(a) "supercomputer"
(b) "true"
(c) 67.5

Answer:

(a) String
(b) String (it is written within quotes; the value true without quotes would be Boolean)
(c) Number

Exam Tips:

a) Anything within quotes is a string, whatever it contains.
b) JavaScript uses a single Number type for both integers and decimals.

 

Question 22: What is Responsive Web Design? What is its significance in modern computing devices?

Answer:

Responsive web design (introduced by Ethan Marcotte) is a way of designing a website so that its pages are displayed flexibly to suit the screen size of the device, such as a mobile phone, tablet, laptop or desktop.
Its significance is that earlier companies had to design a separate website for each screen size, but with responsive design only one website is needed, and it is displayed suitably on all devices.

Exam Tips:

a) Include the key idea: one website that adjusts to many screen sizes.

 

Question 23: Define the following terms:
(a) Relation
(b) Candidate key
(c) Tuples and attributes

Answer:

(a) Relation: a table in a relational database is called a relation.
(b) Candidate key: a minimal set of attributes that can uniquely identify each row of a relation.
(c) Tuple: a row of a relation. Attribute: a column of a relation.

Exam Tips:

a) Write each definition in one clear sentence.
b) Remember tuples are rows and attributes are columns.

 

Question 24: Write short notes on any three data types in SQL.

Answer:

1. CHAR: stores a fixed number of characters. It is declared as char(size).
2. VARCHAR: stores characters but uses only as much memory as needed for the data entered.
3. DEC or DECIMAL: stores numbers with a decimal point. It is declared as dec(size, scale), where size is the total number of digits.
4. INT or INTEGER: stores numbers without a decimal point. It takes no argument. Example: age int.
5. SMALLINT: stores small integers.
6. DATE: stores a date in the format yyyy-mm-dd. Example: '1977-05-28'.
7. TIME: stores time in the format HH:MM:SS. Example: '22:32:45'.
(Any three.)

Exam Tips:

a) Choose three you know well and add the declaration format with an example for each.

 

Question 25: What is the difference between echo and print in PHP?

Answer:

Both echo and print display data, but echo can display several values in one statement (separated by commas), while print can display only one value.
Example: echo "first output", "second output";
print "only one output";
Parentheses are optional for both; when parentheses are used with echo, only one value can be given.

Exam Tips:

a) The key difference is multiple values in echo versus one value in print.
b) Write a short example for each.

 

Question 26: Define the following cybercrimes:
(a) Identity theft
(b) Harassment
(c) Impersonation and cheating

Answer:

a) Identity theft: personal details (name, date of birth, address, phone number), card details (card number, PIN, expiry date, CVV) and bank details make up the identity of a person. Stealing this information and acting as the authorised person without permission is identity theft. Misuse of this information is a punishable offence.
b) Harassment: making bad comments about a person's gender, colour, race, religion or nationality on social media, using the Internet, is harassment (also called cyberstalking). It can harm friendships, career, self-image and confidence, and in some cases can lead to serious tragedy for a whole family or group.
c) Impersonation and cheating: creating fake accounts on social media and acting as the original person in order to cheat or mislead others. Examples: fake accounts on social media, fake SMS and fake emails.

Exam Tips:

a) Give a definition and one example for each crime.
b) Mention that these are punishable under the IT Act.

 

Question 27: Briefly explain the different types of cloud services.

Answer:

Cloud computing uses the Internet and central remote servers to maintain data and applications. Email, office software (word processor, spreadsheet, presentation), graphics software and similar services are examples. The information is kept on a central remote server, like clouds in the sky, hence the name.
The three major cloud service models are:
1. Software as a Service (SaaS): the provider offers applications and resources on demand. Examples: Google Docs, Adobe Creative Cloud, Microsoft Office 365.
2. Platform as a Service (PaaS): the provider gives subscribers access to the components they need to develop and run applications over the Internet. Examples: LAMP platform, ASP.NET, Google App Engine, Microsoft Azure.
3. Infrastructure as a Service (IaaS): the provider offers basic storage and computing capabilities as standardised services over the network. Examples: Amazon Web Services, Joyent, GoGrid.

Exam Tips:

a) Name all three models (SaaS, PaaS, IaaS) and expand the abbreviations.
b) Add one example for each.

 

Part A: Five Score Questions

Question 28: a) Name the different types of communication on the web and explain briefly.
b) What is a web server?

Answer:

a) Client to web server communication: this is communication between the client and the web server (for example a shopping site). The technology used to protect the data sent from the client to the server is HTTPS (HyperText Transfer Protocol Secure), which encrypts the user name, password and so on before sending. HTTPS uses Secure Sockets Layer (SSL), which ensures privacy and prevents unauthorised changes by others.
The steps are:
1. The browser requests a web page from the server.
2. The server returns its SSL certificate.
3. The browser checks the genuineness of the certificate with an authorised certification authority (for example Verisign).
4. The certification authority confirms whether the certificate is valid or not.
5. If it is valid, the browser encrypts the data and sends it. The certificate can be viewed by clicking the lock symbol.
Web server to web server communication: this is usually between the web server of a seller and another web server, normally a bank. For safe transactions, a digital certificate issued by a third party is used. A payment gateway is a server that acts as a bridge between the merchant's server and the bank's server to transfer money.
b) A web server is a powerful computer with high storage capacity, high speed and strong processing capability, with a server operating system and software that provides services such as www and e-mail. Popular server operating systems are Red Hat, openSUSE, Debian, Ubuntu, Sun Solaris and Microsoft Windows Server.

Exam Tips:

a) Name both types first (client to web server, and web server to web server), then explain each.
b) Allot about three scores of writing to part (a) and two to part (b).
c) Mention HTTPS, SSL and the digital certificate; these are the key terms.

 

Question 29: Identify the errors in the following HTML code:
(a) <UL type="A" start=5>
(b) <h1><b> web programming </b> </i> </h1>
(c) <img src='Profile.jpg' size=50>
(d) <a href="Contact@example.com">
(e) <frameset rows="50%, 25%, 25%">
<frame src="1.html">
<frame src="2.html">
</frameset>

Answer:

(a) The <UL> (unordered list) tag has no type="A" or start attribute in this form; these belong to the ordered list.
Correct code: <OL type="A" start="5">
(b) The closing </i> tag has no matching opening <i> tag.
Correct code: <h1><i><b> web programming </b></i></h1>
(c) The <img> tag has no size attribute; width and height are used.
Correct code: <img src="Profile.jpg" width="100" height="100">
(d) The word mailto: is missing when creating an email link, and the link has no text or closing tag.
Correct code: <a href="mailto:Contact@example.com">Contact us</a>
(e) The window is divided into three rows, but only two frames are given, so one frame is missing.
Correct code:
<frameset rows="50%, 25%, 25%">
<frame src="1.html">
<frame src="2.html">
<frame src="3.html">
</frameset>

Exam Tips:

a) Write the error and the corrected code for every part; both carry marks.
b) Check each tag for proper opening and closing, correct attribute names and quotes.

 

Free Kerala Board Textbook Explanations: Class 12 Computer Science

Official Kerala Board Solutions for

Explore reliable textbook solutions for tailored for Class 12 learners. Utilizing these complete exercise answers ensures your preparation aligns exactly with official Kerala Board standards for Computer Science.

Step-by-Step Explanations for

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.

Next Steps in Your Computer Science Revision

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 March 2018 with Answers for the 2026-27 session?

The complete and updated Kerala Plus Two Computer Science Previous Year Question Paper March 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 March 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 March 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 March 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 March 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 March 2018 with Answers in printable PDF format for offline study on any device.