Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (3 votes)
8K views

Computer Science 10th Class Chapter 01 Short Questions Answers

The document contains information about algorithms, flowcharts, and problem solving steps related to computer science for 10th class. It includes definitions of a computer, algorithm, and flowchart. It also provides examples of algorithms to calculate the area of a rectangle, convert inches to centimeters, check exam marks, find the sum and product of numbers, and print a multiplication table in reverse order. Sample flowcharts are given to calculate the area of a rectangle and convert inches to centimeters.

Uploaded by

Hamza Niaz
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
8K views

Computer Science 10th Class Chapter 01 Short Questions Answers

The document contains information about algorithms, flowcharts, and problem solving steps related to computer science for 10th class. It includes definitions of a computer, algorithm, and flowchart. It also provides examples of algorithms to calculate the area of a rectangle, convert inches to centimeters, check exam marks, find the sum and product of numbers, and print a multiplication table in reverse order. Sample flowcharts are given to calculate the area of a rectangle and convert inches to centimeters.

Uploaded by

Hamza Niaz
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Download All Subjects Free PDF Educational Books, Notes, Past Papers etc.

Website: www.easymcqs.com , E-mail: usmanrafiq@gmail.com


TH
COMPUTER SCIENCE FOR 10 CLASS (UNIT # 1)
============================================================
SHORT QUESTIONS

Define Computer.
A computer is an electronic data processing device. It reads data processing and
produces results accurately at a very high speed.

What is algorithm and what is the role of algorithm in problem solving?


Algorithm:
Algorithm means method, procedure, technique or plan. It is a step-by-step pr blem
solving method. It is easy to understand and follow. It is a set of steps that clearly
defines a sequence of operations to solve a problem.
Role of Algorithm in Problem Solving:
Algorithm plays an important role in computer programming.
Computer programming is the process of taking an alg ri hm and coding it in a
programming language.
Formulating an algorithm is the first step for developi g a c mputer program.

What is a flowchart?
Flowchart is a diagrammatic representation of gorithm. It describes what operations
are required to solve a given problem.

What are the advantages of using flow harts?


Flowchart illustrates the sequence of operations to be performed to solve a
problem.
Programmers draw flowcharts bef re writing computer programs.
Flowchart provides an easy way to analyze and find solutions of problems.
Once, the flowchart is draw , it becomes very easy to write the program in any
high level language.
Flowchart is very helpful in communicating the problem solving method to other
people.
It also helps in finding and removing errors in computer programs.

Draw any four graphical symbols used in flowchart and explain them.
Flo chart symbols have specific meaning and are connected by arrows indicating the
flow from one step to another.
Flow line:
It is a line with arrow head. It is used to connect various flowchart symbols. It
indicates the flow of control.
Start/Stop Symbol:
It is a rounded rectangular shaped. It is used to indicate the start or end of a
flowchart. We can only write the words START or STOP inside this symbol. A flowchart
can only have one start but it may have many ends.
Input/Output Symbol:
============================================================
Visit www.easymcqs.com for Notes, Old Papers, Home Tutors, Jobs, IT Courses & more. (Page 1 of 7)
Download All Subjects Free PDF Educational Books, Notes, Past Papers etc.
Website: www.easymcqs.com , E-mail: usmanrafiq@gmail.com
TH
COMPUTER SCIENCE FOR 10 CLASS (UNIT # 1)
============================================================
It is represented by parallelogram. It indicate input or output operations. It contains
the word READ or INPUT along with the variables for input operation or PRINT for
OUTPUT along with the output data for output operation.
Processing Symbol:
It is represented by a rectangular block. It is used for data processing operation. All
the calculations appear inside the processing symbol, such as “SUM=A+B”. Variables
are also initialized inside the process symbol such as “K=1”.
Decision Symbol:
A decision or branching point. Lines representing different decisions emerge from
different points of the diamond.

What is defining the problem?


Defining the problem is first stage of problem solving. It’s very important to
understand the problem before the programmer starts working on its solution. The
following are the steps to properly efine and understand the problem.
Carefully read the problem to underst nd what it tells.
Find out what the prob em asks to do.
What information can be btained from the problem?
What is required to be calculated as the solution of the problem?

LONG QUESTIONS

Describe the steps involved in problem solving?


The follo ing five steps are involved in problem solving on computer.

1) Defining the Problem:


Defining the problem is first stage of problem solving. It’s very important to
understand the problem before the programmer starts working on its solution. The
follo ing are the steps to properly define and understand the problem.
Carefully read the problem to understand what it
tells. Find out what the problem asks to do.
What information can be obtained from the problem?
What is required to be calculated as the solution of the problem?
============================================================
Visit www.easymcqs.com for Notes, Old Papers, Home Tutors, Jobs, IT Courses & more. (Page 2 of 7)
Download All Subjects Free PDF Educational Books, Notes, Past Papers etc.
Website: www.easymcqs.com , E-mail: usmanrafiq@gmail.com
TH
COMPUTER SCIENCE FOR 10 CLASS (UNIT # 1)
============================================================
2) Analyzing the Problem:
The programmer investigates the problem and gathers as much information as
possible to find a solution. The following questions can be asked to analyze the
problem.
Is it possible to solve the problem on a computer?
What is to be done to find the solution of the problem?
What is the proper and what output is required?
How many solutions are possible?
Which solution is the best and why?
How solution will be implemented?

3) Planning The Solution Of The Problem:


