0% found this document useful (0 votes)
26 views5 pages

Problems Solving Techniques For Class 10 Students

The document contains 15 questions and answers about computer programming concepts. It discusses the importance of problem definition, the steps to solve a problem, what an algorithm and flowchart are, advantages of programming in BASIC, debugging programs, common errors, documenting programs, and provides examples of algorithms and flowcharts for converting temperatures between Celsius and Fahrenheit scales, troubleshooting a lamp, identifying odd numbers, and calculating the sum of squares of natural numbers between 2 and 10.

Uploaded by

Engr Syed Yahya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views5 pages

Problems Solving Techniques For Class 10 Students

The document contains 15 questions and answers about computer programming concepts. It discusses the importance of problem definition, the steps to solve a problem, what an algorithm and flowchart are, advantages of programming in BASIC, debugging programs, common errors, documenting programs, and provides examples of algorithms and flowcharts for converting temperatures between Celsius and Fahrenheit scales, troubleshooting a lamp, identifying odd numbers, and calculating the sum of squares of natural numbers between 2 and 10.

Uploaded by

Engr Syed Yahya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Unit No 9

Question Answers
Class 10-C

1. Explain the importance of problem definition in computer with some suitable example?
It is important to write down the objectives and other important factors of the problem. Problem defining
step should include identification of the input and the desired output of the program.
Example:
How will you find the average of three numbers?
Problem Definition:
The statement “to find the average of three numbers” defines the problem.
Analyzing the Problem:
i) Do you know how to find the average of numbers?
ii) Is the solution is possible on computer?
iii) Can you plan to solve the problem on computer?
2. Describe the various steps necessary to solve a problem?
The various steps necessary to solve a problem are:
 Problem identification stage
 Planning stage
 Coding and Testing stage
 Implementing and documenting stage
3. What is an algorithm? What are the characteristics necessary for a set of instructions to qualify as
an algorithm?
Algorithm is a step by step procedure developed to solve a problem before writing an actual program. In
order to qualify as an algorithm it should possess the following characteristics:
 Each and every step should be precise and clear.
 Each step should be performed in a finite time.
 Steps should not be repeated infinitely.
 The desired result must be obtained.
4. What is a flow chart? What are its advantages?
The pictorial representation of an algorithm is known as flow chart. Advantages of flow chart are:
 The best method for expressing what the computer is going to do.
 It defines clearly the logical flow of the computer program.
 It help the person who is running the program and someone who is reviewing the program.
5. Describe four symbols used in flow chart?
 Flow line: Show the flow of control.
 Terminal symbol: Represent the starting and the stopping point of a flow chart.
 Processing symbol: Represents the calculations.
 Decision symbol: It is used for comparison or a decision.
6. What is meant by computer program?
To solve a problem correctly and efficiently require a computer program that has been developed after
detailed planning. Computer programming can be best described as problem solving.

7. Mention the advantages of programming in BASIC?


Advantages of programming in BASIC are:
 It is easy to learn
 Easy to use.
 Many of the terms in it are based on English words.
 It is used to solve a large variety of problems.
8. What is debugging? Why it is necessary to test or debug a program?
The process of finding and removing errors from a computer program is called debugging. Once the program
has been written, it is necessary to test and debug the program to ensure that it works correctly and will
perform as intended.
9. Mention some of the errors that occur in computer programming?
The errors that can occur in computer programming are:
 Logical error: It is due to improper use of formula.
 Syntax error: It is caused due to the wrong use of a programming language.
 Execution error: It is due to the limitation of the computer.
10. Why it is necessary to document a program?
Well documented programs are extremely valuable whenever the program is to be rewritten for another
computer or whenever someone else wants to modify the program.
11. Write the algorithm for the conversion of temperature from Celsius scale to Fahrenheit scale?
The formula for the conversion of temperature from Celsius scale to Fahrenheit scale is
F = 1.8 *C+32. The algorithm for conversion from Celsius scale to Fahrenheit scale is:
Step 1. Celsius temperature is stored in C
Step 2. Fahrenheit temperature is stored in F
Step 3. Multiply 1.8 by Celsius temperature.
Step 4. Add this result to 32.
12. Convert the algorithm of question 11 into a flowchart?

Start

Input Celsius
Temperature

F = 1.8 * C + 32

End
13. Your table lamp is not in working order. Develop a flow chart for locating the trouble in it. The
trouble may be either in the plug or in the connecting wire or the bulb itself may be fused?

Start

No
Is
plug Change Plug
Ok

Yes
Plug

No
Is Change Wire
Wire
Ok

Yes

No
Is Change Bulb
Bulb
Ok

Yes

End
14. Develop a flowchart for identifying and printing an odd number?

Start

Input N

No
Is N Mod
Print Odd Number
2=0

Yes

Print Even Number

End
15. Develop a flowchart for finding and printing the sum of squares of all the natural numbers
between 2 and 10?

Start

N=3

Sum = 0

No
Is
2<N<10

Yes

Sum=Sum+N^2

Print Sum

End

You might also like