Kerala Plus One Computer Science Chapter 4 Principles of Programming and Problem Solving Questions and Answers

Download Kerala Board Solutions for Class 11 Computer Science Chapter 04 Principles of Programming and Problem Solving

Access comprehensive textbook solutions for Chapter 04 Principles of Programming and Problem Solving 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.

Access Kerala Board Solutions and Answers

View or download the dedicated Chapter 04 Principles of Programming and Problem Solving 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.

One Mark Questions and Answers

 

Question 1: The process of writing a program is called ______.

Answer:

Programming or coding

Exam Tips:

a) Writing a program in a programming language is called coding.

 

Question 2: One who writes a program is called ______.

Answer:

Programmer

Exam Tips:

a) A programmer writes, tests and maintains programs.

 

Question 3: The step by step procedure to solve a problem is known as ______.

Answer:

Algorithm

Exam Tips:

a) An algorithm must be finite, precise and must give the desired result.

 

Question 4: The diagrammatic representation of an algorithm is known as ______.

Answer:

Flowchart

Exam Tips:

a) A flowchart uses standard symbols joined by arrows to show the flow of the solution.

 

Question 5: Program errors are known as ______.

Answer:

Bugs

Exam Tips:

a) Finding and removing bugs is called debugging.

 

Question 6: The process of detecting and correcting errors is called ______.

Answer:

Debugging

Exam Tips:

a) Bug = error; debugging = detecting and correcting it.

 

Question 7: Mr. Ramu represents an algorithm by using some symbols. This representation is called ______.

Answer:

Flowchart

Exam Tips:

a) Each symbol in a flowchart has a fixed meaning.

 

Question 8: Your computer teacher asked which symbol is used to indicate the beginning or the end of a flowchart. What is your answer?
a) Parallelogram
b) Rectangle
c) Oval
d) Rhombus

Answer:

c) Oval

Exam Tips:

a) The oval is the terminal symbol used for Start and Stop.

 

Question 9: You are suffering from a stomach ache. The doctor prescribes a scan. This process is related to a phase in programming. Which phase is this?

Answer:

Problem identification

Exam Tips:

a) Like the doctor studying the problem before treatment, the first phase of programming studies the problem.

 

Question 10: Your friend asked you what the parallelogram is used for in drawing a flowchart. What is the answer?

Answer:

It is used for input and output.

Exam Tips:

a) Remember: parallelogram = input/output, rectangle = processing, rhombus = decision, oval = start/stop.

 

Question 11: Mr. Anil wants to perform a multiplication. Which symbol is used to represent it in a flowchart?

Answer:

Multiplication is a processing operation, so the rectangle is used.

Exam Tips:

a) Arithmetic operations and assignments are drawn in the rectangle.

 

Question 12: Mr. George wants to check whether a number is greater than zero and then perform an operation while drawing a flowchart. Which symbol is used for this?

Answer:

Rhombus (the decision symbol)

Exam Tips:

a) A condition check with yes/no outcomes is drawn in a rhombus (diamond).

 

Question 13: ANSI stands for ______.

Answer:

American National Standards Institute

Exam Tips:

a) ANSI sets the standard flowchart symbols.

 

Question 14: Which symbol is used in a flowchart to indicate the flow of an operation?

Answer:

Flow lines (lines with arrow heads)

Exam Tips:

a) Arrow heads show the direction of flow.

 

Question 15: Mr. Johnson is drawing a flowchart, but it does not fit on a single page. Which symbol will help him to complete the flowchart?

Answer:

Connectors

Exam Tips:

a) A connector is a small circle with a letter or number inside, and it is used in pairs.

 

Question 16: Mr. Ravi developed a student information system software. He wants to protect the software from unauthorised copying. Which act protects him?

Answer:

The Copyright Act

Exam Tips:

a) Copyright protects the creator's work against unauthorised copying.

 

Question 17: Odd man out.
a) Parallelogram
b) Oval
c) Rectangle
d) Star

Answer:

d) Star. The others are flowchart symbols.

Exam Tips:

a) Name the symbols: parallelogram (I/O), oval (terminal), rectangle (process).

 

Question 18: Odd man out.
a) Oval
b) Rhombus
c) Connector
d) Triangle

Answer:

d) Triangle. The others are flowchart symbols.

Exam Tips:

a) The standard symbols include oval, rhombus, connector, rectangle, parallelogram and arrows.

 

