Multiple choice technology programming languages

Which of the following is used to check whether the Caps lock in keyboard is turned on or Not By using VB.Net 2005?

  1. If My.Computer.Keyboard.CapsLock = True Then

  2. If System.Computer.Keyboard.CapsLock = True Then

  3. Both A and B

  4. None of the Above

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

In VB.Net 2005, the My.Computer.Keyboard.CapsLock property returns a Boolean value indicating whether the Caps Lock key is turned on, making option A the correct syntax.