
IT tutor
Authored by Dimension 21
Information Technology (IT)
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
45 sec • 5 pts
Which modifier performs case-insensitive matching in regular expressions?
(a)
2.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What does the regular expression pattern [0-9] match?
Any letter from a to z
Any digit from 0 to 9
Any special character
Any whitespace character
3.
FILL IN THE BLANK QUESTION
45 sec • 5 pts
Which metacharacter matches a digit in regular expressions?
(a)
4.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What does the quantifier n+ match?
Zero or more occurrences of n
Exactly one occurrence of n
At least one occurrence of n
Zero or one occurrence of n
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
JavaScript Methods and Objects
What does the test() method of RegExp return?
The matched text
The index of the match
true or false
A new string
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What will "Hello world!".repeat(2) return?
"Hello world!Hello world!"
"Hello world!2"
"Hello world! Hello world!"
An Error
None of the Above
7.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What does the exec() method return when no match is found?
false
0
null
undefined
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?