Question 19: Raju wrote a program and wants to check for errors and correct them if there are any. What process does he have to carry out?

Answer:

Debugging

Exam Tips:

a) Debugging = detecting and correcting errors.

 

Question 20: Odd one out.
a) Problem identification
b) Translation
c) Debugging
d) Copyright

Answer:

d) Copyright. The others are phases in programming.

Exam Tips:

a) The phases are problem identification, deriving steps, coding, translation, debugging, execution and testing, and documentation.

 

Question 21: Odd man out.
a) Syntax error
b) Logical error
c) Runtime error
d) Printer error

Answer:

d) Printer error. The others are different types of programming errors.

Exam Tips:

a) Programming errors are of three types: syntax, logical and runtime errors.

 

Question 22: A computerised system is not complete after the execution and testing phase. What is the next phase needed to complete the system?

Answer:

Documentation

Exam Tips:

a) Documentation is the last phase in programming.

 

Question 23: Mr. Sathian takes a movie DVD from a CD library and copies it onto another DVD without permission. This process is called ______.

Answer:

Piracy

Exam Tips:

a) Unauthorised copying of software or media is piracy.

 

Question 24: Mr. Santhosh purchased a movie DVD and made several copies without permission. He is a ______.
a) Programmer
b) Administrator
c) Pirate
d) Organizer

Answer:

c) Pirate

Exam Tips:

a) Making copies without permission violates copyright.

 

Question 25: The symbol used for copyright is ______.
a) @
b) Copy
c) &
d) ©

Answer:

d) ©

Exam Tips:

a) The copyright symbol is a letter C inside a circle.

 

Question 26: The following are advantages of flowcharts, but one among them is wrong. Find it.
a) Better communication
b) Effective analysis
c) Proper program documentation
d) Modification is easy

Answer:

d) Modification is easy. This is actually a disadvantage of flowcharts, because any change in logic means redrawing the flowchart.

Exam Tips:

a) Know both the advantages and the limitations of flowcharts.

 

Question 27: Which flowchart symbol has one entry flow and two exit flows?

Answer:

Diamond (rhombus), the decision symbol

Exam Tips:

a) A decision has a Yes/No (True/False) outcome, so it has two exits.

 

Question 28: Which flowchart symbol is always used in pairs?

Answer:

Connector

Exam Tips:

a) One connector marks where the flow leaves and the other marks where it continues.

 

Question 29: A program written in a high level language is known as ______.

Answer:

Source code

Exam Tips:

a) After translation by a compiler or interpreter, it becomes object code.

 

Question 30: Some of the components in the phases of programming are given below. Write them in the order of their occurrence.
1. Translation
2. Documentation
3. Problem identification
4. Coding of a program

Answer:

The chronological order is:
1. Problem identification
2. Coding of a program
3. Translation
4. Documentation

Exam Tips:

a) Remember the order: identify, derive steps, code, translate, debug, execute and test, document.

 

Question 31: ______ is the stage where programming errors are discovered and corrected.

Answer:

Debugging

Exam Tips:

a) Errors are found in the translation (compilation) and testing stages and corrected during debugging.

 

Question 32: Ramesh has written a C++ program. During compilation and execution there were no errors, but he got a wrong output. Name the type of error he faced.

Answer:

Logical error

Exam Tips:

a) A logical error is not detected by the compiler; it shows up only as a wrong result.

 

Question 33: Pick out the software which rearranges the scattered files on the hard disk and improves the performance of the system.
a) Backup software
b) File compression software
c) Disk defragmenter
d) Antivirus software

Answer:

c) Disk defragmenter

Exam Tips:

a) Defragmentation joins the scattered pieces of files so that they can be read faster.

 

Question 34: Some phases in programming are given below.
1. Source coding
2. Execution
3. Translation
4. Problem study
These phases should follow a proper order. Choose the correct order.
a) 4 → 2 → 3 → 1
b) 1 → 3 → 2 → 4
c) 1 → 3 → 4 → 2
d) 4 → 1 → 3 → 2

Answer:

d) 4 → 1 → 3 → 2

Exam Tips:

a) Study the problem, write the source code, translate it, then execute it.

 

Question 35: Which one of the following errors is identified at the time of compilation?
a) Syntax error
b) Logical error
c) Run-time error
d) All of these

Answer:

a) Syntax error

Exam Tips:

a) Syntax errors are reported by the compiler; logical and run-time errors appear later.

 

