
Regex Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Standards-aligned
Tomas Martinez
Used 6+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the regex pattern `^a` match?
Any string that contains an 'a'
A string that starts with 'a'
Any string that ends with 'a'
None of the above
Tags
DOK Level 1: Recall
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which regex pattern matches any single digit?
`\d`
`\D`
`\w`
`\s`
Tags
DOK Level 1: Recall
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the regex pattern `abc?` mean?
Matches a string 'ab' followed by zero or more 'c'
Matches a string 'ab' followed by one or more 'c'
Matches a string 'ab' followed by zero or one 'c'
Matches exactly the string 'abc'
Tags
DOK Level 1: Recall
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In regex, what does the `*` character specify?
The preceding element must appear exactly once
The preceding element must not appear at all
The preceding element can appear zero or more times
The preceding element can appear one or more times
Tags
DOK Level 1: Recall
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which regex pattern would you use to find sequences of one or more whitespace characters?
`\s+`
`\S`
`\d+`
`\w+`
Tags
DOK Level 1: Recall
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of the `|` operator in regex?
Matches either the expression before or the expression after the operator
Matches the expressions both before and after the operator
Indicates the start of a capture group
None of the above
Tags
DOK Level 1: Recall
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which regex pattern matches any character except newline?
`\.`
`\n`
`.`
`^`
Tags
DOK Level 1: Recall
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the regex pattern `[a-z]` match?
Any lowercase letter between 'a' and 'z'
Any letter between 'a' and 'z'
The exact string 'a-z'
None of the above
Tags
DOK Level 1: Recall
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In regex, what does the `^` character inside square brackets (e.g., `[^a]`) signify?
Matches the beginning of the string
Matches the character 'a' at the beginning of the string
Does not match the character 'a'
Matches any character except 'a'
Tags
DOK Level 1: Recall
Similar Resources on Wayground
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
Simple Easy Basic Lua Quiz

Quiz
•
4th Grade - Professio...
10 questions
AppsLab_Q2

Quiz
•
10th Grade - Professi...
10 questions
Y7 - CY2 - Knowledge Test

Quiz
•
9th - 12th Grade
14 questions
Understanding Python Basics

Quiz
•
8th Grade - University
14 questions
Java - Lección 1ero

Quiz
•
12th Grade
10 questions
Introduction to PHP: Hypertext Preprocessor

Quiz
•
11th - 12th Grade
12 questions
visual studio 2010

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade