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?
- A. Both are exactly 256 bits
- B. 1 byte and 1 GB respectively
- C. 256 bits and 256 bytes respectively
- 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 हैश निकाले जाते हैं। दोनों हैश मान कितने लंबे होते हैं?
- A. दोनों ठीक 256 बिट के
- B. क्रमशः 1 बाइट और 1 GB
- C. क्रमशः 256 बिट और 256 बाइट
- D. वे डेटा के अनुसार बदलते हैं, फ़ाइल के आकार का लगभग 1%
उत्तर: A. हैश फ़ंक्शन इनपुट के आकार से निरपेक्ष निश्चित-लंबाई का डाइजेस्ट देता है: SHA-256 सदा 256 बिट (64 हेक्स अक्षर) आउटपुट देता है।
More Computer Awareness questions
- In a one-address (accumulator-based) machine, what does the instruction ADD X do?
- A child process has finished running, but its parent has not yet read its exit status, so its entry stays in the process table. Such a…
- Pages are 4 KB (4096 bytes) and a process needs 10,300 bytes. How many pages are allocated, and how much internal fragmentation results?
- A disk head is at cylinder 50, and requests wait for cylinders 82, 170, 43, 140, 24, 16 and 190. Under Shortest Seek Time First, what is…
- Table A has 5 rows and table B has 4 rows with the same columns, and exactly 2 rows appear in both; neither table has duplicates of its…
- How many bits hold the fraction (mantissa) in IEEE 754 double precision, and about how many significant decimal digits does that give?