P2-Regular Expressions

P2-Regular Expressions

University

10 Qs

quiz-placeholder

Similar activities

Access_Bài 1

Access_Bài 1

University

15 Qs

Python Quiz

Python Quiz

University

12 Qs

Learning Connect-quiz1

Learning Connect-quiz1

University

15 Qs

COBOL #7 Sequential File

COBOL #7 Sequential File

University

7 Qs

Python Round 3

Python Round 3

University

11 Qs

Quiz 3: File Operations

Quiz 3: File Operations

University

10 Qs

Ch. 6 Quiz

Ch. 6 Quiz

University

9 Qs

File Handling with Python

File Handling with Python

12th Grade - University

7 Qs

P2-Regular Expressions

P2-Regular Expressions

Assessment

Quiz

Computers

University

Hard

Created by

Dr. Jopate

Used 1+ times

FREE Resource

10 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

_______ 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()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Will this code match the regular expression?

Yes

No

Sometimes Yes

Error in Program

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What letter will be printed on the screen after running this code:

e

x

t

Nothing prints

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the position of the name "Robert" in the following list:

0

1

2

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the following code, "city" is an example of a what?

List

Loop

Variable

Array

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What output will this code produce?

Exeter

4

6

city

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?