Kerala Plus One Computer Science Previous Year Question Paper 2017 with Answers

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

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

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.

Question 1: The number (158)10 can be represented in the hexadecimal number system as ........

Answer:

9E
Divide 158 by 16 repeatedly: 158 = 16 × 9 + 14, and 14 is E in hexadecimal. Reading the remainders upwards gives 9E.

Exam Tips:

a) Hex digits above 9 are A=10, B=11, C=12, D=13, E=14, F=15.
b) Check by converting back: 9 × 16 + 14 = 158.

 

Question 2: a. Write the following memory devices in the order of their speed (fastest to slowest).
1. Cache
2. RAM
3. Hard disk
4. Registers
b. What do you mean by freeware and shareware?

Answer:

a. Registers, Cache, RAM, Hard disk
b. Freeware is copyrighted software that is made available for use free of charge for an unlimited period.
Shareware is commercial software that is distributed on a trial basis, without payment and with limited functionality. The user has to pay to get the full version.

Exam Tips:

a) Memory speed decreases as you move away from the CPU: registers, cache, RAM, then secondary storage.
b) Mention the time limit or limited features of shareware to separate it from freeware.

 

Question 3: a) Name the type of loop which can be used to ensure that the body of the loop will surely be executed at least once.
b) Consider the code given below and predict the output.
for (int i = 1; i <= 9; i = i + 2)
{
  if (i == 5) continue;
  cout << i << " ";
}

Answer:

a) The do-while loop (it checks the condition after executing the body).
b) The output is 1 3 7 9
i takes the values 1, 3, 5, 7, 9. When i is 5, the continue statement skips the cout statement, so 5 is not printed.

Exam Tips:

a) do-while is an exit-controlled loop, while for and while are entry-controlled loops.
b) continue skips only the current iteration; break would end the whole loop.

 

Question 4: Find the value of score[4] based on the following declaration statement.
int score[5] = {98, 87, 92, 79, 85};

Answer:

85
Array indexes start from 0, so score[0] = 98, score[1] = 87, score[2] = 92, score[3] = 79 and score[4] = 85.

Exam Tips:

a) The last element of an array of size 5 has index 4, not 5.

 

Question 5: Name the built-in function to check whether a character is alphanumeric or not.

Answer:

isalnum()

Exam Tips:

a) isalpha() checks only letters, isdigit() checks only digits, and isalnum() checks both.
b) These functions need the header file cctype (ctype.h).

 

Question 6: a. Different networks with different protocols are connected by a device called
1. Router
2. Bridge
3. Switch
4. Gateway
b. Define protocol.

Answer:

a. (4) Gateway
b. A protocol is a set of rules and conventions for transmitting data between devices.

Exam Tips:

a) A gateway is needed when two networks use different protocols; a bridge or switch joins networks that use the same protocol.
b) Give an example of a protocol, such as HTTP or TCP/IP.

 

Question 7: Find the best matches from the given definitions for the terms in the given list. (Worm, Hacking, Phishing, Spam, Trojan horse)
a. Unsolicited e-mails sent indiscriminately.
b. A technical effort to manipulate the normal behaviour of a networked computer system.
c. A stand-alone malware program that usually makes the data traffic slow.
d. An attempt to acquire information like usernames and passwords by posing as the original website.
e. Appears to be useful software but does damage, like deleting necessary files.

Answer:

DefinitionTerm
aSpam
bHacking
cWorm
dPhishing
eTrojan horse

Exam Tips:

a) A worm spreads by itself, while a Trojan horse hides inside useful-looking software.
b) Phishing uses fake websites or e-mails; hacking is unauthorised access to a system.

 

Question 8: Represent -38 in 2's complement form.

Answer:

Using 8 bits:
Binary of 38 = 00100110
1's complement = 11011001
Add 1: 11011001 + 1 = 11011010
So -38 in 2's complement form is 11011010.

Exam Tips:

a) Steps: write the positive number in binary, find the 1's complement (flip every bit), then add 1.
b) State the number of bits used (8 here) and show each step.

 

Question 9: a) Write an algorithm to print the numbers up to 100 in reverse order, that is, the output should be 100, 99, 98, 97, ...
OR
b) Draw a flowchart to check whether the given number is positive, negative or zero.

Answer:

a) Let i be the variable.
Step 1: Start
Step 2: Let i = 100
Step 3: Print i
Step 4: i = i - 1
Step 5: If i >= 1, go to Step 3
Step 6: Stop