Question 36: Pick the odd one out and give a reason for your finding.
abcRectangleParallelogramRhombus

Answer:

c) Rhombus (decision symbol). It has one entry flow and more than one exit flow, while the others have only one exit flow.
The parallelogram (b) is used for both input and output, and the rectangle (a) is used for processing.

Exam Tips:

a) Count the entries and exits of each symbol.

 

Two Mark Questions and Answers

 

Question 37: A debate on "Whether Free Software is to be promoted" is planned in your class. You are asked to present points in support of Free Software. What would be your arguments (at least three)?

Answer:

1. Freedom to use: free software can be used by anyone for any purpose.
2. It is comparatively cheap (often free of cost).
3. Freedom to modify and redistribute: users can study and change the source code and share the changed versions with others.

Exam Tips:

a) Write at least three clear points, as asked.

 

Question 38: Mr. Roy purchased a DVD of a movie and found that on the cover there is a sentence "copyright reserved" and a mark ©. What is it? Briefly explain.

Answer:

It is the mark of copyright. Copyright is a property right that arises automatically when a person creates a new work by his own effort, and by law it prevents others from copying it without the permission of the creator, whether intentionally or unintentionally.

Exam Tips:

a) Mention that the right arises automatically and protects against unauthorised copying.

 

Question 39: Can a person who knows only Malayalam talk to a person who knows only Sanskrit? Consider the corresponding situation in a computer program and justify your answer.

Answer:

Normally it is very difficult for them to communicate, but it is possible with the help of a translator. In the same way, translation is the process of converting programs written in a high level language into a low level language (machine language). A compiler or an interpreter, which is itself a program, is used for this purpose.

Exam Tips:

a) Link the translator to the compiler or interpreter.

 

Question 40: Define the term debugging. Write the names of two phases that are included in debugging. Also define the different types of errors that are encountered during the compilation and running of a program.

Answer:

Debugging: program errors are called bugs, and the process of detecting and correcting errors is called debugging. Compilation and running (execution) are the two phases involved.
In general there are two types of errors before execution, syntax errors and logical errors.
Syntax error: when the rules or syntax of the language are not followed, a syntax error occurs, and it is displayed after compilation.
Logical error: when the logic of a program is wrong, a logical error occurs. It is not displayed after compilation but shows up in the execution and testing phase as a wrong result.

Exam Tips:

a) Define bug and debugging separately.
b) Name the phases (compilation and execution) as asked.

 

Question 41: Write an algorithm to input the scores obtained in three unit tests and find the average score. Also explain the following flowchart and predict its output.
StartN = 1Print NN = N + 1Is N <= 10?Stopnoyes

Answer:

Step 1: Start
Step 2: Read S1, S2, S3
Step 3: avg = (S1 + S2 + S3)/3
Step 4: Print avg
Step 5: Stop
The flowchart is used to print the numbers 1, 2, 3, ..., 10. It sets N = 1, prints N, increases N by 1, and repeats while N is less than or equal to 10.

Exam Tips:

a) In the algorithm, put the sum in brackets before dividing by 3.
b) Trace the flowchart for the first two loops to predict the output.

 

Question 42: Differentiate between top down design and bottom up design in problem solving.

Answer:

Top down design: a larger program is divided into smaller ones, and each task is solved by performing simpler activities.
Bottom up design: here also larger programs are divided into smaller ones, and the smaller ones are again subdivided until the lowest level of detail has been reached. The solving starts from the lowest module onwards.

Exam Tips:

a) Top down starts from the whole problem; bottom up starts solving from the smallest modules.

 

Question 43: Draw a flowchart for the following algorithm.
Step 1: Start
Step 2: Input N
Step 3: S = 0, K = 1
Step 4: S = S + K
Step 5: K = K + 1
Step 6: If K <= N Then go to Step 4
Step 7: Print S
Step 8: Stop
Also name the two stages in programming where the debugging process is involved. What kinds of errors are removed in each of these stages?

Answer:

StartInput NS = 0, K = 1S = S + KK = K + 1K <= NPrint SStopNoYes
The two stages are compile time and run time. In the debugging process, syntax errors, logical errors and run-time errors can be removed.

Exam Tips:

a) Draw a diamond for step 6 with a loop back to step 4.
b) Syntax errors are removed at compile time; logical and run-time errors at execution and testing.

 

