Quiz 02 - Regular Expressions

Quiz 02 - Regular Expressions

17 Qs

quiz-placeholder

Similar activities

Literary Devices to Know - English 12

Literary Devices to Know - English 12

12th Grade

19 Qs

Literary Devices & Elements of Plot Quiz

Literary Devices & Elements of Plot Quiz

9th - 12th Grade

15 Qs

Superman Ch 1-15

Superman Ch 1-15

8th Grade

15 Qs

The Shakespearean Mouse (FAST Review)

The Shakespearean Mouse (FAST Review)

KG - University

12 Qs

5J Story Elements

5J Story Elements

5th Grade

17 Qs

ELA Content Vocabulary Practice Test

ELA Content Vocabulary Practice Test

KG - University

22 Qs

2025 1BH R&J Act II vocabulary quiz

2025 1BH R&J Act II vocabulary quiz

9th Grade

15 Qs

Quiz 02 - Regular Expressions

Quiz 02 - Regular Expressions

Assessment

Quiz

others

Hard

Created by

Brando Talaguit

Used 3+ times

FREE Resource

17 questions

Show all answers

1.

OPEN ENDED QUESTION

30 sec • Ungraded

Last name, First name Middle Initial

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Gender
Male
Female

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. What does the regular expression ^X.*: match?
A) Any line starting with X followed by any characters and a colon.
B) Any line containing 'X'.
C) Any line ending with 'X:'.
D) None of the above.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which regex pattern matches a line that starts with the exact word 'From'?
A) ^From
B) From$
C) \bFrom
D) \BFrom

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. What does the character set [a-zA-Z0-9] represent?
A) Any alphabetic character or digit.
B) Any lowercase letter.
C) Any special character.
D) None of the above.

6.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

4. What does the + signify in a regular expression?
A) Match 1 or more times.
B) Match 0 or 1 time.
C) Match 0 or more times.
D) Match exactly one time.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. What is the function of re.findall() in Python?
A) Finds and replaces substrings.
B) Splits strings based on a pattern.
C) Extracts all matches of a pattern in a string as a list.
D) Checks if a pattern matches anywhere in the string.

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?