Lesson 11: String Manipulation Flashcards

1
Q

represents a series of characters (each representing in turn an instance of the Chardata type).

A

STRING IN VISUAL BASIC

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

if you declare a string
variable using the ‘Dim’ keyword and initialize it
with a string value, it enclosed in double quotes

A

Declaring and Initializing

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

a property (or treating the string as an array)

A

Chars

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

a property that returns the number of characters in the
string

A

Length

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

used to compare two strings and return an integer that indicates the result of the comparison.

A

THE STRCOMP FUNCTIONS

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

Performs a case-sensitive comparison.

A

vbBinaryCompare:

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

Performs a case-insensitive comparison.

A

vbTextCompare:

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

returns an integer value which is the length of a
phrase or a sentence, including the empty spaces. The syntax is
Len (Phrase).

A

The Len function

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

trims the empty spaces of the left portion
of the phrase.

A

The Ltrim function

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

trims the empty spaces of the right
portion of the phrase

A

The Rtrim function

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

Removes whitespace or other predefined characters from
both sides of a string.

A

THE TRIM FUNCTION

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

extracts a
substring from the original phrase
or string. The syntax is:
Mid(phrase, position, n).

A

The Mid function

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

looks for a phrase that is embedded
within the original phrase and returns the starting position
of the embedded phrase.

A

The InStr function

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

converts all the characters of a string to capital
letters.

A

The Ucase function

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

converts all the characters of
a string to small letters.

A

the Lcase function

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

function that converts a number to a string

A

Str Function

17
Q

converts a string to a number.

A

Val
function

18
Q

Returns a numeric value derived from the string
string.

A

Return Value

19
Q

to convert a numeric value to a character

A

Chr() function

20
Q

to convert that character back to the original numeric value.

A

Asc() function

21
Q
A