Question 44: Observe the following portion of a flowchart. Fill in the blank symbols with proper instructions to get 321 as the output.
N = 123S = 0R = Remainder of N/10N = Quotient of N/10TrueFalse
Also, the following flowchart can be used to print the numbers from 1 to 100. Identify another problem that can be solved using this flowchart and write the required instructions in the symbols.
Starti = 1Print ii = i + 1if i <= 100StopFalseTrue

Answer:

1. The blanks are: decision N > 0; process S = S*10 + R; output Print S.
N = 123S = 0N > 0R = Remainder of N/10S = S*10 + RN = Quotient of N/10Print STrueFalseStop
2. The same flowchart can be used to print the odd numbers less than 200:
Starti = 1Print ii = i + 2if i <= 200StopFalseTrue

Exam Tips:

a) The digits are taken out from the right with the remainder and joined in reverse order in S.
b) Change only the initial value and increment to get another series.

 

Question 45: Write an algorithm to print the numbers up to 100 in reverse order, that is, the output should be 100, 99, 98, 97, ..., 1. Also draw a flowchart to check whether a given number is positive, negative or zero.

Answer:

Step 1: Start
Step 2: Set i ← 100
Step 3: If i <= 0 then go to Step 6
Step 4: Print i
Step 5: Set i ← i - 1 and go to Step 3
Step 6: Stop
Flowchart:
StartRead NN > 0N < 0Print N is positivePrint N is negativePrint N is zeroStopTrueFalseTrueFalse

Exam Tips:

a) Decrease the counter inside the loop and test it before printing.
b) Use two decisions for three outcomes in the flowchart.

 

Three Mark Questions and Answers

 

Question 46: When you try to execute a program, there are chances of errors at various stages. Mention the types of errors and explain.

Answer:

1. Syntax error: an error that occurs when the rules (syntax) of the language are violated. Example: 5 = x
2. Logical error: if the programmer makes any logical mistake, it is known as a logical error. Example: to find the sum of A and B and store it in C, you have to write C = A + B. If you write C = A × B instead, it is a logical error.
3. Runtime error: an error that occurs at run time due to inappropriate data. Example: while calculating A/B, if a person gives zero for B, a division by zero error occurs at run time.

Exam Tips:

a) Give one example for each type of error.
b) Syntax errors are caught by the compiler; logical errors only show as wrong output.

 

Question 47: The following is a flowchart to find and display the largest among three numbers. Some steps are missing in the flowchart. Redraw the flowchart by adding the necessary steps and specify its purpose. How can this flowchart be modified without using a fourth variable?
StartRead a, b, cb > bigbig = bYesc > bigbig = cNoYesStopNo

Answer:

The purpose of the flowchart is to find the largest of three numbers a, b and c.
The missing steps are:
(1) Initialisation big = a, just after Read a, b, c.
(2) Print big, just before Stop.
The redrawn flowchart:
StartRead a, b, cbig = ab > bigbig = bYesc > bigbig = cNoYesPrint bigStopNo
Without the fourth variable, the numbers can be compared directly with each other:
StartRead a, b, ca > bb > ca > cPrint bPrint cPrint aStopFalseTrueTrueFalseFalseTrue

Exam Tips:

a) Initialise big with the first number before comparing.
b) Print the result only after both comparisons are over.

 

Question 48: Write an algorithm to check whether the given number is even or odd.

Answer:

Step 1: Start
Step 2: Read a number to N
Step 3: Divide the number by 2 and store the remainder in R
Step 4: If R = 0 then go to Step 6
Step 5: Print "N is odd" and go to Step 7
Step 6: Print "N is even"
Step 7: Stop

Exam Tips:

a) A number is even if the remainder on division by 2 is 0.

 

Question 49: Write an algorithm to find the largest of 2 numbers.

Answer:

Step 1: Start
Step 2: Input the values of A and B
Step 3: If A > B then go to Step 5
Step 4: Print "B is largest" and go to Step 6
Step 5: Print "A is largest"
Step 6: Stop

Exam Tips:

a) Compare the two numbers once; use the "go to" step to skip the other message.

 

Question 50: Write an algorithm to find the sum of n natural numbers and the average.

Answer:

Step 1: Start
Step 2: Set i ← 1, S ← 0
Step 3: Read a number and set it to n
Step 4: Compare i and n; if i > n then go to Step 7
Step 5: Set S ← S + i
Step 6: i ← i + 1 and go to Step 4
Step 7: avg ← S/n
Step 8: Print "Sum = S and average = avg"
Step 9: Stop

