Regular Expressions (Python)

Regular Expressions (Python)

KG - University

7 Qs

quiz-placeholder

Similar activities

Python Library-1

Python Library-1

12th Grade

11 Qs

Python Quiz

Python Quiz

University

12 Qs

CP3-Gr9Adv

CP3-Gr9Adv

9th Grade

11 Qs

Online Databases vs. Search Engines

Online Databases vs. Search Engines

6th - 10th Grade

10 Qs

2.1.3 Searching Algorithms

2.1.3 Searching Algorithms

10th - 11th Grade

12 Qs

Database Fundamentals

Database Fundamentals

KG - University

10 Qs

[AP CSP] Programming: Conditionals

[AP CSP] Programming: Conditionals

9th - 12th Grade

10 Qs

Computer Software - Review Game (3J)

Computer Software - Review Game (3J)

6th - 7th Grade

10 Qs

Regular Expressions (Python)

Regular Expressions (Python)

Assessment

Quiz

Computers

KG - University

Medium

Used 141+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is line of Python code imports the re module?
Import re
import RE
import re
Import RE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which flag will make your search case-insensitive?
re.I
re.c-i
re.CI
re.C-I

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_______ is used to search through a string starting at its beginning. It returns None if no match is found.
re.match()
re.Search()
re.Method()
re.search()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which flag will search over multiple lines?
re.ml
re.M
re.m
re.ML

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_______ searches the entire string, not just starting at the beginning. It returns None if no match is found.
re.match()
re.Search()
re.Method()
re.search()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Will this code match the regular expression?
Yes
No

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Will this code match the regular expression?
Yes
No