in Education by
For what value does the keyCode property persists even when a Shift key is pressed for adding punctuation character. (a) Special characters (b) Alphabets (c) Alphanumeric (d) Digits The question was asked during a job interview. The above asked question is from Keyboard Events topic in section Document Object Model and Event Handling in Javascript of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The correct option is (d) Digits The explanation: The number keys always generate keyCode values for the digit that appears on the key, even if you are holding down Shift in order to type a punctuation character.

Related questions

0 votes
    Which property is used to specify the key type when pressed? (a) keyCode (b) keyType (c) keyName ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which of these methods can be used to know which key is pressed? (a) getKey() (b) getModifier() ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of these events is generated when a button is pressed? (a) ActionEvent (b) KeyEvent (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of the following key property holds the key name as a string? (a) keyName (b) key (c) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    What does the location property represent? (a) Current DOM object (b) Current URL (c) Both DOM ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What does the usedJsHeapSize property indicate? (a) Amount of memory used (b) Amount of memory unused (c ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    When will the window property come into play? (a) Representation convenience (b) Use as an extension of ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which of the following method is used to replace the current history state instead of adding a new state to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    Which of these methods will be invoked if a character is entered? (a) keyPressed() (b) keyReleased( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...