P2-Regular Expressions

P2-Regular Expressions

University

10 Qs

quiz-placeholder

Similar activities

CIS30A Quiz 2 Review Game

CIS30A Quiz 2 Review Game

University

15 Qs

Backup Files

Backup Files

9th Grade - University

15 Qs

inf5 - DATA úvod

inf5 - DATA úvod

4th Grade - University

10 Qs

File Handling in Python

File Handling in Python

University

8 Qs

Clone Tool in Image Editing Quiz

Clone Tool in Image Editing Quiz

10th Grade - University

13 Qs

FILE MANAGEMENT

FILE MANAGEMENT

KG - University

15 Qs

Cisco 2, Module 3

Cisco 2, Module 3

University

15 Qs

Java Basics 1

Java Basics 1

University

10 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?