SSC IMD SA 2017 – Question 152

Question:

Which directive is used to perform initialization before executing the code?

कोड का निष्पादन करने से पहले कौन से डाइरेक्टिव है जो इनिशिलाइज़ेशन करने के लिए उपयोग में लाये जाते है?

Options:

  • RESERVE
  • STORE
  • DATAWORD
  • EQU
  • रिज़र्व
  • स्टोर
  • डेटावर्ड
  • EQU

Correct Answer: c)

Explanation:

Detailed Explanation:

The correct answer is c) DATAWORD (डेटावर्ड).

In assembly language programming, directives define data and reserve memory space before code execution:

  • DATAWORD (or DW / DC – Define Constant): An assembler directive used to allocate a word in memory and initialize it with a specific numerical data value prior to program execution.
  • RESERVE (or DS – Define Storage / RES): Allocates memory space of a given size but does not initialize it with any defined value (it merely reserves uninitialized space).
  • EQU (Equate): Assigns a symbolic name to a numeric constant without allocating any memory space at runtime.
  • STORE: An executable CPU machine instruction that writes a value from a register into memory during runtime, not a static initialization directive.

विस्तृत व्याख्या:

सही उत्तर c) डेटावर्ड (DATAWORD) है।

असेंबली भाषा में प्रोग्राम का निष्पादन शुरू होने से पहले मेमोरी और वेरिएबल्स को आरंभिक मान (initialize) देने के लिए डायरेक्टिव्स का उपयोग किया जाता है:

  • डेटावर्ड (DATAWORD या DW): यह एक एसेम्बलर डायरेक्टिव है जो मेमोरी में एक वर्ड स्थान आरक्षित करता है और उसे कोड निष्पादित होने से पहले एक निश्चित मान के साथ इनिशियलाइज़ (प्रारंभ) करता है।
  • रिज़र्व (RESERVE): यह केवल मेमोरी स्पेस आरक्षित करता है, उसे किसी मान से इनिशियलाइज़ नहीं करता।
  • EQU (Equate): यह किसी स्थिरांक को नाम देने के लिए उपयोग होता है, मेमोरी आवंटित नहीं करता।
  • स्टोर (STORE): यह रन-टाइम पर निष्पादित होने वाला निर्देश है, न कि प्री-एग्जीक्यूशन इनिशियलाइज़ेशन डायरेक्टिव।

Leave a Comment

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

Scroll to Top