Exam Tips:

a) Initialise the sum to 0 before the loop.

 

Question 51: Write an algorithm to find the largest of 3 numbers.

Answer:

Step 1: Start
Step 2: Read 3 numbers and store them in A, B, C
Step 3: Compare A and B. If A > B then go to Step 6
Step 4: Compare B and C. If C > B then go to Step 8
Step 5: Print "B is largest" and go to Step 9
Step 6: Compare A and C. If C > A then go to Step 8
Step 7: Print "A is largest" and go to Step 9
Step 8: Print "C is largest"
Step 9: Stop

Exam Tips:

a) Make sure that every path ends at the Stop step.

 

Question 52: Write an algorithm to calculate the simple interest (I = P × N × R/100).

Answer:

Step 1: Start
Step 2: Read 3 values for P, N, R
Step 3: Calculate I ← P × N × R/100
Step 4: Print "The simple interest = I"
Step 5: Stop

Exam Tips:

a) Read all three values before using the formula.

 

Question 53: Write an algorithm to calculate the compound interest (C.I. = P × (1 + R/100)N - P).

Answer:

Step 1: Start
Step 2: Read 3 numbers for P, N, R
Step 3: Calculate C.I. = P × (1 + R/100)N - P
Step 4: Print "The compound interest = C.I."
Step 5: Stop

Exam Tips:

a) Compound interest is the amount minus the principal.

 

Question 54: Write an algorithm to find the cube of the first n natural numbers (for example 1, 8, 27, ..., n3).

Answer:

Step 1: Start
Step 2: Set i ← 1
Step 3: Read a number and store it in n
Step 4: Compare i and n; if i > n then go to Step 7
Step 5: Print i × i × i
Step 6: i ← i + 1 and go to Step 4
Step 7: Stop

Exam Tips:

a) Start with i = 1 and increase it inside the loop.

 

Question 55: Write an algorithm to read a number and find its factorial (n! = n × (n - 1) × (n - 2) × ... × 3 × 2 × 1).

Answer:

Step 1: Start
Step 2: Fact ← 1
Step 3: Read a number and store it in n
Step 4: If n = 0 then go to Step 7
Step 5: Fact ← Fact × n
Step 6: n ← n - 1 and go to Step 4
Step 7: Print "Factorial is Fact"
Step 8: Stop

Exam Tips:

a) Start Fact with 1, not 0, otherwise the product is always 0.

 

Question 56: Draw a flowchart to find the sum of n natural numbers and the average.

Answer:

Starti = 1, s = 0Read Ni > Ns = s + ii = i + 1avg = s/NPrint Sum = sAverage = avgStopFalseTrue

Exam Tips:

a) Test i > N to leave the loop, then find the average.

 

Question 57: Draw a flowchart to find the largest of 3 numbers.

Answer:

StartRead A, B, CA > BB > CA > CPrint B is largestPrint C is largestPrint A is largestStopFalseTrueTrueFalseFalseTrue

Exam Tips:

a) Two comparisons are enough once the first comparison is done.

 

Question 58: Draw a flowchart to find the largest of 2 numbers.

Answer:

StartRead A, BA > BB is largestA is largestStopFalseTrue

Exam Tips:

a) One decision symbol with two outputs is enough.

 

Question 59: Draw a flowchart to check whether the given number is even or odd.

Answer:

StartRead NR = N Mod 2R = 0N is oddN is evenStopFalseTrue

Exam Tips:

a) Use R = N Mod 2 and test R = 0.

 

Question 60: Draw a flowchart to calculate simple interest.

Answer:

StartRead P, N, RI = P x N x R/100Print Simple Interest is IStop

Exam Tips:

a) Use a parallelogram for input and output and a rectangle for the calculation.

 

Question 61: Draw a flowchart to calculate compound interest.

Answer:

StartRead P, N, RCI = P x (1 + R/100)^N - PPrint Compound Interest is CIStop

Exam Tips:

a) Write the formula clearly inside the rectangle.

 

Question 62: Draw a flowchart to find the cube of n natural numbers.

Answer:

Starti = 1Read Ni > NStopPrint i x i x ii = i + 1TrueFalse

Exam Tips:

a) The loop prints the cube and increases i until i exceeds N.

 

Question 63: Draw a flowchart to read a number and find its factorial.

Answer:

StartFact = 1Read nn = 0Fact = Fact x nn = n - 1Factorial is FactStopTrueFalse

