Which of the following can be used as a criterion for classification of data structures used in language processing.
Answer: D) all of the above.
Data structures used in language processing can be classified using different criteria, depending on their characteristics and roles in a program.
The three common criteria are:
1. Nature of a Data Structure: Classification based on its characteristics, such as whether it is linear or non-linear, static or dynamic.
2. Purpose of a Data Structure: Classification based on its intended use, such as storing symbols, managing names, or keeping intermediate code.
3. Lifetime of a Data Structure: Classification based on how long it exists during program execution, such as temporary or permanent storage.
Since all three can be used as criteria for classification, the correct answer is D. All of the above.
Language Processing मा प्रयोग हुने Data Structures लाई विभिन्न आधारमा वर्गीकरण गर्न सकिन्छ। तीमध्ये मुख्य तीनवटा आधार हुन्:
1. Nature of a Data Structure: Data Structure को प्रकृति वा विशेषताका आधारमा वर्गीकरण गर्ने। जस्तै Linear, Non-linear, Static र Dynamic।
2. Purpose of a Data Structure: यसको उद्देश्य वा प्रयोगका आधारमा वर्गीकरण गर्ने। जस्तै Symbol Store गर्ने, Name व्यवस्थापन गर्ने वा Intermediate Code राख्ने।
3. Lifetime of a Data Structure: Program Execution को समयमा Data Structure कति समयसम्म अस्तित्वमा रहन्छ भन्ने आधारमा वर्गीकरण गर्ने।
यी तीनवटै Data Structure वर्गीकरण गर्ने आधार भएकाले सही उत्तर D. All of the above हो।
Exam Tip: Data Structures used in Language Processing can be classified by Nature, Purpose, and Lifetime.

