Half Term 1 Flashcards

1
Q

What is string manipulation?

A

The act of manipulating, extracting or changing the characters in a string variable

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

What are string functions?

A

String functions are built in functions to manipulate strings

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

How to use .length?

A

stringname.length

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

What does .length do?

A

.length returns the number of characters in a string including spaces

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

How to use .substring?

A

string.substring(startingPosition, numberOfChars)

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

What does .substring do?

A

.substring returns the characters within a string based on the specified starting point and number of characters (0 indexed)

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

What do case conversion functions do?

A

.upper returns string in upper case, .lower returns string in lower case, isupper returns True if string is uppercase, .islower returns True for lowercase

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

How to use ASCII conversions?

A

ASC(character) returns ASCII number, CHR(number) returns character

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

What is a procedure?

A

Procedure

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