1. Question:Draw the generalized selection structure in flowchart. 

    Answer
    
    Figure: Generalized selection structure

    1. Report
  2. Question:Write the syntax of loop structure in pseudocode. 

    Answer

    DO WHILE (condition)
       instruction-1
       instruction-2
       ...
    END DO


    1. Report
  3. Question:Draw the generalized loop structure in flowchart. 

    Answer
    
    Figure: Generalized loop structure.

    1. Report
  4. Question:What is sequence structure in pseudocode? 

    Answer
    The sequence structure in pseudocode simply express in English what it is we want to do, in the order in which we want to do it.

    1. Report
  5. Question:Draw the generalized sequence structure in flowchart. 

    Answer
    
    Figure: Generalized sequence flowchart.

    1. Report
  6. Question:Draw the flowchart for sorting two numbers in descending order. 

    Answer
    
    Figure: Showing sorting between two numbers.

    1. Report
  7. Question:Draw the generalized CASE structure in flowchart. 

    Answer
    
    Figure: Generalized CASE structure.

    1. Report
  8. Question:What do you mean by documenting a program? Write down the benefits of it. 

    Answer
    Documenting: Preparing a written record of all activities associated with the programming process.

    Benefits:

    1. When time comes to change a program, even the programmer who worte it is likely to have difficulty remembering the details of the program unless it has been well documented.
    2. If the original programmer is no longer available, it may be virtually impossible to modify the program unless very careful and detailed documentation exists.
    3. Without adequate documentation, it may be necessary to rewrite completely a program that must be changed.




    1. Report
  9. Question:What is refining algorithm? 

    Answer
    A series of refinements after  initial algorithm to make the process more efficient and to include some steps that we had failed to consider in our initial algorithm.

    1. Report
  10. Question:Define Interperter. 

    Answer
    Interpreter:

    1. The syntax of each instruction is checked as it is entered.
    2. Instructions that contain syntax errors are corrected and reentered.
    3. Instructions without errors are executed immediately.
    4. No object program is produced.

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd