
RE_Lambda_Comprehension
Authored by Lilesh Pathe
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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?
Similar Resources on Wayground
25 questions
CompTIA Network+ Revision: Cables
Quiz
•
University - Professi...
25 questions
Chapter 1 - SDLC Review
Quiz
•
Professional Development
25 questions
AO Tema 20. Cuestionario
Quiz
•
Professional Development
25 questions
WEBZEN MCQ
Quiz
•
Professional Development
25 questions
IT RISK AND CONTROL
Quiz
•
Professional Development
26 questions
основы алгоритмизации и программирования
Quiz
•
Professional Development
26 questions
Macromedia Flash
Quiz
•
8th Grade - Professio...
25 questions
excel / elektronik hesaplama
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L3_22-23
Lesson
•
KG - Professional Dev...
20 questions
Employability Skills
Quiz
•
Professional Development