Quiz 8

Quiz 8

University

10 Qs

quiz-placeholder

Similar activities

Exploring MT and Grammar Concepts

Exploring MT and Grammar Concepts

University

12 Qs

file type

file type

10th Grade - University

15 Qs

Python Programming Intermediate-1

Python Programming Intermediate-1

University

15 Qs

PYTHON PROGRAMMING

PYTHON PROGRAMMING

University

10 Qs

Wrażenia globlne w Linxie

Wrażenia globlne w Linxie

10th Grade - University

10 Qs

Basic Java

Basic Java

University

15 Qs

Java

Java

University

15 Qs

DIS08_1_Shell

DIS08_1_Shell

University

10 Qs

Quiz 8

Quiz 8

Assessment

Quiz

Computers

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?