4 4 votes What bit must be complemented 10 change an ASCII leiter from capital to lowercase and vice versa? (Counting the bit as 1 from LSB) Digital Logic goclasses digital-logic number-representation boolean-algebra goclasses-cs-dpp goclasses-cs-dpp-day-14 goclasses-digital-logic-practice-questions + – GO Classes 506 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote In ASCII, uppercase and lowercase letters differ only at bit 6 (when counting from LSB as bit 1). This bit has a binary weight of 32 . Complementing bit 6 toggles the case of a letter. GO Classes answered Jun 12, 2025 • reshown Jun 15, 2025 by GO Classes Support GO Classes comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote As we know, ASCII value of 'a' = 97 ASCII value of 'A' = 65 So, difference between ASCII values of lower case and uppercase letter is 32. So, if we want to convert lower case to uppercase, we have to change the bit, which can make them differ by 32. So, we have to change the 6th bit from the last if we consider LSB as 1. So ans = 6 arnab00007 answered Jun 12, 2025 arnab00007 comment Share Follow See all 2 Comments 2 2 Comments reply Self commented Jun 15, 2025 reply Follow flag can u tell where this concept is told ?...or just u have solved by creating some logic ? 0 0 replyShare arnab00007 commented Jun 15, 2025 reply Follow flag It is not an independent concept.. I just thought deeply what the question truly asked, and came up with this answer 1 1 replyShare Please log in or register to add a comment.