b) Flowchart:

StartRead NN > 0 ?NoYesPrint PositiveN < 0 ?YesPrint NegativeNoPrint ZeroStop

Exam Tips:

a) In the algorithm, initialise i to 100 and reduce it by 1 each time; the loop ends when i becomes 0.
b) In a flowchart, use an oval for start/stop, a parallelogram for input/output and a diamond for decisions.
c) Attempt only one of the two alternatives.

 

Question 10: Identify the invalid literals from the following and write a reason for each.
a. 2E3.5
b. "9"
c. 'hello'
d. 55450

Answer:

a. 2E3.5 is invalid because the exponent in a real literal cannot be a fractional number.
c. 'hello' is invalid because a string literal must be enclosed in double quotes; single quotes are used only for a single character.
"9" is a valid string literal and 55450 is a valid integer literal.

Exam Tips:

a) Remember: single quotes for one character ('a'), double quotes for strings ("hello").
b) Give a reason for every invalid literal, since the marks are for the reasons.

 

Question 11: The following C++ code segment is a part of a program written by Smitha to find the average of 3 numbers.
int a, b, c;
float avg;
cin >> a >> b >> c;
avg = (a + b + c) / 3;
cout << avg;
What will be the output if she inputs 1, 4 and 5? How can you correct it?

Answer:

The output will be 3.
The sum is 10, and since a, b and c are integers, 10 / 3 is an integer division that gives 3 (the decimal part is lost).
Correction: use avg = (a + b + c) / 3.0; or avg = (float)(a + b + c) / 3; or declare a, b and c as float. The output will then be 3.33333.

Exam Tips:

a) Integer divided by integer always gives an integer result in C++.
b) Mention one correction clearly, such as type casting or dividing by 3.0.

 

Question 12: Let M[3][3] be a 2D array that contains the elements of a square matrix. Write C++ statements to find the sum of the diagonal elements.

Answer:

#include<iostream>
using namespace std;
int main()
{
  int M[3][3], i, j, s = 0;
  cout << "Enter the elements\n";
  for (i = 0; i < 3; i++)
    for (j = 0; j < 3; j++)
      cin >> M[i][j];
  for (i = 0; i < 3; i++)
    s = s + M[i][i];
  cout << "Sum of diagonal elements is: " << s;
  return 0;
}

Exam Tips:

a) The diagonal elements of a square matrix are those with equal row and column index, M[i][i].
b) Initialise the sum to 0 before the loop.

 

Question 13: What are the advantages of using the gets() function in a C++ program to input string data? Explain with an example.

Answer:

The gets() function lets us input a string that contains white spaces (blanks).
The cin statement reads characters only up to the first white space, but gets() accepts a whole line of characters including spaces from the keyboard and stores it in a character array.
Example:
char str[30];
gets(str);
puts(str);
If the input is "Good morning", gets() stores the full text, while cin >> str would store only "Good".

Exam Tips:

a) State clearly the difference from cin: cin stops at a space, gets() does not.
b) gets() and puts() need the header file cstdio (stdio.h).

 

Question 14: Compare any three features of the five generations of computers.

Answer:

GenerationPeriodTechnology usedOther features and examples
First1940-56Vacuum tubesStored program concept was introduced. Examples: ENIAC (Electronic Numerical Integrator and Calculator), EDVAC (Electronic Discrete Variable Automatic Computer), UNIVAC (Universal Automatic Computer)
Second1956-63TransistorsSmaller, faster, more powerful and cheaper to make. Programming languages FORTRAN and COBOL were introduced. Examples: IBM 1401, IBM 1620
Third1964-71Integrated circuits (ICs)ICs greatly reduced the size and increased the speed and efficiency. Keyboards and monitors were introduced; the high-level language BASIC was developed. Examples: IBM 360, IBM 370
Fourth1971 onwardsMicroprocessors (Large Scale Integration)The computers we use today; microcomputers that are smaller and have faster access and processing speeds. Examples: IBM PC, Apple II
FifthPresent and futureBased on artificial intelligenceAims at machines that respond to natural language input and are capable of learning and self-organisation

Exam Tips:

a) Compare on the same three features for each generation (period, technology, examples) in a table.
b) Learn the technology order: vacuum tube, transistor, IC, microprocessor, AI.

 

