Computer AwarenessVery hardIBPS SO IT Officer

SHA-256 hashes are computed for a 1-byte file and a 1 GB file. How long are the two hash values?

  1. A. Both are exactly 256 bits
  2. B. 1 byte and 1 GB respectively
  3. C. 256 bits and 256 bytes respectively
  4. D. They vary with the data, about 1% of the file size

Correct answer: A. Both are exactly 256 bits

A hash function gives a fixed-length digest whatever the input size: SHA-256 always outputs 256 bits (64 hex characters).

हिंदी में

1-बाइट की फ़ाइल और 1 GB की फ़ाइल के लिए SHA-256 हैश निकाले जाते हैं। दोनों हैश मान कितने लंबे होते हैं?

  1. A. दोनों ठीक 256 बिट के
  2. B. क्रमशः 1 बाइट और 1 GB
  3. C. क्रमशः 256 बिट और 256 बाइट
  4. D. वे डेटा के अनुसार बदलते हैं, फ़ाइल के आकार का लगभग 1%

उत्तर: A. हैश फ़ंक्शन इनपुट के आकार से निरपेक्ष निश्चित-लंबाई का डाइजेस्ट देता है: SHA-256 सदा 256 बिट (64 हेक्स अक्षर) आउटपुट देता है।

More Computer Awareness questions

Exams that ask this topic