Exam Tips:

a) Initialise Fact to 1 and multiply it by n while reducing n by 1.

 

Question 64: Mr. Vimal wants to represent a problem by using a flowchart. Which symbols are used for this? Explain.

Answer:

Flowchart symbols are explained below.
1. Terminal (oval): used to indicate the beginning and the end of a flowchart.
2. Input/Output (parallelogram): used to take input or print output.
3. Processing (rectangle): used to represent processing, that is, arithmetic operations such as addition, subtraction and multiplication.
4. Decision (rhombus): used to represent decision making. Only one exit path is followed at a time.
5. Flow lines (arrows): used to represent the flow of operations.
6. Connector: used to complete a flowchart that does not fit on a single page. A connector is drawn as a circle with a letter or digit inside it to indicate the link.

Exam Tips:

a) Name each symbol and state its use in one line.

 

Question 65: Jeena uses an algorithm to represent a problem while Neena uses a flowchart. Which is better? Justify your answer.

Answer:

The flowchart is better. Its advantages are:
1. Better communication: a flowchart is a pictorial representation, whereas an algorithm is a step by step procedure. A programmer can easily explain the program logic using a flowchart.
2. Effective analysis: the program can be analysed effectively through the flowchart.
3. Effective synthesis: if a problem is big, it can be divided into small modules, the solution for each module can be represented in a flowchart separately, and they can be joined together to form the final system design.
4. Proper program documentation: a flowchart helps to create a document that will help the company in the absence of the programmer.
5. Efficient coding: with the help of a flowchart it is easy to write the program in a computer language.

Exam Tips:

a) Give all five advantages briefly.

 

Question 66: A flowchart is a better method to represent a program, but it has some limitations. What are they?

Answer:

The limitations are:
1. Drawing a flowchart is time consuming and laborious work.
2. If there is any change or modification in the logic, we may have to redraw a new flowchart.
3. There is no standard to determine how much detail can be included in a flowchart.

Exam Tips:

a) Link this answer to the wrong advantage "modification is easy" in the one mark questions.

 

Question 67: Match the following.

AB
1. Problem identificationa. Flowchart
2. Steps to obtain the solutionb. Syntax error
3. Codingc. Runtime error
4. Translationd. COBOL
5. Debugginge. X-ray
6. Execution and testingf. Compiler

Answer:

1 - e
2 - a
3 - d
4 - f
5 - b
6 - c

Exam Tips:

a) Think of a doctor taking an X-ray for the example of problem identification.

 

Question 68: Alvis executes an error free program but he gets an error. Explain the different types of errors in detail.

Answer:

There are two types of errors in a program before the execution and testing phase: syntax errors and logical errors.
Syntax error: when the programmer violates the rules or syntax of the programming language, a syntax error occurs. Examples are incorrect punctuation, using keywords for other purposes, and violating the structure. It is detected by the compiler, which displays an error message including the line number and a clue about the nature of the error.
Logical error: when the programmer makes a mistake in the logic, it is called a logical error. It is not detected by the compiler, but we get a wrong output. The program must be tested by giving input test data and comparing the results with known results.
The third type of error is the runtime error. It may be due to inappropriate data during execution. For example, consider B/C. If the end user gives zero for C, the execution is interrupted because division by zero is not possible. Such situations must be anticipated and handled.

Exam Tips:

a) Describe the three types with one example each.
b) Mention which error is detected by the compiler and which only through testing.

 

Question 69: The following are the phases in programming, but the order is wrong. Rearrange them in the correct order.
1. Debugging
2. Coding
3. Derive the steps to obtain the solution
4. Documentation
5. Translation
6. Problem identification
7. Execution and testing

Answer:

The correct order is:
1. Problem identification
2. Derive the steps to obtain the solution
3. Coding
4. Translation
5. Debugging
6. Execution and testing
7. Documentation

Exam Tips:

a) Learn the seven phases in order.

 

Question 70: Draw a flowchart to input ten different numbers and find their average.

Answer:

Starti = 0, sum = 0i < 10Read nsum = sum + ni = i + 1avg = sum/10Print avgStopTrueFalse

Exam Tips:

a) Count the numbers with i starting at 0 and test i < 10 so that exactly ten numbers are read.
b) The average is the sum divided by 10.

 

Question 71: Draw a flowchart to find the sum of the first N natural numbers.

Answer:

