ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
A flowchart is diagramatic whilst pseudocode is written in a programming language (eg. Pascal or Java)
|
|
A flowchart is textual but pseudocode is diagrammatic
|
|
A flowchart is a diagrammatic description of an algorithm whilst pseudocode is a textual description of an algorithm
|
|
A flowchart and pseudocode are the same thing
|
Detailed explanation-1: -ANSWER-The correct answer is (c) A flowchart is a diagrammatic description of an algorithm, while pseudocode is a textual description of an ALGORITHM . A flowchart is a graphical representation of an algorithm that uses symbols and arrows to show the flow of a process.
Detailed explanation-2: -Flowcharts and pseudo code are both used before writing code, but pseudocode is linear while a flow chart isn’t. Also, a flowchart is graphical, while pseudocode is technical. With that in mind, a flow diagram is suitable for communicating between non-technical people and programmers.
Detailed explanation-3: -A flowchart is a diagrammatic description of an algorithm, whilst pseudocode is a textual description of an algorithm.
Detailed explanation-4: -The major difference between algorithm and pseudocode is that pseudocode is a method of writing an algorithm and an algorithm is a step-by-step description of the procedure of a task.
Detailed explanation-5: -A flowchart is diagrammatic whilst pseudo code is written in a programming language (eg. Pascal or Java). A flowchart is a diagrammatic description of an algorithm whilst pseudo code is a textual description of an algorithm.