
Regular Expressions - AQA A Level Computer Science
Authored by Ralph Ellis
Computers
12th Grade
Used 36+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Select the strings that are matched by the regular expression:
a(bc)*d
abcbcbcbcd
acd
ad
acccd
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Select the strings that are matched by the regular expression:
a(b|c)?d
abcbcbcbcd
acd
ad
acccd
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Select the strings that are matched by the regular expression:
ab?c*d
abcbcbcbcd
acd
ad
acccd
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which regular expression matches the FSM?
a?bc(dc)*
a|b(cd)+
a+bc(dc)?
a(b|c)d*c*
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which regular expression matches the FSM?
a*b?(c|d)e+
a+b?c|de*
a*b+(c|de)+
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Regular expression are used to...
match patterns in text
draw FSMs
define programming language
correct spellings
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select the strings that match the regular expression
(D|d)is(c|k)
Disc
disk
is
DisK
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?