Multiple choice technology programming languages

void main(){ char far *p = 0x417; *p=64; }

  1. Reboot the Machine

  2. Disable the print screen key

  3. Change the default screen color

  4. puts Capslock on

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In DOS/BIOS environments, memory address 0x417 (segment 0x0000, offset 0x0417) is the BIOS keyboard data area that stores the keyboard shift status byte. The bits in this byte control toggle keys like CapsLock, NumLock, ScrollLock. Setting bit 6 (value 64) turns on CapsLock. This is a direct hardware manipulation through memory-mapped I/O.