Question:
Where among the following is GO TO not used?
निम्न में से कहाँ GO TO का इस्तेमाल नहींं किया जाता?
Options:
- Flowchart
- HIPO-diagram
- Nassi-Shneiderman diagram
- None of these
- फ़्लोचार्ट
- HIPO-चित्र
- नासी-शनीडरमेन डाइग्रााम
- इनमे से कोई नहींं
Correct Answer: c)
Explanation:
Detailed Explanation:
The correct answer is c) Nassi-Shneiderman diagram (नासी-शनीडरमेन डाइग्राम).
Nassi-Shneiderman Diagrams (NSD):
- Developed in 1972 by Isaac Nassi and Ben Shneiderman, a Nassi-Shneiderman diagram (or structogram) is a graphical representation designed specifically for structured programming.
- In an NSD, control flow is represented by contiguous, nested rectangular blocks. The diagram visually defines the three basic structured programming constructs:
- Sequence: Stacked rectangular boxes.
- Selection: Triangular partitioned decision blocks (if-then-else).
- Iteration: Loop structures enclosing interior blocks (while, for).
- Crucially, NSDs contain no lines, arrows, or jump indicators, strictly eliminating arbitrary control flow transfer instructions such as
GOTO. - In contrast, standard flowcharts use arrows and decision diamonds that can freely implement arbitrary jumps (
GOTO).
विस्तृत व्याख्या:
सही उत्तर c) नासी-शनीडरमेन डाइग्रााम है।
नासी-शनीडरमेन डायग्राम (Nassi-Shneiderman Diagram):
- 1972 में आइजैक नासी और बेन श्नाइडरमैन द्वारा विकसित यह आरेख संरचित प्रोग्रामिंग (Structured Programming) का एक ग्राफिकल निरूपण है।
- इस आरेख में प्रोग्राम के प्रवाह को आयताकार बक्सों (nested blocks) के माध्यम से दर्शाया जाता है। इसमें केवल तीन मूलभूत संरचनाएं होती हैं: अनुक्रम (Sequence), चयन (Selection/If-Else), और पुनरावृत्ति (Iteration/Loop)।
- इस डायग्राम में कोई तीर (arrows) या प्रवाह रेखाएं नहीं होती हैं, जिसके कारण इसमें अनियंत्रित जंप यानी GO TO निर्देशों का उपयोग पूरी तरह से वर्जित होता है।
- फ़्लोचार्ट में तीरों के माध्यम से मनचाहा जंप (GOTO) दर्शाया जा सकता है, जबकि HIPO पदानुक्रमित इनपुट-प्रोसेस-आउटपुट को दर्शाता है।