
RE_Lambda_Comprehension

Quiz
•
Computers
•
Professional Development
•
Medium
Lilesh Pathe
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the regular expression r"\d+" match?
A single digit
One or more digits
Any non-digit
Only letters
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What function is used to check if a regex pattern matches at the beginning of a string?
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does re.findall(r"[A-Z]", "Hello World!") return?
['Hello', 'World']
['H', 'W']
['e', 'o']
[]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which character matches any single character in regex?
*
?
.
^
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does re.sub(r"\s", "_", "Python is fun") return?
'Python_is_fun'
'Python is fun'
'Python_is_fun_'
'Python_isfun'
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which regex pattern matches a valid email address?
r"[a-z]+@[a-z]+\.[a-z]+"
r"\d+@\d+\.\d+"
r"\w+\.\w+"
r"[A-Z]+@[A-Z]+"
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of re.match(r"py", "python").group()?
'py'
'python'
'pyt'
Error
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Quiz 6.1

Quiz
•
Professional Development
28 questions
AWS Certified Solutions Architect Professional SAP-C02 Pt01

Quiz
•
Professional Development
30 questions
Christmas quiz - Cheeseboro Edition

Quiz
•
Professional Development
25 questions
A+ - 1B - Install and Configure Motherboards

Quiz
•
Professional Development
25 questions
10Vd08

Quiz
•
Professional Development
30 questions
Python. Турнир 1

Quiz
•
Professional Development
26 questions
Bài 3: Bàn phím máy tính

Quiz
•
Professional Development
25 questions
DevOps | Change Management | Incident Management Interview Quiz

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
8 questions
Understanding Government: Limited and Unlimited

Quiz
•
Professional Development
20 questions
tape measure

Quiz
•
Professional Development
24 questions
Street Signs

Quiz
•
9th Grade - Professio...