Question 15: Using the algebraic method, prove that
\(\bar{Y} \cdot \bar{Z} + \bar{Y} \cdot Z + Y \cdot Z + Y = 1\)

Answer:

LHS \(= \bar{Y} \cdot \bar{Z} + \bar{Y} \cdot Z + Y \cdot Z + Y\)
\(= \bar{Y}(\bar{Z} + Z) + Y(Z + 1)\)
\(= \bar{Y} \cdot 1 + Y \cdot 1\) (since \(Z + \bar{Z} = 1\) and \(Z + 1 = 1\))
\(= \bar{Y} + Y\)
\(= 1\) = RHS
Hence proved.

Exam Tips:

a) Group terms with a common factor first, then use the laws \(A + \bar{A} = 1\) and \(A + 1 = 1\).
b) Write the law used at each step; each step carries marks.

 

Question 16: "It is better to give proper documentation within the program." Give a reason.

Answer:

Documentation is an ongoing process that starts in the problem study phase and continues till implementation and operation. We can write comments in the source code as part of documentation.
It gives enough information to understand how the program works and the logic used. It helps in debugging and also in modifying the program at a later stage.

Exam Tips:

a) Mention at least two benefits: easy understanding and easy debugging or modification.
b) Comments in C++ are written with // or /* ... */.

 

Question 17: Briefly explain the three components in the structure of a C++ program.

Answer:

1. Preprocessor directives: A C++ program starts with preprocessor directives. These are instructions to the compiler to process certain information before the actual compilation starts. #include is used to link the header files of the C++ library; others are #define, #undef, etc.
2. Header files: They contain information about functions, objects and predefined data types and are available along with the compiler. The header file iostream contains the information about the objects cin and cout.
3. The main() function: Execution starts at main() and ends within main(). If other functions are used, they are called from main(). The function header main() is followed by its body, a set of statements within braces { }. Each statement ends with a semicolon (;).

Exam Tips:

a) Write the three headings clearly, with one example each (#include, iostream, main()).
b) Remember that program execution always begins from main().

 

Question 18: Write an algorithm for arranging the elements of an array in ascending order using bubble sort.

Answer:

Step 1: Start
Step 2: Accept a value in N as the number of elements of the array
Step 3: Accept N elements into the array AR
Step 4: Repeat Steps 5 to 7 (N - 1) times
Step 5: Repeat Step 6 until the second last element of the list
Step 6: Starting from the first position, compare two adjacent elements; if they are not in the proper order, swap them
Step 7: Revise the list by excluding the last element of the current list
Step 8: Print the sorted array AR
Step 9: Stop

Exam Tips:

a) Bubble sort compares adjacent elements and swaps them if the first is larger; the largest element moves to the end in each pass.
b) Show the (N - 1) passes and the swap step clearly.

 

Question 19: Explain the difference between call-by-value and call-by-reference methods with the help of examples.

Answer:

Call by value:
1. Ordinary variables are used as formal parameters.
2. Actual parameters may be constants, variables or expressions.
3. Changes made in the formal arguments are not reflected in the actual arguments.
4. Separate memory is allocated for the formal arguments.
Example:
void change(int n)
{
  n = n + 1;
  cout << "n = " << n << '\n';
}
int main()
{
  int x = 20;
  change(x);
  cout << "x = " << x;
}
Only the value of x is passed, so n gets 20. Increasing n does not affect x. The output is n = 21, x = 20.

Call by reference:
1. Reference variables are used as formal parameters.
2. Actual parameters must be variables.
3. Changes made in the formal arguments are reflected in the actual arguments.
4. The memory of the actual arguments is shared by the formal arguments.
Example:
void change(int &n)
{
  n = n + 1;
  cout << "n = " << n << '\n';
}
int main()
{
  int x = 20;
  change(x);
  cout << "x = " << x;
}
Here n is another name for x, so the output is n = 21, x = 21.

Exam Tips:

a) The only code difference is the & in the formal parameter of call by reference.
b) Show the output of both examples to prove the difference.

 

Question 20: Compare any three types of networks based on the span of geographical area.

Answer:

Networks are classified by the geographical area they cover.
1. Personal Area Network (PAN): connects devices within a small radius around a person, using guided or unguided media.
2. Local Area Network (LAN): connects computers in a single room or in buildings at one location, using twisted pair or coaxial cable. The data transfer rate is high and the error rate is low.
3. Metropolitan Area Network (MAN): spread over a city. It is slower than a LAN and has a low error rate. Optical fibre cable is used, for example a cable TV network.
4. Wide Area Network (WAN): connects computers over a large geographical area and is a network of networks. Telephone lines, microwave stations or satellites are used. The error rate is high, for example the internet.

