Quiz 8

Quiz
•
Computers
•
University
•
Hard
Mohand Mahmoud
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the regular expression pattern to match a valid email address?
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
^[a-z\s]+$
all of the them
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the regular expression pattern to match a valid phone number in the US?
^[a-z\s]+$
^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
all of them
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the regular expression pattern to match a string that contains at least one digit?
^[a-z\s]+$
^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
\d+
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the regular expression pattern to match a string that contains only lowercase letters and spaces?
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
^[a-z\s]+$
\d+
all is wrong
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the regular expression pattern to match a string that starts with "Hello" and ends with "world"?
world$
^Hello.*world$
^Hello.*
^Hello_world$
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the regular expression pattern to match a valid URL that starts with "https://"?
^https://[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
^https://[a-zA-Z]*\d{3}$
^https:///(?<=/)[^/]*(?=/)/$
^https://(?=.*[a-zA-Z])(?=.*\d).+$
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
txt = "The rain in Spain"
x = re.search(r"\bS\w+", txt)
print(x.....())
output is (12,17)
what is method in space ???
span
string
group
match
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Файловые системы

Quiz
•
7th Grade - University
10 questions
Command Prompt Quiz

Quiz
•
University
15 questions
Quiz4

Quiz
•
University
9 questions
Fundamentos de Programación en Python

Quiz
•
University
14 questions
1 команда

Quiz
•
University
14 questions
edytor tekstowy

Quiz
•
University
6 questions
AlgoProg-Week2

Quiz
•
University
10 questions
Python - Functions

Quiz
•
University
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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University