DSSSB TGT CS Mock 04 – Question 110

Question:

In compiler design, what is the output of the Lexical Analyzer passed to the Syntax Analyzer?
कंपाइलर डिज़ाइन में, लेक्सिकल एनालाइज़र (स्कैनर) द्वारा सिंटैक्स एनालाइज़र को क्या आउटपुट दिया जाता है?

Options:

  • A stream of tokens (Token type, Attribute value)
  • Parse tree
  • Three-Address Code
  • Assembly code
  • टोकन की एक स्ट्रीम (Token type, Attribute value)
  • पार्स ट्री
  • थ्री-एड्रेस कोड
  • असेंबली कोड

Correct Answer: a)

Explanation:

The Lexical Analyzer reads character streams from source code, strips whitespace/comments, identifies lexemes, and generates a stream of tokens \(\langle \text{token-name}, \text{attribute-value} \rangle\) for the parser.
लेक्सिकल एनालाइज़र सोर्स कोड के कैरेक्टर्स को पढ़कर टोकन (जैसे कीवर्ड, आइडेंटिफ़ायर, ऑपरेटर) बनाता है और पार्सर को भेजता है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top