Unit 7 - Module 3 - String Data Flashcards

1
Q

What is data consisting of an ordered squence of characters?

A

String Data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

WHat input converts objects into a string?

A

str()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What function returns the number of elements in an object?

A

len()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the process of joining two strings together?

A

String Concatenation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a function that belongs to a specific data type?

A

Method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What returns a copy of the string in all uppercase letters?

A

.upper()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What returns a copy of the strings in all lowercase letters?

A

.lower()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a number assigned to every element in a sequence that indicates its position?

A

Index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What function finds the first occurrence of the input in a string and returns its location?

A

.index()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What cannot be changed after it is created and assigned a value?

A

Immutable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What do you call combining two lists into one by placing the elements of the second list directly after the elements of the first list?

A

List Concatenation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What adds an element in a specific position inside a list?

A

.insert()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What removes the first occurrence of a specific element in a list?

A

.remove()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a set of rules that solves a problem?

A

Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What adds input to the end of a list?

A

.append()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a sequence of characters that forms a pattern?

A

Regular Expression (regex)

17
Q

What represents one or more occurrences of a specific character?

A

+

18
Q

What matches with any alphanumeric character but it doesn’t match symbols?

A

\w

19
Q

What returns a list of matches to a regular expression?

A

re.findall()