Starti = 1, sum = 0Read Ni <= Nsum = sum + ii = i + 1Print sumStopTrueFalse

Exam Tips:

a) Initialise sum = 0 and i = 1 before the loop.

 

Question 72: Make a flowchart using the given labelled symbols for finding the sum of all even numbers up to N.
IS A > Na)PRINT SUMb)INPUT Nc)SUM = 0A = 1d)STARTe)IS A % 2 = 0f)STOPg)A = A + 1h)SUM = SUM + Ai)
Also write an algorithm to accept an integer number and print the factors of it.

Answer:

The flowchart can be drawn using the symbols in any of the following orders:
e, c, d, f, i, h, a, b, g
e, d, c, f, i, h, a, b, g
e, c, d, a, f, i, h, b, g
e, d, c, a, f, i, h, b, g
The flowchart for the first order:
STARTINPUT NSUM = 0A = 1IS A % 2 = 0SUM = SUM + AA = A + 1IS A > NPRINT SUMSTOPYesNoYesNo
Algorithm to print the factors of a number:
Step 1: Start
Step 2: Input n
Step 3: i = 1
Step 4: If i <= n/2 then repeat Steps 5 and 6
Step 5: If n % i == 0 then print i
Step 6: i = i + 1
Step 7: Print n (every number is a factor of itself)
Step 8: Stop

Exam Tips:

a) A decision symbol (f) is needed for the even check, and another (a) for the end of the loop.
b) In the factors algorithm, test divisibility with the remainder (n % i).

 

Question 73: List the two approaches followed in problem solving or programming. How do they differ?

Answer:

Approaches in problem solving:
(a) Top down design: larger programs are divided into smaller ones and each task is solved by performing simpler activities.
(b) Bottom up design: here also larger programs are divided into smaller ones, and the smaller ones are again subdivided until the lowest level of detail has been reached. The solving starts from the lowest module onwards.
These approaches are followed through the phases in programming. The first two phases are:
1. Problem identification: this is the first phase. The problem must be identified before it can be solved, and for this we may have to answer some questions. During this phase we identify the data, its type, its quantity and the formula to be used, and the activities involved to get the desired output. For example, if you are suffering from a stomach ache and consult a doctor, the doctor asks questions about your diet, the duration of the pain and previous occurrences, and examines you using a stethoscope, X-ray, scanning, etc.
2. Deriving the steps to obtain the solution: two methods, algorithm and flowchart, are used for this.
(a) Algorithm: the step by step procedure to solve a problem. The word comes from the name of the famous Arab mathematician Abu Jafer Mohammed Ibn Musaa Al-Khowarizmi, whose last name was changed to "algorithm".
(b) Flowchart: the pictorial or graphical representation of an algorithm.

Exam Tips:

a) Differentiate the two approaches by where the solving starts.

 

Question 74: Write an algorithm to find the sum of the squares of the digits of a number. (For example, if 235 is the input, the output should be \(2^2 + 3^2 + 5^2 = 38\).)

Answer:

Step 1: Start
Step 2: Set S = 0
Step 3: Read N
Step 4: If N > 0 repeat Steps 5, 6 and 7
Step 5: Find the remainder, that is, rem = N % 10
Step 6: S = S + rem × rem
Step 7: N = N/10 (integer division, which removes the last digit)
Step 8: Print S
Step 9: Stop

Exam Tips:

a) Use N % 10 to get the last digit and N/10 to remove it.

 

Question 75: Consider the following algorithm and answer the questions.
Step 1: Start
Step 2: N = 2, S = 0
Step 3: Repeat Step 4 and Step 5 while N <= 10
Step 4: S = S + N
Step 5: N = N + 2
Step 6: Print S
Step 7: Stop
1. Predict the output of the above algorithm.
2. Draw a flowchart for the above algorithm.

Answer:

1. The output is 30 (S = 2 + 4 + 6 + 8 + 10 = 30).
2. StartN = 2S = 0N <= 10S = S + NN = N + 2Print SStopYesNo

Exam Tips:

a) Trace the values of N and S in a table to find the output.

 

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

Answer:

Documentation is the last phase in programming. A computerised system must be documented properly. It is an ongoing process that starts in the first phase and continues till the implementation of the system. It is helpful for modifying the program later.

Exam Tips:

a) Mention that documentation helps in later modification and maintenance.

 

Five Mark Questions and Answers

 

Question 77: Mr. Arun wants to develop a program to computerise the functions of a supermarket. Explain the different phases he has to undergo in detail. (That is, briefly explain the different phases in programming.)

