Computer AwarenessVery hardIBPS SO IT Officer
A text file is saved in UTF-8. How many bytes does the English letter 'A' take, and how many does a Devanagari letter such as 'क' take?
- A. 1 byte and 2 bytes
- B. 2 bytes and 2 bytes
- C. 1 byte and 4 bytes
- D. 1 byte and 3 bytes
Correct answer: D. 1 byte and 3 bytes
UTF-8 keeps ASCII in one byte; code points U+0800 to U+FFFF, which include the Devanagari block (U+0900–U+097F), take three bytes. Two bytes reach only U+07FF.
हिंदी में
एक पाठ फ़ाइल UTF-8 में सहेजी गई है। अंग्रेज़ी अक्षर ‘A’ कितने बाइट लेता है, और ‘क’ जैसा देवनागरी अक्षर कितने?
- A. 1 बाइट और 2 बाइट
- B. 2 बाइट और 2 बाइट
- C. 1 बाइट और 4 बाइट
- D. 1 बाइट और 3 बाइट
उत्तर: D. UTF-8 ASCII को एक बाइट में रखता है; कोड बिंदु U+0800 से U+FFFF, जिनमें देवनागरी ब्लॉक (U+0900–U+097F) आता है, तीन बाइट लेते हैं। दो बाइट केवल U+07FF तक पहुँचते हैं।
More Computer Awareness questions
- In which number base is the statement 3 × 4 = 13 true?
- Three of these numbers are equal. Which one has a different value?
- What is (A0)₁₆ − (3F)₁₆, written in hexadecimal?
- What is (567)₈ + (234)₈, written in octal?
- When the digits 8 and 5 are added in 8421 BCD, the 4-bit sum 1101 is not a valid BCD digit. How is it corrected, and what is the final BCD…
- What is the minimum number of bits needed to store every whole number from 0 to 9999 in pure binary?