6th Class Computers Basics of Computer Introducing Computer Programming

Introducing Computer Programming

Category : 6th Class

*     Introducing Computer Programming

 

 

Computer programs are set of instructions that enable a computer to interact with the user, peripherals and information. These instructions are written in a language called computer programming language. The process of writing computer programs is called computer programming. While writing a program using a computer programming language, such as C, you need to follow the syntax of that language. A programming language also provides operators that enable you to perform various tasks, such as computing and manipulating values of variables, compare values of different variables of same data types and test multiple conditions.  

 

*   Developing Flowchart

Flowchart is a technique that allows you to represent computer program graphically. Using flowchart you can easily understand the logic of a program. A flowchart represents the logical and operational steps to be performed within the system for transforming the input process into output. Flowchart serves as a basis for discussion and communication between the system analysts and the programmers.  

 

*    To create a flowchart, you need to use the following symbols

  • Start and Stop symbol
  • Processing symbol
  • Flow Line symbol
  • Input / Output symbol
  • Decision making symbol  

 

SYMBOL DESCRIPTION  
This symbol is used to represent the start and the end of an algorithm or process.              
This symbol is used to represent the logic used in a process or algorithm.               
This symbol is used to represent the input/output steps of a process.
This symbol is used to represent the conditional situation of a process.  
This symbol is used to represent the flow of control in a process.

 

*    While creating a flow chart you need to keep the following points in your mind

  • While creating a flow chart only a single flow line comes out from a process symbol.
  • Flow direction of a process will always indicate either from left to right or from top to bottom.
  • In decision box only one flow line enters and multiple flow lines can come out.
  • Only a single flow line comes out from starting process and enters single flow line in stop process.
  • Every flowchart contains a logical start and a logical end.  

 

 

example.jpg

 

The following figure displays the flowchart of a program for printing grade of employ according to his or her salary: (See Figure 6.1.4)

 

 

 

Question.jpg  

 

 Using flowchart you can grip logic of algorithm easily. Which one of the following symbol is used to represent conditional situation of a process in flowchart?  

                                    

                                    

(E) None of these  

 

Answer: (d)

Explanation

Correct Option:

(D) This symbol is used to represent the conditional situation of a process.

Incorrect Option:

(A) This symbol is used to represent the start and the end of an algorithm or process.

(B) This symbol is used to represent the logic used in a process.

(C) This symbol is used to represent the input/output steps of a process.    

 

 

 Flowchart is a graphical representation of computer program. Which one of the following symbols is used to represent the process of an algorithm?

                                      

                                    

(E) None of these

 

Answer: (b)

Explanation

Correct Option:

(B) This symbol is used to represent the process of an algorithm.

Incorrect Options:

(A) This symbol is used to represent the start and the end of an algorithm or process.

(C) This symbol is used to represent the input/output steps of a process.

(D) This symbol is used to represent the conditional situation of a process.  

 

 

  How many flow lines can enter in the end symbol of a flowchart?

(A) One                                                               

(B) Two

(C) Three                                                            

(D) None

(E) None of these

 

Answer: (a)

Explanation

Correct Option:

(A) Only a single flow line comes out from starting process and enters single flow line in stop process.

Incorrect Options:

Rest of the options is incorrect.



LIMITED OFFER HURRY UP! OFFER AVAILABLE ON ALL MATERIAL TILL TODAY ONLY!

You need to login to perform this action.
You will be redirected in 3 sec spinner

Free
Videos