Answer:

The different phases in programming are:
1. Problem identification: this is the first phase. The problem must be identified before it can be solved. For this we may have to answer some questions. During this phase we identify the data, its type, its quantity and the formula to be used, as well as the activities involved to get the desired output. For example, if you are suffering from a stomach ache and consult a doctor, the doctor asks about your diet, the duration of the pain and previous occurrences, and examines you using a stethoscope, X-ray, scanning, etc.
2. Deriving the steps to obtain the solution: two methods, algorithm and flowchart, are used for this.
(a) Algorithm: the step by step procedure to solve a problem. The word comes from the name of the famous Arab mathematician Abu Jafer Mohammed Ibn Musaa Al-Khowarizmi, whose last name was changed to "algorithm".
(b) Flowchart: the pictorial or graphical representation of an algorithm.
3. Coding: the algorithm or flowchart is converted into a program using a computer language such as COBOL, Pascal, C++, VB or Java.
4. Translation: the computer knows only machine language. Human beings find a high level language easy for writing programs, so a translation is needed to convert the program written in the high level language into machine code (object code). During this step the syntax errors of the program are displayed. These errors are corrected and the process continues until a "No errors" message is obtained. Then the program is ready for execution.
5. Debugging: program errors are called bugs, and the process of detecting and correcting errors is called debugging. In general there are two types of errors, syntax errors and logical errors. Syntax errors occur when the rules of the language are not followed, and they are displayed after compilation. Logical errors occur when the logic of the program is wrong; they are not displayed after compilation but are found in the execution and testing phase.
6. Execution and testing: the program is executed with test data to determine whether the result produced by the program is correct. There is a chance of another type of error here, the run time error, which may be due to inappropriate data.
7. Documentation: this is the last phase in programming. A computerised system must be documented properly. It is an ongoing process that starts in the first phase and continues till implementation. It is helpful for the modification of the program later.

Exam Tips:

a) Write all seven phases in the correct order, with a line on each.
b) Use the supermarket example to show where each phase applies.
c) Mention the three kinds of errors in the debugging and testing phases.

 

Question 78: Briefly explain the characteristics of an algorithm.

Answer:

The characteristics of an algorithm are:
1. It must start with a "start" statement and end with a "stop" statement.
2. It should contain instructions to accept input, and these are processed by the subsequent instructions.
3. Each and every instruction should be precise and clear. The instructions must be possible to carry out. For example, the instruction "Go to market" is precise and possible to carry out, but the instruction "Go to the moon on foot" is precise yet cannot be carried out.
4. Each instruction must be carried out in finite time by a person with paper and pencil.
5. The number of repetitions of the instructions must be finite.
6. The desired result must be obtained after the algorithm ends.

Exam Tips:

a) Write all six points and give the example of a precise but impossible instruction.

 

Step-by-Step Textbook Answers: Class 11 Computer Science Chapter 04 Principles of Programming and Problem Solving

Official Kerala Board Solutions for Chapter 04 Principles of Programming and Problem Solving

Review comprehensive exercise answers for Class 11 Computer Science Chapter 04 Principles of Programming and Problem Solving. Fully updated to match current Kerala Board syllabus guidelines, these textbook solutions help students verify their work and maintain accurate study notes.

Step-by-Step Explanations for Chapter 04 Principles of Programming and Problem Solving

Each solution includes detailed reasoning to foster genuine comprehension of Chapter 04 Principles of Programming and Problem Solving concepts. Reviewing these step-by-step breakdowns allows learners to master both analytical and descriptive questions expected in school evaluations.

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 11 Computer Science.

FAQs

Where can I find the latest Kerala Plus One Computer Science Chapter 4 Principles of Programming and Problem Solving Questions and Answers for the 2026-27 session?

The complete and updated Kerala Plus One Computer Science Chapter 4 Principles of Programming and Problem Solving Questions and 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 Chapter 4 Principles of Programming and Problem Solving Questions and 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 Chapter 4 Principles of Programming and Problem Solving Questions and Answers will help students to get full marks in the theory paper.

Do you offer Kerala Plus One Computer Science Chapter 4 Principles of Programming and Problem Solving Questions and 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 Chapter 4 Principles of Programming and Problem Solving Questions and 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 Chapter 4 Principles of Programming and Problem Solving Questions and Answers in printable PDF format for offline study on any device.