
Quiz on Regular Expressions and NLP
Authored by king king
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
33 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the '|' character represent in a regular expression?
Logical AND
Logical OR
Logical NOT
Grouping
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct regular expression to find one or two vowels containing only lowercase alphabets?
[aeiou]
[aeiou+]
[^aeoiu]
[aeiou]+
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character in a regular expression is used to match any single digit?
?
.
*
+
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the regular expression '[A-Z]+' match?
Matches one or more uppercase letters
Matches zero or more uppercase letters
Matches exactly one uppercase letter
Does not match anything
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the '+' character represent in a regular expression?
Matches zero or one occurrence
Matches zero or more occurrences
Matches one or more occurrences
Matches a specific number of occurrences
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct regular expression to match all words starting with 'a' and ending with 'e'?
^a*e$
^a.*e$
^a.+e$
^a?e$
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the regular expression '[0-9]{3}' match?
Match three consecutive digits
Match three digits in random order
Match three non-digit characters
Does not match anything
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?