Download Kerala Board Solutions for Class 11 Computer Science
Review structured textbook solutions for Class 11 Computer Science . Built according to Kerala Board guidelines for the 2026-27 academic year, these downloadable answers support daily revision and problem-solving accuracy.
Access Kerala Board Solutions and Answers
View or download the dedicated solution resource below. Engaging with these textbook answers under focused study conditions ensures continuous academic progress and mastery of the 2026-27 curriculum for Computer Science.
Part A (Answer all questions from 1 to 5)
Question 1: What is the base of the Mayan number system?
Answer:
20 (the Mayan number system is a base-20, or vigesimal, system)
Exam Tips:
a) Remember the bases: decimal 10, binary 2, octal 8, hexadecimal 16, Mayan 20.
Question 2: Name any two preprocessor directives in C++.
Answer:
#include and #define (others are #undef, #ifdef and #ifndef)
Exam Tips:
a) Every preprocessor directive starts with the # symbol; write it with the name.
Question 3: Which statement in C++ can transfer control of a program to a labelled statement?
Answer:
The goto statement
Exam Tips:
a) goto is a jump statement; the other jump statements are break and continue.
Question 4: Which character is used to delimit a string in memory?
Answer:
The null character '\0'
Exam Tips:
a) Write the character with the backslash and the digit zero, not the letter O.
Question 5: An electronic device used for communication between computers through the telephone line is ……….
Answer:
Modem
Exam Tips:
a) Modem stands for modulator-demodulator; it converts digital signals into analogue signals and back.
Part B (Answer any nine questions from 6 to 16)
Question 6: Draw the block diagram of John von Neumann's computer architecture.
Answer:
Von Neumann architecture consists of a central processing unit (CPU) containing the arithmetic logic unit (ALU) and the control unit (CU), an input-output unit and a memory for storing data and instructions. This model implements the 'Stored Program Concept', in which both the data and the instructions are stored in the memory.
Exam Tips:
a) Label the CPU with its two parts (ALU and CU), the input unit, output unit and memory in your diagram.
b) Name the stored program concept in one line; it is the key idea of this architecture.
Question 7: List any four image file formats.
Answer:
1. JPEG (Joint Photographic Experts Group)
2. BMP (Bitmap file format)
3. TIFF (Tagged Image File Format)
4. GIF (Graphics Interchange Format)
Exam Tips:
a) Write the full form along with the short form to be safe.
Question 8: What is cache memory?
Answer:
Cache memory is a small and very fast memory placed between the processor and the RAM. Frequently used data, instructions and intermediate results are stored in it so that the processor can get them quickly.
Exam Tips:
a) Mention both its position (between CPU and RAM) and its purpose (faster access).
Question 9: Draw a flowchart to find the area of a rectangle.
Answer:
Here l, b and A are the variables for length, breadth and area.
Exam Tips:
a) Use the correct shapes: oval for start/stop, parallelogram for input/output and rectangle for processing.
b) Join the symbols with arrows in the order of execution.
Question 10: What are the different types of characters in the character set of C++?
Answer:
1. Letters: A - Z, a - z
2. Digits: 0 - 9
3. Special characters: + - * \ ^ / ( ) [ ] { } = < > ? ! @ % # and others
4. White spaces: blank space, tab, carriage return, new line, form feed
5. Other characters: C++ can process any of the 256 ASCII characters as data.
Exam Tips:
a) Name all five categories; the examples are only to support them.
Question 11: Classify the data types used in C++.
Answer:
Based on nature, size and associated operations, data types in C++ are classified into three groups:
1. Fundamental (predefined) data types: char, int, float, double and void.
2. User-defined data types: such as structure, union, class and enumeration.
3. Derived data types: such as array, function, pointer and reference.
Exam Tips:
a) Draw the classification as a tree of three groups with at least one example for each.
Question 12: Distinguish the memory allocation of the following initialisation statements.
char name[10] = "TOM";
char str[] = "TOM";
Answer:
char name[10] = "TOM"; 10 memory locations are allocated and the string is stored with the null character as the delimiter. Only 4 bytes are used (3 for the letters and 1 for '\0'), so the last six bytes are left unused.
char str[] = "TOM"; The size of the array is not specified, so only 4 bytes are allocated (3 bytes for the string and 1 byte for '\0').
Exam Tips:
a) Always count the null character when finding the size of a string.
b) State clearly that an array without a size takes its size from the initial value.
Question 13: Correct the program and write the output.
#include<iostream>
using namespace std;
int main ()
{
Char str[ ] = "Green Computing";
int n;
n = strlen (str);
cout << n;
return o;
}
Answer:
Corrected program:
#include<iostream>
#include<cstring>
using namespace std;
int main ()
{
char str[ ] = "Green Computing";
int n;
n = strlen (str);
cout << n;
return 0;
}
The output is 15 (Green = 5, space = 1, Computing = 9; the null character is not counted by strlen).
Exam Tips:
a) strlen() is declared in cstring (string.h); this header is the most common missing line.
b) The data type keyword is char in lower case, and C++ is case sensitive.
c) strlen counts the space but not the null character.
Question 14: What is a firewall?
Answer:
A firewall is a system that controls the incoming and outgoing network traffic by analysing the data. It protects the computer network of an organisation from other networks such as the internet.
Exam Tips:
a) Mention that it can be hardware, software or both, and that it filters traffic.
Question 15: What is phishing?
Answer:
Phishing is an attempt to obtain others' information such as usernames, passwords and bank account details by acting as an authorised website. Phishing websites have URLs and home pages similar to the original ones and mislead the users; this is also called spoofing.
Exam Tips:
a) Include what is stolen (usernames, passwords, bank details) and how (a fake, look-alike website).
Part C (Answer any nine questions from 16 to 26)
Question 16:
a) The number of symbols used in a number system is called the ……….
b) Find the MSD in the decimal number 7854.25.
c) Find the octal equivalent of (400)10.
Answer:
a) Base (or radix)
b) The MSD (most significant digit) is the leftmost digit, which is 7.
c) 400 / 8 = 50 remainder 0
50 / 8 = 6 remainder 2
6 / 8 = 0 remainder 6
Reading the remainders from bottom to top, (400)10 = (620)8.
Exam Tips:
a) Show the division steps and write the remainders from bottom to top.
b) Check the answer: 6 x 64 + 2 x 8 + 0 = 384 + 16 = 400.
Question 17:
a) ASCII stands for ……….
b) Find the largest number in the list.
1. (10000)2
2. (1000)8
3. (100)10
4. (10)16
Answer:
a) American Standard Code for Information Interchange
b) Convert each number to decimal:
1. (10000)2 = 1 x 24 = 16
2. (1000)8 = 1 x 83 = 512
3. (100)10 = 100
4. (10)16 = 1 x 161 + 0 x 160 = 16
The largest number is (1000)8 = 512.
Exam Tips:
a) To compare numbers in different bases, convert all of them to decimal first.
b) Write the place values (powers of the base) in your working.
Question 18:
a) Name two different language processors which translate a high-level language program into a machine language program.
b) What is an operating system? Give two examples.
Answer:
a) Compiler and interpreter
b) An operating system is a set of programs that acts as an interface between the user and the computer hardware. Examples: Linux and MS Windows.
Exam Tips:
a) An assembler translates assembly language, not a high-level language, so do not name it in part (a).
b) Give two real operating system names for part (b).
Question 19: Distinguish between an entry controlled loop and an exit controlled loop.
Answer:
| Entry controlled loop | Exit controlled loop |
|---|---|
| The test expression is checked before the loop body is executed | The test expression is checked after the loop body is executed |
| There is no guarantee that the body will be executed even once | The body is executed at least once even if the condition is false |
| Examples: for loop, while loop | Example: do-while loop |
Exam Tips:
a) Always give the example loop for each type; do-while is the only exit controlled loop in C++.
b) Stress when the condition is tested, since that is the real difference.
Question 20: Consider the following algorithm:
Step 1: Start
Step 2: N = 1
Step 3: Print N
Step 4: N = N + 1
Step 5: If N <= 10 then go to Step 3
Step 6: Stop
When we implement the above algorithm in C++, what will be the output?
Answer:
The program displays the first 10 natural numbers:
1 2 3 4 5 6 7 8 9 10
Exam Tips:
a) Trace the algorithm: N starts at 1, is printed and increased each time, and the loop stops when N becomes 11.
b) Note that 10 is printed because the test is N <= 10.
Question 21: What is the role of relational operators in C++? Give suitable examples.
Answer:
Relational operators are used to compare numeric data. They are binary operators, and the result of any relational operation is either true or false. The relational operators are:
< (less than), > (greater than), <= (less than or equal to), >= (greater than or equal to), == (equal to) and != (not equal to).
Examples: 5 < 8 is true; 10 == 12 is false; 7 != 3 is true.
Note that = is the assignment operator used to assign a value to a variable, whereas == is a relational operator that tests for equality.
Exam Tips:
a) List all six relational operators and mention that the result is true or false.
b) Add a one-line difference between = and ==, which is often asked.
Question 22: Distinguish between the break and continue statements in C++.
Answer:
| break | continue |
|---|---|
| Used with switch and loops | Used only with loops |
| Brings the program control out of the switch or loop, skipping the rest of the statements in the block | Brings the program control to the beginning of the loop, skipping the rest of the statements in the block for that iteration |
| Control leaves the loop even though the test expression is true | Control leaves the loop only when the test expression becomes false |
Exam Tips:
a) Remember: break ends the loop, while continue only skips to the next iteration.
b) Mention that break is also used inside a switch to stop fall-through.
Question 23: If 24, 54, 89, 56, 76, 42, 5 are the elements of an array, illustrate the working of the selection sort algorithm for sorting these elements in descending order.
Answer:
In each pass the largest element of the unsorted part is found and swapped into the first position of that part.
| Pass | Array after the pass |
|---|---|
| Original | 24, 54, 89, 56, 76, 42, 5 |
| 1 (89 swapped with 24) | 89, 54, 24, 56, 76, 42, 5 |
| 2 (76 swapped with 54) | 89, 76, 24, 56, 54, 42, 5 |
| 3 (56 swapped with 24) | 89, 76, 56, 24, 54, 42, 5 |
| 4 (54 swapped with 24) | 89, 76, 56, 54, 24, 42, 5 |
| 5 (42 swapped with 24) | 89, 76, 56, 54, 42, 24, 5 |
| 6 (24 is already the largest of the rest) | 89, 76, 56, 54, 42, 24, 5 |
Sorted array in descending order: 89, 76, 56, 54, 42, 24, 5.
Exam Tips:
a) Show the array after every pass; the passes carry marks.
b) For n elements, n - 1 passes are enough.
Question 24: Write a C++ program to input the scores of 5 students and display them in reverse order using an array.
Answer:
#include<iostream>
using namespace std;
int main()
{
int i, score[5];
for (i = 0; i < 5; i++)
{
cout << "Enter the score: ";
cin >> score[i];
}
for (i = 4; i >= 0; i--)
cout << "Score of student " << i + 1 << " is " << score[i] << endl;
return 0;
}
Exam Tips:
a) Array indexes start at 0, so a 5-element array has indexes 0 to 4; the reverse loop runs from 4 down to 0.
b) Use the first loop only for input and the second loop only for output.
Question 25: Explain the difference between call-by-value and call-by-reference methods with suitable examples.
Answer:
| Call by value | Call by reference |
|---|---|
| Ordinary variables are used as formal parameters | Reference variables are used as formal parameters |
| Actual parameters may be constants, variables or expressions | Actual parameters must be variables only |
| Changes made in the formal arguments are not reflected in the actual arguments | Changes made in the formal arguments are reflected in the actual arguments |
| Separate memory is allocated for the formal arguments | The memory of the actual arguments is shared by the formal arguments |
Call by value:
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 the value 20. Increasing n does not affect x. The output is n = 21, x = 20.
Call by reference:
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 change affects x as well. The output is n = 21, x = 21.
Exam Tips:
a) The same function with and without the & symbol is the easiest way to show the difference.
b) Write the output of both programs; it proves your explanation.
Question 26: Explain the scope of variables in a C++ program.
Answer:
Scope of local variables:
1. They are declared within a function or a block of statements.
2. They are available only within that function or block.
3. Memory is allocated when the function or block is active and freed when its execution is completed.
Scope of global variables:
1. They are declared outside all the functions.
2. They are available to all the functions of the program.
3. Memory is allocated just before the program starts executing and freed when the program stops.
Example:
#include<iostream>
using namespace std;
int g = 10; // global variable
int cube(int n)
{
int cb; // local to cube()
cb = n * n * n;
return cb;
}
int main()
{
int x, result; // local to main()
cout << "Enter a number: ";
cin >> x;
result = cube(x);
cout << "Cube = " << result;
}
In this program the variable cb can be used only inside cube() because it is declared there; using it in main() would be an error. This is local scope. The variable g can be used in every function; this is global scope.
Exam Tips:
a) Compare local and global variables on three points: where declared, where available, and memory allocation.
b) Add a short example that shows a variable being used outside its scope as an error.
Part D (Answer any two questions from 27 to 29)
Question 27: List and explain the various components of system software.
Answer:
System software is a set of one or more programs designed to control the operations of a computer. Its components are:
1. Operating system: A set of programs that acts as an interface between the user and the computer hardware. Its main objective is to make the computer system convenient to use. It is the most important system software.
2. Language processors: Software used to convert programs written in assembly language or a high-level language into machine language. The types are:
a) Assembler: converts a program written in assembly language into machine language.
b) Interpreter: converts a high-level language program into machine language line by line. If there is an error in a line, it is reported and execution stops; translation continues only after the error is corrected. For example, BASIC is an interpreted language.
c) Compiler: translates a high-level language program into machine language by converting all the lines at a time. The errors are reported at the end of compilation. Languages that use a compiler are C, C++, Pascal, etc.
3. Utility software: A set of programs which help users in system maintenance and in routine tasks. Examples:
a) Compression tools: Large files are compressed so that they take less storage space. Compression is called zipping and decompression is called unzipping, for example WinZip and WinRAR.
b) Disk defragmenter: A program that rearranges the files on a hard disk so that the computer works faster and more efficiently.
c) Backup software: It duplicates the disk information so that it can be used in case of disk failure or accidental deletion.
Exam Tips:
a) Start with a definition of system software and name its three components before explaining them.
b) Give at least one example for each component.
c) For a six-mark question, cover language processors and utility software in the same detail as the operating system.
Question 28:
a) What will be the output of the given C++ program? Justify your answer.
#include<iostream>
using namespace std;
int main()
{
int a, b, num;
for (a = 1; a <= 10; ++a)
{
for (b = 1; b <= 5; ++b)
num = a * b;
cout << num << endl;
}
return 0;
}
b) Rewrite the following program using while and do-while loops. (Write separate programs.)
#include<iostream>
using namespace std;
int main()
{
int i;
for (i = 1; i <= 10; i++)
{
cout << i;
}
return 0;
}
Answer:
a) Output:
5
10
15
20
25
30
35
40
45
50
Justification: the inner for loop has no braces, so its body is only the statement num = a * b;. For each value of a, the inner loop runs 5 times and the last value stored in num is a * 5. The cout statement belongs to the outer loop, so it prints this final value of num once for each a. Hence 5, 10, 15, ... , 50 are displayed.
b) Using a while loop:
#include<iostream>
using namespace std;
int main()
{
int i = 1;
while (i <= 10)
{
cout << i;
i++;
}
return 0;
}
Using a do-while loop:
#include<iostream>
using namespace std;
int main()
{
int i = 1;
do
{
cout << i;
i++;
} while (i <= 10);
return 0;
}
Exam Tips:
a) Look carefully for missing braces; here the cout statement is outside the inner loop.
b) In the loop conversion, keep the initialisation before the loop and the update inside the body.
c) Remember the semicolon after while (...) in the do-while loop.
Question 29:
a) URL stands for ……….
b) Explain the format of a URL with an example.
c) What is the use of a URL in computer networks?
Answer:
a) Uniform Resource Locator
b) A URL gives the address of a resource on the web. Its general format is protocol://domain-name/path. It has three parts:
1. Protocol: for example http (Hypertext Transfer Protocol), the protocol used to transfer hypertext.
2. Domain name (host name): the unique name of the website or server, for example www.example.com. The 'www' part stands for World Wide Web.
3. Path: the location of the page or file on that server, for example /index.html.
Example: http://www.example.com/index.html
c) A URL provides a way to locate a resource (a web page, file or image) on the web, which works on the hypertext system over the internet. It helps the browser to find the correct server and the correct resource.
Exam Tips:
a) Write the format in one line and then label the parts of an example.
b) Do not confuse the URL with an e-mail address or an IP address.
Free study material for Computer Science
Free Kerala Board Textbook Explanations: Class 11 Computer Science
Textbook Solutions for Class 11 Computer Science
Explore reliable textbook solutions for tailored for Class 11 learners. Utilizing these complete exercise answers ensures your preparation aligns exactly with official Kerala Board standards for Computer Science.
Mastering Theoretical and Practical Questions
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.
Effective Self-Study and Homework Assistance
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 11 Computer Science.
FAQs
The complete and updated Kerala Plus One Computer Science Previous Year Question Paper 2018 with Answers is available for free on StudiesToday.com. These solutions for Class 11 Computer Science are as per latest Kerala Board curriculum.
Yes, our experts have revised the Kerala Plus One Computer Science Previous Year Question Paper 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.
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 2018 with Answers will help students to get full marks in the theory paper.
Yes, we provide bilingual support for Class 11 Computer Science. You can access Kerala Plus One Computer Science Previous Year Question Paper 2018 with Answers in both English and Hindi medium.
Yes, you can download the entire Kerala Plus One Computer Science Previous Year Question Paper 2018 with Answers in printable PDF format for offline study on any device.