21a QUESTION: 21 GROUP Programming Basics {Computer Architecture What is the hexadecimal...
Qualcomm aptitude question, verified with a worked answer. Free to practise - no sign-up.
21a QUESTION: 21 GROUP Programming Basics
{Computer Architecture
What is the hexadecimal equivalent of the below given binary number?
24
Ba] 85Dh
5
12h
DBh
33Fh
--- [PAGE/IMAGE BREAK] ---
Years
17--- [PAGE/IMAGE BREAK] ---
2013
Years
ents in the University was 7
}000 in the year 2011, then wh
--- [PAGE/IMAGE BREAK] ---
| Se - a
— ; 4 : peru beta Lo tea ear nog rare bine Mana. IPE: En ——
5 ; > Whier 5 Sree os ‘ie ae ene fee hy Ht aK
Ste. e7 Li Aa he he ey rel A be a e\ cks Zz
ams 2 one tay pt "2 -sifaget chs meen, ny ~ r] Mint —
; Raed ok Saag BH Stack ' tals See SIP T AERA eo ae ee
igre ( .)- Lek eR ane OTS Pe ng partringerr trom ih) ft a
NES _\— tacks can be implemented usi both ad tren een
32% ites MAI
a mA. el equal to zero implies only one element in the stack. Shee ae ae
#. — = ey 4 z
s ene < Pin Boe
ore v ;
--- [PAGE/IMAGE BREAK] ---
“+ —(argay[i ¢ 9 ys
Printt("sa-, (array(11}) * 2);
return 0;
eS
Show answer & explanation
To convert a binary number to hexadecimal, group the binary digits into sets of four (nibbles) from the right, then convert each group to its hexadecimal equivalent. The binary number corresponding to 85Dh is 1000 0101 1101.
Step-by-step Derivation:
Step 1: Identify the binary number. Based on the correct option 85Dh, the binary number is 100001011101.
Step 2: Group the binary digits into nibbles (4 bits) from right to left: 1000 0101 1101.
Step 3: Convert each nibble to hexadecimal:
- 1000 = 8
- 0101 = 5
- 1101 = D
Step 4: Combine the hexadecimal digits: 85Dh.
Therefore, the hexadecimal equivalent is 85Dh.