Strings Flashcards

0
Q

What does the right string(function) do?

A

Extract the right portion of a string.

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

What is the code to show the length for something?

A

Len(“___”) = ___

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

What is the code used in a right string?

A

Right (“string”,n)
Example:
Right(“Visual Basic”,4)=asic

N is the number of characters from the right of the string we want to extract.

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

What is the left string(function)?

A

Extracts the left portion of a string.

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

Give an example of a left string:

A

Left (“string”,n)

Example:
Left (“visual basic”, 4) = visu

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

What is a mid string?

A

Extracts a substring from the original string: Mid(“string”,n,m)

Where n is the number of characters from the left of the string and m the number if characters we want to extract.

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

Give an example of mid string:

A

Mid (“visual basic”,4,5) = ual b

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

What is the instr function?

A

Looks at a string of characters embedded within the original string and returns the starting position if the embedded string.

Instr ([n], “string”, “substring”)

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

An example of a instr function is:

A

Instr(“visual basic”, “basic”) = 8

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

The Ucase and Lcase functions convert…

A

A string into all uppercase and all lowercase.

Ucase(string) / Lcase(string)

Example: Ucase (“Visual Basic”) = “VISUAL BASIC”

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

What does Asc do?

A

Returns the ASCII value if a character.

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

What does Chr return?

A

The corresponding charcter to an ASCII value.

Example: Asc(“A”)=65 Chr(65) = “A”

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