This preview shows page 1. Sign up to view the full content.
Unformatted text preview: c is used for producing loops in program logic when one or
more instructions ma; be executed several times depending on some condition. It uses
two control structures called DO...WHIL1 and REPEAT...UNTIL.
Why is it advisable to plan the logic of a program before writing it?
What is an algorithm? What are the characteristics necessary for a sequence of
instructions to qualify as a algorithm?
How do we normally judge the quality of an algorithm?
What are the commonly used ways to represent algorithms? Which of these can be
used for solving the corresponding problem on a computer?
Any program is an algorithm although the reverse is not true. Discuss this
What is a program planning tool? How is it useful? Name two commonly used
program planning tools.
What is a flowchart?
8. How does a flowchart help a programmer in program development?
Can a flowchart be drawn for a task if the person drawing the flowchart does not
know how to perform the task manually? Discuss.
What are the various basic symbols used in flowcharting? Give their pictorial
11. Describe the function of the various basic flowcharting symbols. 12. Why are there standards for the symbols used in drawing flowcharts?
13. What is a record? A trailer record?
14. What is a sentinel value? Discuss its use.
15. What is a process loop? An infinite loop?
16. Why is it necessary to avoid infinite loops in program design?
17. "A loop consists of a body, a test for exit condition, and a return provision." Discuss
18. What is a generalized algorithm? Why should programs be general in nature?
19. Discuss the difference between loop control by counting and loop control by the use
of sentinel value. Which is preferable and why?
20. How can a counter be used to keep track of the number of times a loop has been
21. Is it possible to have more than one flowchart for a given problem? Give reasons for
22. What is the difference between a ma...
View Full Document
This document was uploaded on 04/07/2014.
- Spring '14