in Education by
What does /[^(]* regular expression indicate? (a) Match one or more characters that are not open parenthesis (b) Match zero or more characters that are open parenthesis (c) Match zero or more characters that are not open parenthesis (d) Match one or more characters that are open parenthesis This question was addressed to me in final exam. This intriguing question comes from Pattern Matching and Regular Expressions in division Classes and Modules 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
Correct choice is (c) Match zero or more characters that are not open parenthesis To explain I would say: The [^…] character class is used to match or draw any one character not between the brackets. One should always be careful while using * and ? as repetition characters as they may match zero instances of whatever precedes them, they are allowed to match nothing.

Related questions

0 votes
0 votes
    Object of which class is used to compile regular expression? (a) Pattern class (b) Matcher class (c ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    The regular expression to match any one character not between the brackets is __________ (a) [ ] (b) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    What does the status code 500 indicate? (a) Error in request (b) Error in response (c) Error in ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What does the constant TYPE_BACK_FORWRD indicate? (a) Navigation via browser history (b) Navigation via user ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 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
    What does the status code 200 indicate? (a) Error in request (b) Error in response (c) Error in ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    The class that represents the regular expressions is ________ (a) RegExpObj (b) RegExpClass (c) RegExp (d) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What is the most essential purpose of parentheses in regular expressions? (a) Define pattern matching techniques ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...