
Regular expression (Quiz 1)

Quiz
•
Computers
•
University
•
Medium
Alok Sahoo
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the regular expression ^abc match?
Any string containing "abc"
A string ending with "abc"
A string starting with "abc"
A string with only "abc"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the . (dot) symbol match in a regular expression?
A digit
A space
Any single character except newline
The end of a string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the regex a* match?
Zero or more 'a' characters
One or more 'a' characters
Exactly one 'a'
No match at all
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the \d represent in regex?
Any digit
A lowercase 'd'
A whitespace
A word character
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which regex matches exactly a 5-digit number?
\d+
\d{5}
\d*
\d{1,5}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which regex will match email addresses like user@example.com?
[a-z]+@[a-z]+\.[a-z]+
\w+@\w+\.\w+
\S+@\S+
.+@.+
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the + symbol mean in regex?
Optional
Zero or more
One or more
Exactly one
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Array Java

Quiz
•
University
20 questions
Java Coding Questions

Quiz
•
University
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
20 questions
UAS Struktur Data 2022

Quiz
•
University
15 questions
Python Programming Intermediate-1

Quiz
•
University
15 questions
C# Cơ bản

Quiz
•
University
22 questions
Data Collection Quiz 1

Quiz
•
University
15 questions
Trắc nghiệm kiến thức Java Core - Phần I

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University