Exam Tips:

a) Only three types are required; arrange them from smallest to largest area.
b) Give an example for each type.

 

Question 21: Susheel's e-mail ID is susheel@gmail.com. He sends an e-mail to Rani whose e-mail ID is rani@yahoo.com. How is the mail sent from Susheel's computer to Rani's computer?

Answer:

When the e-mail is sent from Susheel's computer, it first reaches the mail server of his e-mail service provider. From there it is routed through the internet to the mail server of the recipient's service provider. The recipient's mail server delivers it to Rani's inbox, where the message is stored until she reads it. SMTP (Simple Mail Transfer Protocol) is used for sending the mail between the servers.

Exam Tips:

a) Describe the path in order: sender, sender's mail server, internet, receiver's mail server, receiver's inbox.
b) Name the protocol, SMTP.

 

Question 22: With the help of a block diagram, explain the functional units of a computer.

Answer:

The functional units of a computer are based on the model proposed by John von Neumann.

Input unitCPUControl unitALUStorage unitOutput unit

1. Input unit: The data and instructions are entered into the computer through the input unit and stored in memory. Keyboard, mouse, scanner, microphone and digital camera are common input devices.
2. Central Processing Unit (CPU): The CPU is the brain of the computer. All major computations and comparisons are made in it, and it controls the operations of the other units. It has three components: the Arithmetic Logic Unit (ALU), the Control Unit (CU) and registers.
3. Storage unit: The data and instructions entered through the input unit are stored here before processing starts. The intermediate results and the final results are also stored here before they are sent to the output unit.
4. Output unit: The information obtained after processing is given to the outside world in a human-readable form. Monitor and printer are common output devices.

Exam Tips:

a) Draw the block diagram first, with arrows showing the flow of data, and then explain each unit.
b) Name the three parts of the CPU: ALU, CU and registers.

 

Question 23: a) Write a program to check whether the given number is a palindrome or not.
OR
b) Write a program to print the leap years between 2000 and 3000. (A century year is a leap year only if it is divisible by 400 and a non-century year is a leap year only if it is divisible by 4.)

Answer:

a)
#include<iostream>
using namespace std;
int main()
{
  int num, c, digit, rev = 0;
  cout << "Enter the number: ";
  cin >> num;
  c = num;
  while (num != 0)
  {
    digit = num % 10;
    rev = (rev * 10) + digit;
    num = num / 10;
  }
  cout << "The reverse of the number is " << rev;
  if (rev == c)
    cout << "\nThe given number is a palindrome.";
  else
    cout << "\nThe given number is not a palindrome.";
  return 0;
}

b)
#include<iostream>
using namespace std;
int main()
{
  int i;
  for (i = 2000; i <= 3000; i++)
  {
    if (i % 100 == 0)
    {
      if (i % 400 == 0)
        cout << i << " ";
    }
    else if (i % 4 == 0)
      cout << i << " ";
  }
  return 0;
}

Exam Tips:

a) Palindrome: reverse the number with % 10 and / 10 in a loop, then compare with the original saved in another variable.
b) Leap year rule: century years (divisible by 100) must be divisible by 400; other years only need divisibility by 4.
c) Attempt only one of the two programs.

 

Free Kerala Board Textbook Explanations: Class 11 Computer Science

Official Kerala Board Solutions for

Access structured Kerala Board textbook solutions. Designed in alignment with the latest academic curriculum for Class 11 Computer Science, these answers cover all end-of-chapter exercises to support daily learning and homework completion.

Step-by-Step Explanations for

Beyond providing final answers, these guides offer step-by-step breakdowns for complex queries in the Class 11 Computer Science module. This approach helps students balance theoretical depth with practical problem-solving skills required for Kerala Board exams.

Next Steps in Your Computer Science Revision

These resources act as an effective roadmap for daily homework tasks and independent study. Supplement your review of with official sample papers and interactive practice tests available on our platform free of charge.

FAQs

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

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

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

Yes, our experts have revised the Kerala Plus One Computer Science Previous Year Question Paper 2017 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 11 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 One Computer Science Previous Year Question Paper 2017 with Answers will help students to get full marks in the theory paper.

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

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

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

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