It refers to dividing the solution of any problem into steps and arranging them into
proper order.
How to Discuss a Problem:
Talk to the right person.
Focus on talking about the problem
only. Stay calm and reasonable.
Explain the problem in detail and provide ny evidence you may have.
Tell them what outcome you want.
Listen to their response.
Does his/her response resolve your issue?

4) Candid Solutions of a Problem:


All the possible solutions f a pr blem that produce correct result are known as candid
solutions. To find candid s lutions of a problem, programmer has to look for different
methods to solve the problem and come up with several solutions.

5) Select The Best Solution:


After finding the candid solutions, only one solution can be selected. The selection of
final solution of a pr blem should be based on the followings:
Speed: It means when the solution is implemented in a programming language,
the program should run fast.
Cost: The selected solution should be cost-effective.
Complexity: The selected solution of the problem should not be complicated.

Write an algorithm to calculate the area of a rectangle for given breath and
length?
Step 1 Input the width (W) and Length (L) of a rectangle
Step 2 Calculate the area (A) by multiplying L with W
Step 3 Print A

Write an algorithm that inputs length in inches and calculate and prints it in
centimeters.
============================================================
Visit www.easymcqs.com for Notes, Old Papers, Home Tutors, Jobs, IT Courses & more. (Page 3 of 7)
Download All Subjects Free PDF Educational Books, Notes, Past Papers etc.
Website: www.easymcqs.com , E-mail: usmanrafiq@gmail.com
TH
COMPUTER SCIENCE FOR 10 CLASS (UNIT # 1)
============================================================
Step 1 Input the length in inches (LI)
Step 2 Calculate the length in cm (LCM) by multiplying LI with 2.54
Step 3 Print LCM

Write an algorithm that inputs marks and prints the message “PASS” or
“FAIL”. Passing marks are 33.
Step 1 Input Marks (M)
Step 2 Check if (M<33) then Print “FAIL” GOTO Step 4
Step 3 ELSE Print “PASS”
Step 4 Stop

Write an algorithm to find the sum of given sequence.


Step 1 Start
Initialize Sum to 0 and K=5
Step 2 Add K to SUM
SUM=SUM+K
Step 3 Increment K by 5
K=K+5
Step 4 Check if the value of K is less than or equal to 60
IF K≤100 THEN GOTO Step 2 otherwi e GOTO Step 5
Step 5 Print SUM
Step 6 Stop

Write an algorithm to find the pro uct of given numbers.


PRODUCT = 1×3×5×7×9×11×13×15
Step 1 Start
Initialize variab e K to 1 and prod = 1
K=1 Prod= 1
Step 2 Increment K by 2
K=K+2
Step 3 Find the Product
Pr d=Pr d × K
Step 4 Check if the value of K is less than 16
IF K<16 THEN GOTO Step 2 otherwise GOTO Step 5
Step 5 Print product
Print Prod
Step 6 Stop

Write an algorithm to print multiplication table of a number in reverse order.


Step 1 Enter the number N whose table is to be generated
Step 2 Initialize the valve of 1 with 10
I=10
Step 3 Find the product of N and I
Prod= N × I
Step 4 Print N, I and Prod
Print N I and Prod
============================================================
Visit www.easymcqs.com for Notes, Old Papers, Home Tutors, Jobs, IT Courses & more. (Page 4 of 7)
Download All Subjects Free PDF Educational Books, Notes, Past Papers etc.
Website: www.easymcqs.com , E-mail: usmanrafiq@gmail.com
TH
COMPUTER SCIENCE FOR 10 CLASS (UNIT # 1)
============================================================
Step 5 Decrease the value of I by 1
I=I – 1
Step 5 IF the value of I is > 0 THEN GOTO Step 3 Otherwise GOTO Step 6
Step 6 Stop

Write a Flowchart to calculate the area of a rectangle for given breadth and
length.
Flowchart for the area of a rectangle for given breadth and length:

Write a Flowchart to that inputs length in inches and calculate and prints it
in centimeters.

============================================================
Visit www.easymcqs.com for Notes, Old Papers, Home Tutors, Jobs, IT Courses & more. (Page 5 of 7)
Download All Subjects Free PDF Educational Books, Notes, Past Papers etc.
Website: www.easymcqs.com , E-mail: usmanrafiq@gmail.com
TH
COMPUTER SCIENCE FOR 10 CLASS (UNIT # 1)
============================================================
Write a Flowchart to that inputs marks and prints the message “PASS” or
“FAIL” Passing marks are 33.

Write a Flowchart to find the sum of given sequence.


SUM = 20+25+30+40+45+50+55+60

============================================================
Visit www.easymcqs.com for Notes, Old Papers, Home Tutors, Jobs, IT Courses & more. (Page 6 of 7)
Download All Subjects Free PDF Educational Books, Notes, Past Papers etc.
Website: www.easymcqs.com , E-mail: usmanrafiq@gmail.com
TH
COMPUTER SCIENCE FOR 10 CLASS (UNIT # 1)
============================================================
Write a Flowchart to to find the product of given numbers.
PRODUCT = 1×3×5×7×9×11×13×15

Write a Flowchart to print multiplication t b e of a number in reverse order.

============================================================
Visit www.easymcqs.com for Notes, Old Papers, Home Tutors, Jobs, IT Courses & more. (Page 7 of 7)

You might also like