Computer AwarenessVery hardSBI PO · IBPS Clerk · SSC CGL
The decimal number 45 is stored as an 8-bit unsigned binary number and then shifted left by 2 bits (zeros entering from the right, no overflow). The new decimal value is:
- A. 90
- B. 180
- C. 47
- D. 11
Correct answer: B. 180
45 = 00101101; shifting left by 2 gives 10110100 = 128 + 32 + 16 + 4 = 180. Each left shift doubles the value, so 45 × 4 = 180. 11 would come from a right shift by 2.
हिंदी में
दशमलव संख्या 45 को 8-बिट अचिह्नित बाइनरी संख्या के रूप में संग्रहीत किया जाता है और फिर 2 बिट बाईं ओर खिसकाया जाता है (दाईं ओर से शून्य आते हैं, कोई ओवरफ़्लो नहीं)। नया दशमलव मान है:
- A. 90
- B. 180
- C. 47
- D. 11
उत्तर: B. 45 = 00101101; 2 बिट बाएँ खिसकाने पर 10110100 = 128 + 32 + 16 + 4 = 180। प्रत्येक बायाँ खिसकाव मान को दोगुना करता है, इसलिए 45 × 4 = 180। 11, 2 बिट दाएँ खिसकाने से आता।
More Computer Awareness questions
- Convert the hexadecimal number (2F7)₁₆ directly into octal.
- A cache has an access time of 10 ns and main memory 100 ns. The cache is checked first and, on a miss, the word is then read from main…
- In the fetch phase of an instruction cycle, which register-to-register transfer happens first?
- A processor has a 20-bit address bus, and its memory is word-addressable with 16-bit (2-byte) words. What is the maximum memory it can…
- A system uses 32-bit virtual addresses and a page size of 4 KB. How many bits of the address form the page number and how many the offset…
- Which of the following is NOT one of the four conditions that must all hold for a deadlock to occur?